mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
Added support for machine powerpc-*-haiku. Reorganized things a bit:
The i386-pc-haiku no longer uses the BeOS BFD target emulation, but its own. A few things are shared for both *-*-haiku machines now. The PowerPC Haiku binutils and gcc build, but I wouldn't expect them to really produce usable output yet. We'll see... git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15381 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1024,6 +1024,9 @@ case "${targ}" in
|
||||
targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
|
||||
targ_archs="bfd_powerpc_arch bfd_rs6000_arch bfd_i386_arch"
|
||||
;;
|
||||
powerpc-*-haiku*)
|
||||
targ_defvec=bfd_elf32_powerpc_vec
|
||||
;;
|
||||
powerpc-*-macos*)
|
||||
targ_defvec=pmac_xcoff_vec
|
||||
;;
|
||||
|
||||
@@ -189,7 +189,9 @@ ALL_EMULATIONS = \
|
||||
eelf_i386_be.o \
|
||||
eelf_i386_chaos.o \
|
||||
eelf_i386_fbsd.o \
|
||||
eelf_i386_haiku.o \
|
||||
eelf_i386_ldso.o \
|
||||
eelf_ppc_haiku.o \
|
||||
eelf_s390.o \
|
||||
egld960.o \
|
||||
egld960coff.o \
|
||||
@@ -861,9 +863,15 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
|
||||
$(srcdir)/emulparams/elf_i386.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
|
||||
eelf_i386_haiku.c: $(srcdir)/emulparams/elf_i386_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_haiku "$(tdir_elf_i386_haiku)"
|
||||
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
|
||||
eelf_ppc_haiku.c: $(srcdir)/emulparams/elf_ppc_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_ppc_haiku "$(tdir_elf_ppc_haiku)"
|
||||
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
|
||||
|
||||
@@ -314,7 +314,9 @@ ALL_EMULATIONS = \
|
||||
eelf_i386_be.o \
|
||||
eelf_i386_chaos.o \
|
||||
eelf_i386_fbsd.o \
|
||||
eelf_i386_haiku.o \
|
||||
eelf_i386_ldso.o \
|
||||
eelf_ppc_haiku.o \
|
||||
eelf_s390.o \
|
||||
egld960.o \
|
||||
egld960coff.o \
|
||||
@@ -1598,9 +1600,15 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
|
||||
$(srcdir)/emulparams/elf_i386.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
|
||||
eelf_i386_haiku.c: $(srcdir)/emulparams/elf_i386_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_haiku "$(tdir_elf_i386_haiku)"
|
||||
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
|
||||
eelf_ppc_haiku.c: $(srcdir)/emulparams/elf_ppc_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_ppc_haiku "$(tdir_elf_ppc_haiku)"
|
||||
eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
|
||||
|
||||
@@ -233,7 +233,7 @@ i[3-7]86-*-interix*) targ_emul=i386pe_posix;
|
||||
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
||||
i[3-7]86-*-beospe*) targ_emul=i386beos ;;
|
||||
i[3-7]86-*-beos*) targ_emul=elf_i386_be ;;
|
||||
i[3-7]86-*-haiku*) targ_emul=elf_i386_be ;;
|
||||
i[3-7]86-*-haiku*) targ_emul=elf_i386_haiku ;;
|
||||
i[3-7]86-*-vxworks*) targ_emul=elf_i386 ;;
|
||||
i[3-7]86-*-chaos) targ_emul=elf_i386_chaos ;;
|
||||
m8*-*-*) targ_emul=m88kbcs ;;
|
||||
@@ -542,6 +542,7 @@ powerpcle-*-cygwin*) targ_emul=ppcpe ;;
|
||||
powerpc-*-aix5*) targ_emul=aix5ppc ;;
|
||||
powerpc-*-aix*) targ_emul=aixppc ;;
|
||||
powerpc-*-beos*) targ_emul=aixppc ;;
|
||||
powerpc-*-haiku*) targ_emul=elf_ppc_haiku ;;
|
||||
powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
|
||||
powerpc-*-lynxos*) targ_emul=ppclynx ;;
|
||||
rs6000-*-aix5*) targ_emul=aix5rs6 ;;
|
||||
|
||||
11
binutils/ld/emulparams/elf_i386_haiku.sh
Normal file
11
binutils/ld/emulparams/elf_i386_haiku.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
SCRIPT_NAME=elf
|
||||
OUTPUT_FORMAT="elf32-i386"
|
||||
TEXT_START_ADDR=0x200000
|
||||
NONPAGED_TEXT_START_ADDR=0x200000
|
||||
MAXPAGESIZE=0x1000
|
||||
ARCH=i386
|
||||
MACHINE=
|
||||
NOP=0x90909090
|
||||
TEMPLATE_NAME=elf32
|
||||
GENERATE_SHLIB_SCRIPT=yes
|
||||
NO_SMALL_DATA=yes
|
||||
11
binutils/ld/emulparams/elf_ppc_haiku.sh
Normal file
11
binutils/ld/emulparams/elf_ppc_haiku.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
SCRIPT_NAME=elf
|
||||
OUTPUT_FORMAT="elf32-powerpc"
|
||||
TEXT_START_ADDR=0x200000
|
||||
NONPAGED_TEXT_START_ADDR=0x200000
|
||||
MAXPAGESIZE=0x1000
|
||||
ARCH=powerpc
|
||||
MACHINE=
|
||||
NOP=0x60000000
|
||||
TEMPLATE_NAME=elf32
|
||||
GENERATE_SHLIB_SCRIPT=yes
|
||||
NO_SMALL_DATA=yes
|
||||
Reference in New Issue
Block a user