Skip to content

Commit

Permalink
Update libbase/linker-sdram.ld with -fPIC support.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jul 26, 2015
1 parent c8ffd0c commit 50cf701
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion software/libbase/linker-sdram.ld
Expand Up @@ -14,6 +14,17 @@ SECTIONS
_etext = .;
} > main_ram

.got :
{
_GLOBAL_OFFSET_TABLE_ = .;
*(.got)
} > main_ram

.got.plt :
{
*(.got.plt)
} > main_ram

.rodata :
{
. = ALIGN(4);
Expand All @@ -29,7 +40,6 @@ SECTIONS
_fdata = .;
*(.data .data.* .gnu.linkonce.d.*)
*(.data1)
_gp = ALIGN(16);
*(.sdata .sdata.* .gnu.linkonce.s.*)
_edata = .;
} > main_ram
Expand Down

0 comments on commit 50cf701

Please sign in to comment.