From: whitequark Date: Sun, 26 Jul 2015 13:15:02 +0000 (+0300) Subject: Update libbase/linker-sdram.ld with -fPIC support. X-Git-Tag: 24jan2021_ls180~2179 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50cf70140be14ac77ed273a5db994fac2328b17d;p=litex.git Update libbase/linker-sdram.ld with -fPIC support. --- diff --git a/software/libbase/linker-sdram.ld b/software/libbase/linker-sdram.ld index 5db403b2..b55b50f2 100644 --- a/software/libbase/linker-sdram.ld +++ b/software/libbase/linker-sdram.ld @@ -14,6 +14,17 @@ SECTIONS _etext = .; } > main_ram + .got : + { + _GLOBAL_OFFSET_TABLE_ = .; + *(.got) + } > main_ram + + .got.plt : + { + *(.got.plt) + } > main_ram + .rodata : { . = ALIGN(4); @@ -29,7 +40,6 @@ SECTIONS _fdata = .; *(.data .data.* .gnu.linkonce.d.*) *(.data1) - _gp = ALIGN(16); *(.sdata .sdata.* .gnu.linkonce.s.*) _edata = .; } > main_ram