Skip to content

Commit

Permalink
Update ldscripts with -fPIC support.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jul 26, 2015
1 parent d252a00 commit 1d9f408
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion soc/runtime/ksupport.ld
Expand Up @@ -24,6 +24,17 @@ SECTIONS
_etext = .;
} > ksupport

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

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

.rodata :
{
. = ALIGN(4);
Expand All @@ -39,7 +50,6 @@ SECTIONS
_fdata = .;
*(.data .data.* .gnu.linkonce.d.*)
*(.data1)
_gp = ALIGN(16);
*(.sdata .sdata.* .gnu.linkonce.s.*)
_edata = .;
} > ksupport
Expand Down
12 changes: 11 additions & 1 deletion soc/runtime/linker.ld
Expand Up @@ -26,6 +26,17 @@ SECTIONS
_etext = .;
} > runtime

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

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

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

0 comments on commit 1d9f408

Please sign in to comment.