mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
binutils: Apply Haiku patches to 2.32
Change-Id: I73351225879f0c62613c9e6eff3e2bfc4251f86c Reviewed-on: https://review.haiku-os.org/c/1537 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
0cb01df558
commit
a82c1c48e3
@ -389,7 +389,8 @@ case "${targ}" in
|
||||
;;
|
||||
arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
|
||||
arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
|
||||
arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi)
|
||||
arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi | \
|
||||
arm*-*-haiku*)
|
||||
targ_defvec=arm_elf32_le_vec
|
||||
targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec"
|
||||
;;
|
||||
@ -687,6 +688,11 @@ case "${targ}" in
|
||||
targ_selvecs="i386_elf32_fbsd_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec i386_elf32_vec x86_64_elf64_vec l1om_elf64_vec l1om_elf64_fbsd_vec k1om_elf64_vec k1om_elf64_fbsd_vec"
|
||||
want64=true
|
||||
;;
|
||||
x86_64-*-haiku*)
|
||||
targ_defvec=x86_64_elf64_vec
|
||||
targ_selvecs="i386_elf32_vec"
|
||||
want64=true
|
||||
;;
|
||||
x86_64-*-netbsd* | x86_64-*-openbsd*)
|
||||
targ_defvec=x86_64_elf64_vec
|
||||
targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
|
||||
@ -743,6 +749,9 @@ case "${targ}" in
|
||||
targ_defvec=i386_elf32_vec
|
||||
targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec"
|
||||
;;
|
||||
i[3-7]86-*-haiku*)
|
||||
targ_defvec=i386_elf32_vec
|
||||
;;
|
||||
i[3-7]86-*-interix*)
|
||||
targ_defvec=i386_pei_vec
|
||||
targ_selvecs="i386_pe_vec"
|
||||
@ -812,6 +821,11 @@ case "${targ}" in
|
||||
targ_defvec=m32r_elf32_vec
|
||||
;;
|
||||
|
||||
m68*-*-haiku*)
|
||||
targ_defvec=m68k_elf32_vec
|
||||
targ_selvecs="m68k_coff_vec ieee_vec"
|
||||
;;
|
||||
|
||||
m68hc11-*-* | m6811-*-*)
|
||||
targ_defvec=m68hc11_elf32_vec
|
||||
targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
|
||||
@ -866,6 +880,10 @@ case "${targ}" in
|
||||
targ_defvec=mips_elf32_trad_be_vec
|
||||
targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
|
||||
;;
|
||||
mips*el-*-haiku*)
|
||||
targ_defvec=mips_elf32_le_vec
|
||||
targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
|
||||
;;
|
||||
mips*-*-irix6*)
|
||||
targ_defvec=mips_elf32_n_be_vec
|
||||
targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
|
||||
@ -1097,6 +1115,11 @@ case "${targ}" in
|
||||
targ_cflags=-DSMALL_ARCHIVE;;
|
||||
esac
|
||||
;;
|
||||
powerpc-*-haiku*)
|
||||
targ_defvec=powerpc_elf32_vec
|
||||
targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec pef_vec pef_xlib_vec powerpc_xcoff_vec powerpc_boot_vec"
|
||||
targ_cflags=-D__HAIKU_TARGET__
|
||||
;;
|
||||
#ifdef BFD64
|
||||
powerpc64-*-aix*)
|
||||
targ_defvec=rs6000_xcoff64_vec
|
||||
@ -1304,6 +1327,11 @@ case "${targ}" in
|
||||
targ_selvecs="sparc_elf64_sol2_vec"
|
||||
want64=true
|
||||
;;
|
||||
sparc64-*-haiku*)
|
||||
targ_defvec=sparc_elf64_vec
|
||||
targ_selvecs="sparc_elf64_vec sparc_elf32_vec"
|
||||
want64=true
|
||||
;;
|
||||
sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
|
||||
targ_defvec=sparc_elf64_fbsd_vec
|
||||
targ_selvecs="sparc_elf64_vec sparc_elf32_vec"
|
||||
|
3
binutils/bfd/configure
vendored
3
binutils/bfd/configure
vendored
@ -10932,7 +10932,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -19265,4 +19265,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
3
binutils/binutils/configure
vendored
3
binutils/binutils/configure
vendored
@ -10727,7 +10727,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -17647,4 +17647,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
3
binutils/configure
vendored
3
binutils/configure
vendored
@ -3001,7 +3001,7 @@ case "${ENABLE_GOLD}" in
|
||||
*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
|
||||
| *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
|
||||
| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
|
||||
| *-*-solaris2* | *-*-nto* | *-*-nacl*)
|
||||
| *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
|
||||
case "${target}" in
|
||||
*-*-linux*aout* | *-*-linux*oldld*)
|
||||
;;
|
||||
@ -15920,4 +15920,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
@ -335,7 +335,7 @@ case "${ENABLE_GOLD}" in
|
||||
*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
|
||||
| *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
|
||||
| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
|
||||
| *-*-solaris2* | *-*-nto* | *-*-nacl*)
|
||||
| *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
|
||||
case "${target}" in
|
||||
*-*-linux*aout* | *-*-linux*oldld*)
|
||||
;;
|
||||
|
@ -455,6 +455,7 @@ const char extra_symbol_chars[] = "*%-([{}"
|
||||
&& !defined (TE_GNU) \
|
||||
&& !defined (TE_LINUX) \
|
||||
&& !defined (TE_NACL) \
|
||||
&& !defined (TE_Haiku) \
|
||||
&& !defined (TE_FreeBSD) \
|
||||
&& !defined (TE_DragonFly) \
|
||||
&& !defined (TE_NetBSD)))
|
||||
|
30
binutils/gas/config/te-haiku.h
Normal file
30
binutils/gas/config/te-haiku.h
Normal file
@ -0,0 +1,30 @@
|
||||
/* te-haiku.h -- Haiku target environment declarations.
|
||||
Copyright 2013 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
|
||||
GAS is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3, or (at your option)
|
||||
any later version.
|
||||
|
||||
GAS is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GAS; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
/* Target environment for BeOS/Haiku. It is the same as the generic
|
||||
target, except that it arranges via the TE_BeOS define to
|
||||
suppress the use of "/" as a comment character. Some code in the
|
||||
haiku kernel uses "/" to mean division. (What a concept!) */
|
||||
#define TE_Haiku 1
|
||||
|
||||
#define LOCAL_LABELS_DOLLAR 1
|
||||
#define LOCAL_LABELS_FB 1
|
||||
|
||||
#include "obj-format.h"
|
3
binutils/gas/configure
vendored
3
binutils/gas/configure
vendored
@ -10544,7 +10544,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -17621,4 +17621,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
@ -123,6 +123,7 @@ generic_target=${cpu_type}-$vendor-$os
|
||||
case ${generic_target} in
|
||||
aarch64*-*-elf*) fmt=elf;;
|
||||
aarch64*-*-fuchsia*) fmt=elf;;
|
||||
aarch64*-*-haiku*) fmt=elf em=haiku ;;
|
||||
aarch64*-*-linux*) fmt=elf em=linux
|
||||
case ${cpu}-${os} in
|
||||
aarch64*-linux-gnu_ilp32) arch=aarch64:32 ;;
|
||||
@ -158,6 +159,7 @@ case ${generic_target} in
|
||||
fmt=coff em=wince-pe ;;
|
||||
arm-*-pe) fmt=coff em=pe ;;
|
||||
arm-*-fuchsia*) fmt=elf ;;
|
||||
arm-*-haiku*) fmt=elf em=haiku ;;
|
||||
|
||||
avr-*-*) fmt=elf bfd_gas=yes ;;
|
||||
|
||||
@ -218,6 +220,7 @@ case ${generic_target} in
|
||||
i386-*-elfiamcu) fmt=elf arch=iamcu ;;
|
||||
i386-*-elf*) fmt=elf ;;
|
||||
i386-*-fuchsia*) fmt=elf ;;
|
||||
i386-*-haiku*) fmt=elf em=haiku ;;
|
||||
i386-*-kaos*) fmt=elf ;;
|
||||
i386-*-bsd*) fmt=aout em=386bsd ;;
|
||||
i386-*-nacl*) fmt=elf em=nacl
|
||||
@ -290,6 +293,7 @@ case ${generic_target} in
|
||||
m68k-*-uclinux*) fmt=elf em=uclinux ;;
|
||||
m68k-*-gnu*) fmt=elf ;;
|
||||
m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
|
||||
m68k-*-haiku*) fmt=elf em=haiku ;;
|
||||
|
||||
s12z-*-*) fmt=elf ;;
|
||||
|
||||
@ -311,6 +315,7 @@ case ${generic_target} in
|
||||
mips-*-sysv4* | mips-*-gnu*) fmt=elf em=tmips ;;
|
||||
mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
|
||||
fmt=elf em=tmips ;;
|
||||
mips-*-haiku*) fmt=elf em=haiku ;;
|
||||
mips-*-elf*) fmt=elf ;;
|
||||
mips-*-netbsd*) fmt=elf em=tmips ;;
|
||||
mips-*-openbsd*) fmt=elf em=tmips ;;
|
||||
@ -327,7 +332,7 @@ case ${generic_target} in
|
||||
moxie-*-uclinux) fmt=elf em=linux ;;
|
||||
moxie-*-moxiebox*) fmt=elf endian=little ;;
|
||||
moxie-*-*) fmt=elf ;;
|
||||
|
||||
|
||||
mt-*-elf) fmt=elf bfd_gas=yes ;;
|
||||
|
||||
msp430-*-*) fmt=elf ;;
|
||||
@ -355,6 +360,7 @@ case ${generic_target} in
|
||||
ppc-*-beos*) fmt=coff ;;
|
||||
ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
|
||||
ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
|
||||
ppc-*-haiku-*) fmt=elf em=haiku ;;
|
||||
ppc-*-linux-*) fmt=elf em=linux ;;
|
||||
ppc-*-solaris*) fmt=elf em=solaris ;;
|
||||
ppc-*-macos*) fmt=coff em=macos ;;
|
||||
@ -364,6 +370,7 @@ case ${generic_target} in
|
||||
|
||||
pru-*-*) fmt=elf ;;
|
||||
|
||||
riscv*-*-haiku*) fmt=elf endian=little em=haiku ;;
|
||||
riscv*-*-*) fmt=elf endian=little ;;
|
||||
|
||||
rx-*-linux*) fmt=elf em=linux ;;
|
||||
@ -391,6 +398,7 @@ case ${generic_target} in
|
||||
sh-*-kaos*) fmt=elf ;;
|
||||
shle*-*-kaos*) fmt=elf ;;
|
||||
|
||||
sparc-*-haiku*) fmt=elf em=haiku ;;
|
||||
sparc-*-linux-*) fmt=elf em=linux ;;
|
||||
sparc-*-solaris*) fmt=elf em=solaris ;;
|
||||
sparc-*-*bsd*) fmt=elf em=nbsd ;;
|
||||
@ -415,7 +423,7 @@ case ${generic_target} in
|
||||
wasm32-*-*) fmt=elf ;;
|
||||
|
||||
xstormy16-*-*) fmt=elf ;;
|
||||
|
||||
|
||||
xgate-*-*) fmt=elf ;;
|
||||
|
||||
xtensa*-*-*) fmt=elf ;;
|
||||
|
3
binutils/gprof/configure
vendored
3
binutils/gprof/configure
vendored
@ -10394,7 +10394,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -15019,4 +15019,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
@ -170,6 +170,7 @@ ALL_EMULATION_SOURCES = \
|
||||
earmelf.c \
|
||||
earmelf_fbsd.c \
|
||||
earmelf_fuchsia.c \
|
||||
earmelf_haiku.c \
|
||||
earmelf_linux.c \
|
||||
earmelf_linux_eabi.c \
|
||||
earmelf_linux_fdpiceabi.c \
|
||||
@ -263,6 +264,7 @@ ALL_EMULATION_SOURCES = \
|
||||
eelf32ppc.c \
|
||||
eelf32ppc_fbsd.c \
|
||||
eelf32ppclinux.c \
|
||||
eelf32ppchaiku.c \
|
||||
eelf32ppcnto.c \
|
||||
eelf32ppcsim.c \
|
||||
eelf32ppcvxworks.c \
|
||||
@ -286,10 +288,12 @@ ALL_EMULATION_SOURCES = \
|
||||
eelf_i386_be.c \
|
||||
eelf_i386_chaos.c \
|
||||
eelf_i386_fbsd.c \
|
||||
eelf_i386_haiku.c \
|
||||
eelf_i386_ldso.c \
|
||||
eelf_i386_nacl.c \
|
||||
eelf_i386_sol2.c \
|
||||
eelf_i386_vxworks.c \
|
||||
eelf_mipsel_haiku.c \
|
||||
eelf_iamcu.c \
|
||||
eelf_s390.c \
|
||||
eh8300elf.c \
|
||||
@ -455,6 +459,7 @@ ALL_64_EMULATION_SOURCES = \
|
||||
eelf_k1om_fbsd.c \
|
||||
eelf_x86_64.c \
|
||||
eelf_x86_64_cloudabi.c \
|
||||
eelf_x86_64_haiku.c \
|
||||
eelf_x86_64_fbsd.c \
|
||||
eelf_x86_64_nacl.c \
|
||||
eelf_x86_64_sol2.c \
|
||||
@ -703,6 +708,10 @@ earmelf_fuchsia.c: $(srcdir)/emulparams/armelf_fuchsia.sh \
|
||||
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
earmelf_haiku.c: $(srcdir)/emulparams/armelf_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
|
||||
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
@ -1213,6 +1222,12 @@ eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
|
||||
$(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32ppchaiku.c: $(srcdir)/emulparams/elf32ppchaiku.sh \
|
||||
$(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 \
|
||||
$(srcdir)/emulparams/dynamic_undefined_weak.sh \
|
||||
@ -1299,6 +1314,9 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
|
||||
$(srcdir)/emulparams/elf_i386.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_i386_haiku.c: $(srcdir)/emulparams/elf_i386_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
@ -1312,6 +1330,9 @@ eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
|
||||
$(srcdir)/emultempl/solaris2.em \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_mipsel_haiku.c: $(srcdir)/emulparams/elf_mipsel_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
|
||||
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
@ -1697,6 +1718,10 @@ ez8002.c: $(srcdir)/emulparams/z8002.sh \
|
||||
eelf32_x86_64.c: $(srcdir)/emulparams/elf32_x86_64.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_x86_64_haiku.c: $(srcdir)/emulparams/elf_x86_64_haiku.sh \
|
||||
$(srcdir)/emulparams/elf_x86_64.sh \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
|
||||
$(srcdir)/emulparams/elf32_x86_64.sh \
|
||||
$(srcdir)/emulparams/elf_nacl.sh \
|
||||
|
@ -656,6 +656,7 @@ ALL_EMULATION_SOURCES = \
|
||||
earmelf.c \
|
||||
earmelf_fbsd.c \
|
||||
earmelf_fuchsia.c \
|
||||
earmelf_haiku.c \
|
||||
earmelf_linux.c \
|
||||
earmelf_linux_eabi.c \
|
||||
earmelf_linux_fdpiceabi.c \
|
||||
@ -748,6 +749,7 @@ ALL_EMULATION_SOURCES = \
|
||||
eelf32or1k_linux.c \
|
||||
eelf32ppc.c \
|
||||
eelf32ppc_fbsd.c \
|
||||
eelf32ppchaiku.c \
|
||||
eelf32ppclinux.c \
|
||||
eelf32ppcnto.c \
|
||||
eelf32ppcsim.c \
|
||||
@ -772,6 +774,7 @@ ALL_EMULATION_SOURCES = \
|
||||
eelf_i386_be.c \
|
||||
eelf_i386_chaos.c \
|
||||
eelf_i386_fbsd.c \
|
||||
eelf_i386_haiku.c \
|
||||
eelf_i386_ldso.c \
|
||||
eelf_i386_nacl.c \
|
||||
eelf_i386_sol2.c \
|
||||
@ -941,6 +944,7 @@ ALL_64_EMULATION_SOURCES = \
|
||||
eelf_x86_64.c \
|
||||
eelf_x86_64_cloudabi.c \
|
||||
eelf_x86_64_fbsd.c \
|
||||
eelf_x86_64_haiku.c \
|
||||
eelf_x86_64_nacl.c \
|
||||
eelf_x86_64_sol2.c \
|
||||
ehppa64linux.c \
|
||||
@ -2307,6 +2311,10 @@ earmelf_fuchsia.c: $(srcdir)/emulparams/armelf_fuchsia.sh \
|
||||
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
earmelf_haiku.c: $(srcdir)/emulparams/armelf_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
|
||||
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
@ -2817,6 +2825,12 @@ eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
|
||||
$(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf32ppchaiku.c: $(srcdir)/emulparams/elf32ppchaiku.sh \
|
||||
$(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 \
|
||||
$(srcdir)/emulparams/dynamic_undefined_weak.sh \
|
||||
@ -2903,6 +2917,9 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
|
||||
$(srcdir)/emulparams/elf_i386.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_i386_haiku.c: $(srcdir)/emulparams/elf_i386_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
@ -2920,6 +2937,9 @@ eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
|
||||
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_mipsel_haiku.c: $(srcdir)/emulparams/elf_mipsel_haiku.sh \
|
||||
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_iamcu.c: $(srcdir)/emulparams/elf_iamcu.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
@ -3461,6 +3481,10 @@ eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
|
||||
$(srcdir)/emulparams/elf_x86_64.sh \
|
||||
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_x86_64_haiku.c: $(srcdir)/emulparams/elf_x86_64_haiku.sh \
|
||||
$(srcdir)/emulparams/elf_x86_64.sh \
|
||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||
|
||||
eelf_x86_64_nacl.c: $(srcdir)/emulparams/elf_x86_64_nacl.sh \
|
||||
$(srcdir)/emulparams/elf_x86_64.sh \
|
||||
$(srcdir)/emulparams/elf_nacl.sh \
|
||||
|
5
binutils/ld/configure
vendored
5
binutils/ld/configure
vendored
@ -11230,7 +11230,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -14890,7 +14890,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -20484,4 +20484,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
@ -166,6 +166,7 @@ arm*-*-conix*) targ_emul=armelf ;;
|
||||
arm*-*-fuchsia*) targ_emul=armelf_fuchsia
|
||||
targ_extra_emuls="armelfb_fuchsia armelf armelfb"
|
||||
;;
|
||||
arm*-*-haiku*) targ_emul=armelf_haiku; targ_extra_emuls=armelf ;;
|
||||
avr-*-*) targ_emul=avr2
|
||||
targ_extra_emuls="avr1 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1 avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny"
|
||||
;;
|
||||
@ -360,6 +361,9 @@ 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_haiku ;;
|
||||
x86_64-*-haiku*) targ_emul=elf_x86_64_haiku
|
||||
targ_extra_emuls="elf_x86_64 elf_i386_haiku" ;;
|
||||
i[3-7]86-*-vxworks*) targ_emul=elf_i386_vxworks ;;
|
||||
i[3-7]86-*-chaos) targ_emul=elf_i386_chaos
|
||||
;;
|
||||
@ -405,6 +409,9 @@ m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
|
||||
m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
|
||||
targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb" ;;
|
||||
m68*-*-netbsdelf*) targ_emul=m68kelfnbsd ;;
|
||||
m68*-*-haiku*) targ_emul=m68kelf
|
||||
targ_extra_emuls=m68kcoff
|
||||
;;
|
||||
m68*-*-*) targ_emul=m68kelf ;;
|
||||
s12z-*-*) targ_emul=m9s12zelf
|
||||
;;
|
||||
@ -436,6 +443,9 @@ mips*el-*-netbsd*) targ_emul=elf32ltsmip
|
||||
mips*-*-netbsd*) targ_emul=elf32btsmip
|
||||
targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip"
|
||||
;;
|
||||
mips*el-*-haiku*) targ_emul=elf_mipsel_haiku
|
||||
targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
|
||||
;;
|
||||
mips64el-*-openbsd*) targ_emul=elf64ltsmip
|
||||
targ_extra_emuls=elf64btsmip
|
||||
;;
|
||||
@ -630,6 +640,7 @@ powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
|
||||
powerpc-*-aix[5-9]*) targ_emul=aix5ppc ;;
|
||||
powerpc-*-aix*) targ_emul=aixppc ;;
|
||||
powerpc-*-beos*) targ_emul=aixppc ;;
|
||||
powerpc-*-haiku*) targ_emul=elf32ppchaiku ;;
|
||||
powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
|
||||
powerpc-*-lynxos*) targ_emul=ppclynx ;;
|
||||
pru*-*-*) targ_emul=pruelf ;;
|
||||
@ -707,6 +718,7 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
|
||||
targ_extra_emuls="elf64_sparc elf32_sparc_sol2 elf32_sparc"
|
||||
targ_extra_libpath=$targ_extra_emuls
|
||||
tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` ;;
|
||||
sparc64-*-haiku*) targ_emul=elf64_sparc ;;
|
||||
sparc64-*-*) targ_emul=elf64_sparc ;;
|
||||
sparc*-*-linux-*) targ_emul=elf32_sparc
|
||||
targ_extra_emuls="elf64_sparc"
|
||||
|
26
binutils/ld/emulparams/armelf_haiku.sh
Normal file
26
binutils/ld/emulparams/armelf_haiku.sh
Normal file
@ -0,0 +1,26 @@
|
||||
ARCH=arm
|
||||
SCRIPT_NAME=elf
|
||||
OUTPUT_FORMAT="elf32-littlearm"
|
||||
BIG_OUTPUT_FORMAT="elf32-bigarm"
|
||||
LITTLE_OUTPUT_FORMAT="elf32-littlearm"
|
||||
MAXPAGESIZE=0x8000
|
||||
COMMONPAGESIZE=0x1000
|
||||
TEMPLATE_NAME=elf32
|
||||
EXTRA_EM_FILE=armelf
|
||||
GENERATE_SHLIB_SCRIPT=yes
|
||||
GENERATE_PIE_SCRIPT=yes
|
||||
|
||||
DATA_START_SYMBOLS='__data_start = . ;';
|
||||
OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)'
|
||||
OTHER_BSS_SYMBOLS='__bss_start__ = .;'
|
||||
OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
|
||||
OTHER_END_SYMBOLS='__end__ = . ;'
|
||||
OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
|
||||
|
||||
TEXT_START_ADDR=0x00008000
|
||||
TARGET2_TYPE=got-rel
|
||||
|
||||
# ARM does not support .s* sections.
|
||||
NO_SMALL_DATA=yes
|
||||
|
||||
. ${srcdir}/emulparams/elf_haiku.sh
|
7
binutils/ld/emulparams/elf32ppchaiku.sh
Normal file
7
binutils/ld/emulparams/elf32ppchaiku.sh
Normal file
@ -0,0 +1,7 @@
|
||||
. ${srcdir}/emulparams/elf32ppc.sh
|
||||
. ${srcdir}/emulparams/elf_haiku.sh
|
||||
TEXT_START_ADDR=0x200000
|
||||
MAXPAGESIZE=0x1000
|
||||
GENERATE_SHLIB_SCRIPT=yes
|
||||
BSS_PLT=
|
||||
LIBPATH_SUFFIX=
|
1
binutils/ld/emulparams/elf_haiku.sh
Normal file
1
binutils/ld/emulparams/elf_haiku.sh
Normal file
@ -0,0 +1 @@
|
||||
ELF_INTERPRETER_NAME=\"/system/runtime_loader\"
|
12
binutils/ld/emulparams/elf_i386_haiku.sh
Normal file
12
binutils/ld/emulparams/elf_i386_haiku.sh
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
. ${srcdir}/emulparams/elf_haiku.sh
|
3
binutils/ld/emulparams/elf_mipsel_haiku.sh
Normal file
3
binutils/ld/emulparams/elf_mipsel_haiku.sh
Normal file
@ -0,0 +1,3 @@
|
||||
. ${srcdir}/emulparams/elf32lmip.sh
|
||||
. ${srcdir}/emulparams/elf_haiku.sh
|
||||
|
2
binutils/ld/emulparams/elf_x86_64_haiku.sh
Normal file
2
binutils/ld/emulparams/elf_x86_64_haiku.sh
Normal file
@ -0,0 +1,2 @@
|
||||
. ${srcdir}/emulparams/elf_x86_64.sh
|
||||
. ${srcdir}/emulparams/elf_haiku.sh
|
2
binutils/libtool.m4
vendored
2
binutils/libtool.m4
vendored
@ -2342,7 +2342,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
|
3
binutils/opcodes/configure
vendored
3
binutils/opcodes/configure
vendored
@ -10643,7 +10643,7 @@ haiku*)
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=yes
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
||||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
|
||||
@ -15466,4 +15466,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user