From 50cf70140be14ac77ed273a5db994fac2328b17d Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 26 Jul 2015 16:15:02 +0300 Subject: [PATCH] Update libbase/linker-sdram.ld with -fPIC support. --- software/libbase/linker-sdram.ld | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.30.2