Advertisement
mmu_man

haiku-buildtools-ppc-got-workaround.diff

Oct 24th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.03 KB | None | 0 0
  1. diff --git a/binutils/ld/Makefile.am b/binutils/ld/Makefile.am
  2. index 406f79f..bc419ec 100644
  3. --- a/binutils/ld/Makefile.am
  4. +++ b/binutils/ld/Makefile.am
  5. @@ -1303,6 +1303,9 @@ eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
  6.    $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  7.     ${GENSCRIPTS} elf_i386_sol2 "$(tdir_elf_i386_sol2)"
  8.  eelf_ppc_haiku.c: $(srcdir)/emulparams/elf_ppc_haiku.sh \
  9. +  $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
  10. +  $(srcdir)/emultempl/ppc32elf.em \
  11. +  ldemul-list.h $(ELF_DEPS) \
  12.    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  13.     ${GENSCRIPTS} elf_ppc_haiku "$(tdir_elf_ppc_haiku)"
  14.  eelf_mipsel_haiku.c: $(srcdir)/emulparams/elf_mipsel_haiku.sh \
  15. diff --git a/binutils/ld/Makefile.in b/binutils/ld/Makefile.in
  16. index fbe1458..0fb8129 100644
  17. --- a/binutils/ld/Makefile.in
  18. +++ b/binutils/ld/Makefile.in
  19. @@ -2780,6 +2780,9 @@ eelf_mipsel_haiku.c:  $(srcdir)/emulparams/elf_mipsel_haiku.sh \
  20.    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  21.     ${GENSCRIPTS} elf_mipsel_haiku "$(tdir_elf_mipsel_haiku)"
  22.  eelf_ppc_haiku.c: $(srcdir)/emulparams/elf_ppc_haiku.sh \
  23. +  $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
  24. +  $(srcdir)/emultempl/ppc32elf.em \
  25. +  ldemul-list.h $(ELF_DEPS) \
  26.    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  27.     ${GENSCRIPTS} elf_ppc_haiku "$(tdir_elf_ppc_haiku)"
  28.  eelf_i386_nacl.c: $(srcdir)/emulparams/elf_i386_nacl.sh \
  29. diff --git a/binutils/ld/configure.tgt b/binutils/ld/configure.tgt
  30. index 7fc7940..0b65ab5 100644
  31. --- a/binutils/ld/configure.tgt
  32. +++ b/binutils/ld/configure.tgt
  33. @@ -599,7 +599,8 @@ powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
  34.  powerpc-*-aix[5-9]*)   targ_emul=aix5ppc ;;
  35.  powerpc-*-aix*)        targ_emul=aixppc ;;
  36.  powerpc-*-beos*)   targ_emul=aixppc ;;
  37. -powerpc-*-haiku*)  targ_emul=elf_ppc_haiku ;;
  38. +powerpc-*-haiku*)  targ_emul=elf_ppc_haiku
  39. +           targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;;
  40.  powerpc-*-windiss*)    targ_emul=elf32ppcwindiss ;;
  41.  powerpc-*-lynxos*) targ_emul=ppclynx ;;
  42.  rs6000-*-aix[5-9]*)    targ_emul=aix5rs6 ;;
  43. diff --git a/binutils/ld/emulparams/elf_ppc_haiku.sh b/binutils/ld/emulparams/elf_ppc_haiku.sh
  44. index 5a65cd4..bd68ce7 100644
  45. --- a/binutils/ld/emulparams/elf_ppc_haiku.sh
  46. +++ b/binutils/ld/emulparams/elf_ppc_haiku.sh
  47. @@ -1,20 +1,10 @@
  48. -SCRIPT_NAME=elf
  49. -OUTPUT_FORMAT="elf32-powerpc"
  50. +#. ${srcdir}/emulparams/elf32ppccommon.sh
  51. +. ${srcdir}/emulparams/elf32ppc.sh
  52.  TEXT_START_ADDR=0x200000
  53.  NONPAGED_TEXT_START_ADDR=0x200000
  54.  MAXPAGESIZE=0x1000
  55.  ARCH=powerpc
  56. -MACHINE=
  57.  NOP=0x60000000
  58. -TEMPLATE_NAME=elf32
  59.  GENERATE_SHLIB_SCRIPT=yes
  60.  BSS_PLT=
  61. -OTHER_RELRO_SECTIONS="
  62. -  .fixup        ${RELOCATING-0} : { *(.fixup) }
  63. -  .got1         ${RELOCATING-0} : { *(.got1) }
  64. -  .got2         ${RELOCATING-0} : { *(.got2) }
  65. -"
  66. -OTHER_GOT_RELOC_SECTIONS="
  67. -  .rela.got1         ${RELOCATING-0} : { *(.rela.got1) }
  68. -  .rela.got2         ${RELOCATING-0} : { *(.rela.got2) }
  69. -"
  70. +LIBPATH_SUFFIX=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement