mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
binutils: fix PPC GOT issue
Simplify haiku-specific ppc emulation script, and reuse common code, which seems to fix the linker issue mentioned in #10240: _GLOBAL_OFFSET_TABLE_ not defined in linker created .got
This commit is contained in:
parent
c5588ee1b4
commit
0dfb79fe88
@ -1193,7 +1193,10 @@ eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32ppchaiku.c: $(srcdir)/emulparams/elf32ppchaiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
$(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
|
||||
$(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
|
||||
ldemul-list.h \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
|
||||
$(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
|
||||
|
@ -2634,7 +2634,10 @@ eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32ppchaiku.c: $(srcdir)/emulparams/elf32ppchaiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
$(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
|
||||
$(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
|
||||
ldemul-list.h \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
|
||||
$(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
|
||||
|
@ -1,20 +1,6 @@
|
||||
SCRIPT_NAME=elf
|
||||
OUTPUT_FORMAT="elf32-powerpc"
|
||||
. ${srcdir}/emulparams/elf32ppc.sh
|
||||
TEXT_START_ADDR=0x200000
|
||||
NONPAGED_TEXT_START_ADDR=0x200000
|
||||
MAXPAGESIZE=0x1000
|
||||
ARCH=powerpc
|
||||
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) }
|
||||
"
|
||||
LIBPATH_SUFFIX=
|
||||
|
Loading…
Reference in New Issue
Block a user