Skip to content

Commit fbb69ce

Browse files
committed
build: Add GOT sections to linker scripts
Signed-off-by: Akira Moroo <[email protected]>
1 parent ea42ead commit fbb69ce

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

aarch64-unknown-none.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ SECTIONS
3232
data_start = .;
3333
.data : { *(.data .data.*) }
3434
.rodata : { *(.rodata .rodata.*) }
35+
.got : { *(.got .got.*) }
3536

3637
/* The BSS section isn't mapped from file data. It is just zeroed in RAM. */
3738
.bss : {

riscv64gcv-unknown-none-elf.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ SECTIONS
2626
}
2727

2828
.rodata : { *(.rodata .rodata.*) }
29+
.got : { *(.got .got.*) }
2930

3031
/* The BSS section isn't mapped from file data. It is just zeroed in RAM. */
3132
.bss : {

x86_64-unknown-none.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ SECTIONS
2828

2929
data_start = .;
3030
.data : { *(.data .data.*) }
31+
.got : { *(.got .got.*) }
3132

3233
/* The BSS section isn't mapped from file data. It is just zeroed in RAM. */
3334
.bss : {

0 commit comments

Comments
 (0)