mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
* The .plt section for PPC is of type SHT_NOBITS (not SHT_PROGBITS as
for x86), so it should be placed near the .bss sections. This fixes
linkage problems -- the linker had to split the text segment after the
.plt section, which caused its pre-computed program header count to be
wrong.
* I also added the stuff concerning the .fixup and .got{1,2} sections I
found in the generic ELF PPC script. It shouldn't harm at least.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15474 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,3 +8,13 @@ MACHINE=
|
||||
NOP=0x60000000
|
||||
TEMPLATE_NAME=elf32
|
||||
GENERATE_SHLIB_SCRIPT=yes
|
||||
BSS_PLT=
|
||||
OTHER_RELRO_SECTIONS="
|
||||
.fixup ${RELOCATING-0} : { *(.fixup) }
|
||||
.got1 ${RELOCATING-0} : { *(.got1) }
|
||||
.got2 ${RELOCATING-0} : { *(.got2) }
|
||||
"
|
||||
OTHER_GOT_RELOC_SECTIONS="
|
||||
.rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
|
||||
.rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user