diff options
Diffstat (limited to 'sys/conf/ldscript.powerpcspe')
-rw-r--r-- | sys/conf/ldscript.powerpcspe | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/conf/ldscript.powerpcspe b/sys/conf/ldscript.powerpcspe index 29202eb42c2f..b8c89fe7d1d6 100644 --- a/sys/conf/ldscript.powerpcspe +++ b/sys/conf/ldscript.powerpcspe @@ -6,6 +6,11 @@ OUTPUT_ARCH(powerpc) ENTRY(__start) SEARCH_DIR(/usr/lib); PROVIDE (__stack = 0); +PHDRS +{ + kernel PT_LOAD; + dynamic PT_DYNAMIC; +} SECTIONS { /* Read-only sections, merged into text segment: */ @@ -21,7 +26,7 @@ SECTIONS /* .gnu.warning sections are handled specially by elf32.em. */ *(.gnu.warning) *(.gnu.linkonce.t*) - } =0 + } :kernel =0 _etext = .; PROVIDE (etext = .); @@ -78,7 +83,7 @@ SECTIONS .got.plt : { *(.got.plt) } - .dynamic : { *(.dynamic) } + .dynamic : { *(.dynamic) } :kernel :dynamic /* Put .ctors and .dtors next to the .got2 section, so that the pointers get relocated with -mrelocatable. Also put in the .fixup pointers. The current compiler no longer needs this, but keep it around for 2.7.2 */ @@ -97,7 +102,7 @@ SECTIONS /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so we can shorten the on-disk segment size. */ - .sdata : { *(.sdata) } + .sdata : { *(.sdata) } :kernel _edata = .; PROVIDE (edata = .); .sbss : |