Skip to content

Commit

Permalink
misc: Minor updates to linker scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Jul 14, 2023
1 parent fb038c9 commit 81e6849
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/linker_bios.ld.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ SECTIONS

.bss : {
bss_begin = .;
*(COMMON)
*(.bss .bss.*)
*(COMMON)
bss_end = .;
data_end = .;
} :data_s3
Expand Down
4 changes: 2 additions & 2 deletions decompressor/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ SECTIONS
} :text

.data : {
*(.rodata .rodata.*)
*(.data .data.*)
*(.rodata .rodata.*)
} :data

.bss : {
bss_begin = .;
*(COMMON)
*(.bss .bss.*)
*(COMMON)
bss_end = .;
} :data

Expand Down
5 changes: 1 addition & 4 deletions test/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ SECTIONS

.data : {
*(.data .data.*)
__global_pointer$ = . + 0x800;
*(.sdata .sdata.*)
} :data

.dynamic : {
*(.dynamic)
} :data :dynamic

.bss : {
*(COMMON)
*(.sbss .sbss.*)
*(.bss .bss.*)
*(COMMON)
} :data
}

0 comments on commit 81e6849

Please sign in to comment.