btrev43051 adds 4 changesets to branch 'master' old head: 7b651beab73f0c490d949da7d914320d60a05769 new head: f31d42dfd9d06087ae5b683174980d19779deb6f overview: http://cgit.haiku-os.org/buildtools/log/?qt=range&q=f31d42d+%5E7b651be ---------------------------------------------------------------------------- eecbb21: import binutils 2.22 f276c0f: Tied v2.22 to master 34e528a: import binutils 2.23.2 f31d42d: Merge binutils 2.23.2 [ Jerome Duval <jerome.duval@xxxxxxxxx> ] ---------------------------------------------------------------------------- 2923 files changed, 390453 insertions(+), 113714 deletions(-) binutils/ChangeLog | 171 +- binutils/MAINTAINERS | 10 +- binutils/Makefile.def | 5 +- binutils/Makefile.in | 27 +- binutils/Makefile.tpl | 14 +- binutils/bfd/ChangeLog | 4577 +++-- binutils/bfd/ChangeLog-2011 | 3383 ++++ binutils/bfd/Makefile.am | 26 + binutils/bfd/Makefile.in | 42 +- binutils/bfd/aclocal.m4 | 4 +- binutils/bfd/aix386-core.c | 30 +- binutils/bfd/aout-arm.c | 10 +- binutils/bfd/aout-cris.c | 3 +- binutils/bfd/aout-ns32k.c | 9 +- binutils/bfd/aout-sparcle.c | 3 +- binutils/bfd/aout-tic30.c | 6 +- binutils/bfd/aout0.c | 3 +- binutils/bfd/aoutx.h | 224 +- binutils/bfd/archive.c | 427 +- binutils/bfd/archive64.c | 6 +- binutils/bfd/archures.c | 68 +- binutils/bfd/bfd-in.h | 73 +- binutils/bfd/bfd-in2.h | 651 +- binutils/bfd/bfd.c | 95 +- binutils/bfd/bfdio.c | 26 +- binutils/bfd/cache.c | 12 +- binutils/bfd/cisco-core.c | 46 +- binutils/bfd/coff-alpha.c | 184 +- binutils/bfd/coff-apollo.c | 13 +- binutils/bfd/coff-arm.c | 6 +- binutils/bfd/coff-aux.c | 34 +- binutils/bfd/coff-h8300.c | 41 +- binutils/bfd/coff-h8500.c | 40 +- binutils/bfd/coff-i386.c | 79 +- binutils/bfd/coff-i960.c | 104 +- binutils/bfd/coff-ia64.c | 14 +- binutils/bfd/coff-m68k.c | 106 +- binutils/bfd/coff-m88k.c | 43 +- binutils/bfd/coff-mcore.c | 73 +- binutils/bfd/coff-mips.c | 227 +- binutils/bfd/coff-or32.c | 75 +- binutils/bfd/coff-ppc.c | 546 +- binutils/bfd/coff-rs6000.c | 154 +- binutils/bfd/coff-sh.c | 453 +- binutils/bfd/coff-sparc.c | 38 +- binutils/bfd/coff-stgo32.c | 127 +- binutils/bfd/coff-tic30.c | 33 +- binutils/bfd/coff-tic4x.c | 85 +- binutils/bfd/coff-tic54x.c | 120 +- binutils/bfd/coff-tic80.c | 122 +- binutils/bfd/coff-w65.c | 64 +- binutils/bfd/coff-x86_64.c | 3 +- binutils/bfd/coff64-rs6000.c | 2 + binutils/bfd/coffcode.h | 10 +- binutils/bfd/coffgen.c | 86 +- binutils/bfd/cofflink.c | 614 +- binutils/bfd/compress.c | 3 +- binutils/bfd/config.bfd | 86 +- binutils/bfd/config.in | 10 + binutils/bfd/configure | 81 +- binutils/bfd/configure.in | 82 +- binutils/bfd/cpu-aarch64.c | 121 + binutils/bfd/cpu-alpha.c | 1 + binutils/bfd/cpu-arc.c | 8 +- binutils/bfd/cpu-arm.c | 3 +- binutils/bfd/cpu-avr.c | 1 + binutils/bfd/cpu-bfin.c | 3 +- binutils/bfd/cpu-cr16.c | 3 +- binutils/bfd/cpu-cr16c.c | 3 +- binutils/bfd/cpu-cris.c | 12 +- binutils/bfd/cpu-crx.c | 3 +- binutils/bfd/cpu-d10v.c | 3 + binutils/bfd/cpu-d30v.c | 1 + binutils/bfd/cpu-dlx.c | 3 +- binutils/bfd/cpu-epiphany.c | 58 + binutils/bfd/cpu-fr30.c | 1 + binutils/bfd/cpu-frv.c | 1 + binutils/bfd/cpu-h8300.c | 7 + binutils/bfd/cpu-h8500.c | 10 +- binutils/bfd/cpu-hppa.c | 12 +- binutils/bfd/cpu-i370.c | 3 + binutils/bfd/cpu-i386.c | 88 + binutils/bfd/cpu-i860.c | 1 + binutils/bfd/cpu-i960.c | 28 +- binutils/bfd/cpu-ia64-opc.c | 54 + binutils/bfd/cpu-ia64.c | 6 +- binutils/bfd/cpu-ip2k.c | 2 + binutils/bfd/cpu-iq2000.c | 2 + binutils/bfd/cpu-k1om.c | 5 + binutils/bfd/cpu-l1om.c | 5 + binutils/bfd/cpu-lm32.c | 5 +- binutils/bfd/cpu-m10200.c | 3 +- binutils/bfd/cpu-m10300.c | 3 + binutils/bfd/cpu-m32c.c | 2 + binutils/bfd/cpu-m32r.c | 2 +- binutils/bfd/cpu-m68hc11.c | 1 + binutils/bfd/cpu-m68hc12.c | 2 + binutils/bfd/cpu-m68k.c | 3 +- binutils/bfd/cpu-m88k.c | 3 +- [ *** stats truncated: 2824 lines dropped *** ] ############################################################################ Commit: eecbb214c7449cde0d28a4d24e8a4184f8658c3b URL: http://cgit.haiku-os.org/buildtools/commit/?id=eecbb21 Author: Jerome Duval <jerome.duval@xxxxxxxxx> Date: Wed Apr 3 19:07:39 2013 UTC import binutils 2.22 ---------------------------------------------------------------------------- diff --git a/binutils/bfd/config.bfd b/binutils/bfd/config.bfd index 57ff599..3b9872a 100644 --- a/binutils/bfd/config.bfd +++ b/binutils/bfd/config.bfd @@ -281,7 +281,7 @@ case "${targ}" in ;; arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \ arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \ - arm*-*-eabi* | arm*-*-haiku*) + arm*-*-eabi* ) targ_defvec=bfd_elf32_littlearm_vec targ_selvecs=bfd_elf32_bigarm_vec ;; @@ -607,11 +607,6 @@ case "${targ}" in targ_selvecs="bfd_elf32_i386_vec bfd_elf32_x86_64_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec" want64=true ;; - x86_64-*-haiku*) - targ_defvec=bfd_elf64_x86_64_vec - targ_selvecs="bfd_elf32_i386_vec" - want64=true - ;; x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep) targ_defvec=x86_64pe_vec targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec i386pe_vec i386pei_vec bfd_elf32_i386_vec" @@ -650,9 +645,6 @@ case "${targ}" in targ_defvec=bfd_elf32_i386_vec targ_selvecs="i386pe_vec i386pei_vec" ;; - i[3-7]86-*-haiku*) - targ_defvec=bfd_elf32_i386_vec - ;; i[3-7]86-*-interix*) targ_defvec=i386pei_vec targ_selvecs="i386pe_vec" @@ -844,10 +836,7 @@ case "${targ}" in targ_selvecs=ieee_vec targ_underscore=yes ;; - m68*-*-haiku*) - targ_defvec=bfd_elf32_m68k_vec - targ_selvecs="m68kcoff_vec ieee_vec" - ;; + m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*) targ_defvec=bfd_elf32_m88k_vec targ_selvecs=m88kbcs_vec @@ -891,10 +880,6 @@ case "${targ}" in targ_defvec=bfd_elf32_tradlittlemips_vec targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec" ;; - mips*el-*-haiku*) - targ_defvec=bfd_elf32_littlemips_vec - targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec" - ;; mips*-*-netbsd*) targ_defvec=bfd_elf32_tradbigmips_vec targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" @@ -1172,11 +1157,6 @@ 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="$targ_archs bfd_i386_arch" ;; - powerpc-*-haiku*) - targ_defvec=bfd_elf32_powerpc_vec - targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec pef_vec pef_xlib_vec pmac_xcoff_vec ppcboot_vec" - targ_cflags=-D__HAIKU_TARGET__ - ;; powerpc-*-macos*) targ_defvec=pmac_xcoff_vec ;; diff --git a/binutils/bfd/configure b/binutils/bfd/configure index 9dc2486..bc242b9 100755 --- a/binutils/bfd/configure +++ b/binutils/bfd/configure @@ -10608,7 +10608,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; diff --git a/binutils/bfd/doc/bfd.texinfo b/binutils/bfd/doc/bfd.texinfo index c3ca5e7..45ffa73 100644 --- a/binutils/bfd/doc/bfd.texinfo +++ b/binutils/bfd/doc/bfd.texinfo @@ -322,7 +322,7 @@ All of BFD lives in one directory. @printindex cp @tex -% I think something like @@colophon should be in texinfo. In the +% I think something like @colophon should be in texinfo. In the % meantime: \long\def\colophon{\hbox to0pt{}\vfill \centerline{The body of this manual is set in} @@ -333,7 +333,7 @@ All of BFD lives in one directory. \centerline{{\sl\fontname\tensl\/}} \centerline{are used for emphasis.}\vfill} \page\colophon -% Blame: doc@@cygnus.com, 28mar91. +% Blame: doc@xxxxxxxxxx, 28mar91. @end tex @bye diff --git a/binutils/bfd/elf32-ppc.c b/binutils/bfd/elf32-ppc.c index cfad417..0c25c3e 100644 --- a/binutils/bfd/elf32-ppc.c +++ b/binutils/bfd/elf32-ppc.c @@ -9065,7 +9065,7 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd, #define ELF_ARCH bfd_arch_powerpc #define ELF_TARGET_ID PPC32_ELF_DATA #define ELF_MACHINE_CODE EM_PPC -#if defined(__QNXTARGET__) || defined(__HAIKU_TARGET__) +#ifdef __QNXTARGET__ #define ELF_MAXPAGESIZE 0x1000 #else #define ELF_MAXPAGESIZE 0x10000 diff --git a/binutils/binutils/Makefile.am b/binutils/binutils/Makefile.am index 59f759f..bbe58e2 100644 --- a/binutils/binutils/Makefile.am +++ b/binutils/binutils/Makefile.am @@ -272,7 +272,7 @@ sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex.@OBJEXT@ syslex.@OBJEXT@: syslex.c sysinfo.h config.h if [ -r syslex.c ]; then \ - $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) syslex.c ; \ + $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) syslex.c ; \ else \ $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex.c ;\ fi diff --git a/binutils/binutils/Makefile.in b/binutils/binutils/Makefile.in index 9fe5642..9f10781 100644 --- a/binutils/binutils/Makefile.in +++ b/binutils/binutils/Makefile.in @@ -1286,7 +1286,7 @@ sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex.@OBJEXT@ syslex.@OBJEXT@: syslex.c sysinfo.h config.h if [ -r syslex.c ]; then \ - $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) syslex.c ; \ + $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) syslex.c ; \ else \ $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex.c ;\ fi diff --git a/binutils/binutils/configure b/binutils/binutils/configure index 9ed900e..1a4a1ef 100755 --- a/binutils/binutils/configure +++ b/binutils/binutils/configure @@ -10403,7 +10403,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; diff --git a/binutils/configure b/binutils/configure index 9f58c87..eb69f28 100755 --- a/binutils/configure +++ b/binutils/configure @@ -2859,7 +2859,7 @@ case "${ENABLE_GOLD}" in is_elf=no case "${target}" in *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ - | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* | *-*-haiku* \ + | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ | *-*-solaris2* | *-*-nto*) case "${target}" in diff --git a/binutils/configure.ac b/binutils/configure.ac index 3e34e18..57350a5 100644 --- a/binutils/configure.ac +++ b/binutils/configure.ac @@ -310,7 +310,7 @@ case "${ENABLE_GOLD}" in is_elf=no case "${target}" in *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ - | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* | *-*-haiku* \ + | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ | *-*-solaris2* | *-*-nto*) case "${target}" in diff --git a/binutils/gas/config/tc-i386.c b/binutils/gas/config/tc-i386.c index 036e608..59182bb 100644 --- a/binutils/gas/config/tc-i386.c +++ b/binutils/gas/config/tc-i386.c @@ -306,8 +306,7 @@ const char extra_symbol_chars[] = "*%-([" && !defined (TE_NETWARE) \ && !defined (TE_FreeBSD) \ && !defined (TE_DragonFly) \ - && !defined (TE_NetBSD) \ - && !defined (TE_BeOS))) + && !defined (TE_NetBSD))) /* This array holds the chars that always start a comment. If the pre-processor is disabled, these aren't very useful. The option --divide will remove '/' from this list. */ diff --git a/binutils/gas/config/te-beos.h b/binutils/gas/config/te-beos.h deleted file mode 100644 index af472ad..0000000 --- a/binutils/gas/config/te-beos.h +++ /dev/null @@ -1,10 +0,0 @@ -/* 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_BeOS 1 - -#define LOCAL_LABELS_DOLLAR 1 -#define LOCAL_LABELS_FB 1 - -#include "obj-format.h" diff --git a/binutils/gas/config/te-haiku.h b/binutils/gas/config/te-haiku.h deleted file mode 100644 index af472ad..0000000 --- a/binutils/gas/config/te-haiku.h +++ /dev/null @@ -1,10 +0,0 @@ -/* 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_BeOS 1 - -#define LOCAL_LABELS_DOLLAR 1 -#define LOCAL_LABELS_FB 1 - -#include "obj-format.h" diff --git a/binutils/gas/configure b/binutils/gas/configure index 2b55d3c..b70b86e 100755 --- a/binutils/gas/configure +++ b/binutils/gas/configure @@ -10391,7 +10391,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; diff --git a/binutils/gas/configure.tgt b/binutils/gas/configure.tgt index b95abfa..a171a32 100644 --- a/binutils/gas/configure.tgt +++ b/binutils/gas/configure.tgt @@ -121,7 +121,6 @@ case ${generic_target} in fmt=coff em=wince-pe ;; arm-*-pe) fmt=coff em=pe ;; arm-*-riscix*) fmt=aout em=riscix ;; - arm-*-haiku*) fmt=elf em=haiku ;; avr-*-*) fmt=elf bfd_gas=yes ;; @@ -173,10 +172,9 @@ case ${generic_target} in i386-ibm-aix*) fmt=coff em=i386aix ;; i386-sequent-bsd*) fmt=aout em=dynix ;; i386-*-beospe*) fmt=coff em=pe ;; - i386-*-beos*) fmt=elf em=beos ;; + i386-*-beos*) fmt=elf ;; i386-*-coff) fmt=coff ;; i386-*-elf) fmt=elf ;; - i386-*-haiku*) fmt=elf em=haiku ;; i386-*-kaos*) fmt=elf ;; i386-*-bsd*) fmt=aout em=386bsd ;; i386-*-netbsd0.8) fmt=aout em=386bsd ;; @@ -267,7 +265,6 @@ case ${generic_target} in m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;; m68k-*-psos*) fmt=elf em=psos;; - m68k-*-haiku*) fmt=elf em=haiku ;; mep-*-elf) fmt=elf ;; @@ -296,7 +293,6 @@ case ${generic_target} in mips-*-elf* | mips-*-rtems*) fmt=elf ;; mips-*-netbsd*) fmt=elf em=tmips ;; mips-*-openbsd*) fmt=elf em=tmips ;; - mips*-*-haiku*) fmt=elf endian=little em=haiku ;; mmix-*-*) fmt=elf ;; @@ -330,10 +326,9 @@ case ${generic_target} in ppc-*-aix5.[01]) fmt=coff em=aix5 ;; ppc-*-aix[5-9].*) fmt=coff em=aix5 ;; ppc-*-aix*) fmt=coff ;; - ppc-*-beos*) fmt=coff em=beos ;; + 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-*-rtems*) fmt=elf ;; diff --git a/binutils/gprof/configure b/binutils/gprof/configure index aa8b067..fa68ffc 100755 --- a/binutils/gprof/configure +++ b/binutils/gprof/configure @@ -10321,7 +10321,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; diff --git a/binutils/include/binary-io.h b/binutils/include/binary-io.h index 30d716b..2984271 100644 --- a/binutils/include/binary-io.h +++ b/binutils/include/binary-io.h @@ -30,8 +30,8 @@ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif -#if defined(__BEOS__) || defined(__HAIKU__) - /* BeOS 5 and Haiku R1 have O_BINARY and O_TEXT, but they have no effect. */ +#ifdef __BEOS__ + /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif diff --git a/binutils/intl/loadmsgcat.c b/binutils/intl/loadmsgcat.c index 8d282ae..536ee12 100644 --- a/binutils/intl/loadmsgcat.c +++ b/binutils/intl/loadmsgcat.c @@ -480,8 +480,8 @@ char *alloca (); # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif -#if defined(__BEOS__) || defined(__HAIKU__) - /* BeOS 5 and Haiku R1 have O_BINARY and O_TEXT, but they have no effect. */ +#ifdef __BEOS__ + /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif diff --git a/binutils/ld/Makefile.am b/binutils/ld/Makefile.am index 98d917d..5ae86ba 100644 --- a/binutils/ld/Makefile.am +++ b/binutils/ld/Makefile.am @@ -141,7 +141,6 @@ ALL_EMULATION_SOURCES = \ earmcoff.c \ earmelf.c \ earmelf_fbsd.c \ - earmelf_haiku.c \ earmelf_linux.c \ earmelf_linux_eabi.c \ earmelf_nbsd.c \ @@ -260,12 +259,9 @@ 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_sol2.c \ eelf_i386_vxworks.c \ - eelf_ppc_haiku.c \ - eelf_mipsel_haiku.c \ eelf_s390.c \ egld960.c \ egld960coff.c \ @@ -698,10 +694,6 @@ earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \ $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)" -earmelf_haiku.c: $(srcdir)/emulparams/armelf_haiku.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \ - $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} - ${GENSCRIPTS} armelf_haiku "$(tdir_armelf_haiku)" earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \ $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} @@ -1192,9 +1184,6 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \ $(srcdir)/emulparams/elf_i386.sh \ $(ELF_DEPS) $(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 \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)" @@ -1203,12 +1192,6 @@ eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \ $(srcdir)/emultempl/solaris2.em \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf_i386_sol2 "$(tdir_elf_i386_sol2)" -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_mipsel_haiku.c: $(srcdir)/emulparams/elf_mipsel_haiku.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} - ${GENSCRIPTS} elf_mipsel_haiku "$(tdir_elf_mipsel_haiku)" 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} diff --git a/binutils/ld/Makefile.in b/binutils/ld/Makefile.in index 0c8d512..f062b92 100644 --- a/binutils/ld/Makefile.in +++ b/binutils/ld/Makefile.in @@ -447,7 +447,6 @@ ALL_EMULATION_SOURCES = \ earmcoff.c \ earmelf.c \ earmelf_fbsd.c \ - earmelf_haiku.c \ earmelf_linux.c \ earmelf_linux_eabi.c \ earmelf_nbsd.c \ @@ -566,12 +565,9 @@ 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_sol2.c \ eelf_i386_vxworks.c \ - eelf_ppc_haiku.c \ - eelf_mipsel_haiku.c \ eelf_s390.c \ egld960.c \ egld960coff.c \ @@ -2151,10 +2147,6 @@ earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \ $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)" -earmelf_haiku.c: $(srcdir)/emulparams/armelf_haiku.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \ - $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} - ${GENSCRIPTS} armelf_haiku "$(tdir_armelf_haiku)" earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \ $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} @@ -2645,18 +2637,9 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \ $(srcdir)/emulparams/elf_i386.sh \ $(ELF_DEPS) $(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 \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)" -eelf_mipsel_haiku.c: $(srcdir)/emulparams/elf_mipsel_haiku.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} - ${GENSCRIPTS} elf_mipsel_haiku "$(tdir_elf_mipsel_haiku)" -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_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \ $(srcdir)/emulparams/solaris2.sh \ $(srcdir)/emultempl/solaris2.em \ diff --git a/binutils/ld/configure b/binutils/ld/configure index f67b793..9e4cb57 100755 --- a/binutils/ld/configure +++ b/binutils/ld/configure @@ -11342,7 +11342,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; @@ -15001,7 +15001,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; diff --git a/binutils/ld/configure.tgt b/binutils/ld/configure.tgt index 7c31e4e..197f27a 100644 --- a/binutils/ld/configure.tgt +++ b/binutils/ld/configure.tgt @@ -97,7 +97,6 @@ arm*-*-uclinux*) targ_emul=armelf_linux ;; arm-*-vxworks) targ_emul=armelf_vxworks ;; arm*-*-conix*) targ_emul=armelf ;; -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" ;; @@ -277,9 +276,6 @@ 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 - targ_extra_emuls=elf_i386_haiku ;; i[3-7]86-*-vxworks*) targ_emul=elf_i386_vxworks ;; i[3-7]86-*-chaos) targ_emul=elf_i386_chaos ;; @@ -351,9 +347,7 @@ m68*-*-netbsdaout* | m68*-*-netbsd*) targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;; m68*-*-psos*) targ_emul=m68kpsos ;; m68*-*-rtemscoff*) targ_emul=m68kcoff ;; -m68*-*-rtems*) targ_emul=m68kelf ;; -m68*-*-haiku*) targ_emul=m68kelf - targ_extra_emuls=m68kcoff +m68*-*-rtems*) targ_emul=m68kelf ;; m8*-*-*) targ_emul=m88kbcs ;; @@ -379,9 +373,6 @@ mips*-*-ecoff*) targ_emul=mipsidt ;; mips*el-*-netbsd*) targ_emul=elf32ltsmip targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip" ;; -mips*el-*-haiku*) targ_emul=elf_mipsel_haiku - targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" - ;; mips*-*-netbsd*) targ_emul=elf32btsmip targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip" ;; @@ -518,7 +509,6 @@ powerpcle-*-cygwin*) targ_emul=ppcpe ;; powerpc-*-aix[5-9]*) 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-*-aix[5-9]*) targ_emul=aix5rs6 ;; diff --git a/binutils/ld/emulparams/armelf_haiku.sh b/binutils/ld/emulparams/armelf_haiku.sh deleted file mode 100644 index 39b7f65..0000000 --- a/binutils/ld/emulparams/armelf_haiku.sh +++ /dev/null @@ -1,24 +0,0 @@ -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 diff --git a/binutils/ld/emulparams/elf_i386_haiku.sh b/binutils/ld/emulparams/elf_i386_haiku.sh deleted file mode 100644 index 25ca6bc..0000000 --- a/binutils/ld/emulparams/elf_i386_haiku.sh +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/binutils/ld/emulparams/elf_mipsel_haiku.sh b/binutils/ld/emulparams/elf_mipsel_haiku.sh deleted file mode 100644 index ff9c325..0000000 --- a/binutils/ld/emulparams/elf_mipsel_haiku.sh +++ /dev/null @@ -1,2 +0,0 @@ -. ${srcdir}/emulparams/elf32lmip.sh - diff --git a/binutils/ld/emulparams/elf_ppc_haiku.sh b/binutils/ld/emulparams/elf_ppc_haiku.sh deleted file mode 100644 index 5a65cd4..0000000 --- a/binutils/ld/emulparams/elf_ppc_haiku.sh +++ /dev/null @@ -1,20 +0,0 @@ -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 -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) } -" diff --git a/binutils/ld/ld.texinfo b/binutils/ld/ld.texinfo index 929fd97..592e38c 100644 --- a/binutils/ld/ld.texinfo +++ b/binutils/ld/ld.texinfo @@ -7778,7 +7778,7 @@ If you have more than one @code{SECT} statement for the same @printindex cp @tex -% I think something like @@colophon should be in texinfo. In the +% I think something like @colophon should be in texinfo. In the % meantime: \long\def\colophon{\hbox to0pt{}\vfill \centerline{The body of this manual is set in} @@ -7789,7 +7789,7 @@ If you have more than one @code{SECT} statement for the same \centerline{{\sl\fontname\tensl\/}} \centerline{are used for emphasis.}\vfill} \page\colophon -% Blame: doc@@cygnus.com, 28mar91. +% Blame: doc@xxxxxxxxxx, 28mar91. @end tex @bye diff --git a/binutils/libtool.m4 b/binutils/libtool.m4 index 1fdb585..71bcee8 100644 --- a/binutils/libtool.m4 +++ b/binutils/libtool.m4 @@ -2329,7 +2329,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; diff --git a/binutils/opcodes/configure b/binutils/opcodes/configure index 65ece59..746070e 100755 --- a/binutils/opcodes/configure +++ b/binutils/opcodes/configure @@ -10338,7 +10338,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/system/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' hardcode_into_libs=yes ;; ############################################################################ Commit: f276c0ffd130b99fab6c756b248e677da09245c7 URL: http://cgit.haiku-os.org/buildtools/commit/?id=f276c0f Author: Jerome Duval <jerome.duval@xxxxxxxxx> Date: Wed Apr 3 19:35:42 2013 UTC Tied v2.22 to master ---------------------------------------------------------------------------- ############################################################################ Commit: 34e528abef39aa1e02ca95d77a1c0b03a5fdb8b6 URL: http://cgit.haiku-os.org/buildtools/commit/?id=34e528a Author: Jerome Duval <jerome.duval@xxxxxxxxx> Date: Wed Apr 3 19:39:13 2013 UTC import binutils 2.23.2 ---------------------------------------------------------------------------- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e572d95..c662948 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,150 @@ +2012-08-26 H.J. Lu <hongjiu.lu@xxxxxxxxx> + + PR binutils/4970 + * Makefile.def (host_modules): Rmove lib_path=.libs from bfd + and opcodes. + * Makefile.in: Regenerated. + +2012-06-28 Christophe Lyon <christophe.lyon@xxxxxx> + + * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure + they contain -O2. + * configure: Regenerate. + +2012-05-14 Catherine Moore <clm@xxxxxxxxxxxxxxxx> + + * NEWS: Mention PowerPC VLE port. + +2012-05-11 Mike Frysinger <vapier@xxxxxxxxxx> + + * MAINTAINERS (config/): Move to intl/ section. + (compile; depcomp; install-sh; missing; ylwrap): Likewise. + +2012-05-09 Nick Clifton <nickc@xxxxxxxxxx> + Paul Smith <psmith@xxxxxxx> + + PR bootstrap/50461 + * configure.ac (mpfr-dir): When using in-tree MPFR sources + allow for the fact that from release v3.1.0 of MPFR the source + files were moved into a src sub-directory. + * configure: Regenerate. + +2012-05-02 Roland McGrath <mcgrathr@xxxxxxxxxx> + + * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. + * configure: Regenerate. + +2012-04-25 Joel Brobecker <brobecker@xxxxxxxxxxx> + + * config.sub: Update to 2012-04-18 version from official repo. + +2012-03-19 Tristan Gingold <gingold@xxxxxxxxxxx> + + * configure.ac (ia64*-*-*vms*): Add support for ld. + * configure: Regenerate. + +2012-03-14 Rainer Orth <ro@xxxxxxxxxxxxxxxxxxxxxxxx> + + * configure.ac (enable_libgomp): Remove *-*-irix6*. + (unsupported_languages): Remove mips-sgi-irix6.*. + (noconfigdirs): Don't add ${libgcj} for mips*-*-irix6*. + (with_stabs): Remove. + * configure: Regenerate. + +2012-03-12 Rainer Orth <ro@xxxxxxxxxxxxxxxxxxxxxxxx> + + * configure.ac (enable_libgomp): Remove *-*-osf*. + (with_stabs): Remove alpha*-*-osf*. + * configure: Regenerate. + +2012-03-09 Jeff Johnston <jjohnstn@xxxxxxxxxx> + + * COPYING.NEWLIB: Modify DJ Delorie license to include + modification rights in clause as permitted by DJ Delorie. + * COPYING.LIBGLOSS: Ditto. + +2012-03-09 Jeff Johnston <jjohnstn@xxxxxxxxxx> + + * COPYING.NEWLIB: Remove two unused licenses. + +2012-03-05 Tristan Gingold <gingold@xxxxxxxxxxx> + + * configure.ac: Enable gdb and readline for ia64*-*-*vms*. + * configure: Regenerate. + +2012-02-21 Joern Rennecke <joern.rennecke@xxxxxxxxxxxx> + + * COPYING.NEWLIB: Add Adapteva notice. + * COPYING.LIBGLOSS: Add Adapteva notice. + +2011-12-18 Eric Botcazou <ebotcazou@xxxxxxxxxxx> + + * configure: Regenerate. + +2011-12-15 Jeff Johnston <jjohnstn@xxxxxxxxxx> + + * COPYING.LIBGLOSS: Add GPL with exception license. + +2011-11-09 Roland McGrath <mcgrathr@xxxxxxxxxx> + + * configure.ac: Add tool checks for READELF and READELF_FOR_TARGET. + * configure: Rebuild. + * Makefile.def (flags_to_pass): Add READELF_FOR_TARGET. + * Makefile.tpl (READELF, READELF_FOR_TARGET): New variables. + (HOST_EXPORTS): Add READELF, READELF_FOR_TARGET. + (BASE_FLAGS_TO_PASS): Add READELF_FOR_TARGET. + (BASE_TARGET_EXPORTS, EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS): + Add READELF. + * Makefile.in: Rebuild. + +2011-11-08 Richard Henderson <rth@xxxxxxxxxx> + + * configure.ac: Test for libitm directory present first. + + * configure.ac: Adjust srcdir for running libitm/configure.tgt. + + * configure.ac: Test libitm/configure.tgt to disable libitm. + * configure: Rebuild. + +2011-11-02 Rainer Orth <ro@xxxxxxxxxxxxxxxxxxxxxxxx> + + * Makefile.tpl (EXTRA_GCC_FLAGS): Remove LIBGCC2_CFLAGS, + LIBGCC2_DEBUG_CFLAGS, LIBGCC2_INCLUDES. + * Makefile.in: Regenerate. + +2011-11-01 DJ Delorie <dj@xxxxxxxxxx> + + * configure.ac (rl78-*-*) New case. + * configure: Regenerate. + +2011-11-01 DJ Delorie <dj@xxxxxxxxxx> + + * config.sub: Update to version 2011-10-29 (added rl78) + +2011-10-27 Nick Clifton <nickc@xxxxxxxxxx> + + * config.sub: Import these changes from the config project: + + 2011-10-08 Joern Rennecke <joern.rennecke@xxxxxxxxxxxx> + Ben Elliston <bje@xxxxxxx> + + * config.sub (epiphany): New. + + 2011-09-09 Linas Vepstas <linasvepstas@xxxxxxxxx> + Ben Elliston <bje@xxxxxxx> + + * config.sub (hexagon, hexagon-*): New. + + 2011-08-23 Roland McGrath <mcgrathr@xxxxxxxxxx> + + * config.sub: Rename 32eb to be32, 32el to le32, 64el to le64, and + 64eb to be64. + + 2011-08-16 Roland McGrath <mcgrathr@xxxxxxxxxx> + + * config.sub (32eb, 32el, 64eb, 64el): New (pseudo-)CPUs. + (nacl): Grok as alias for 32el-unknown-nacl. + 2011-08-19 Joel Brobecker <brobecker@xxxxxxxxxxx> * src-release (GDB_SUPPORT_DIRS): Add 'cpu'. @@ -475,11 +622,11 @@ * config.guess: Update to version 2011-02-02 * config.sub: Update to version 2011-02-24 - + 2011-03-03 Sebastian Pop <sebastian.pop@xxxxxxx> - * configure.ac: Adjust test of with_ppl. - * configure: Regenerated. + * configure.ac: Adjust test of with_ppl. + * configure: Regenerated. 2011-03-02 Sebastian Pop <sebastian.pop@xxxxxxx> @@ -1086,11 +1233,11 @@ * lt~obsolete.m4: Likewise. 2010-01-07 Kaveh R. Ghazi <ghazi@xxxxxxxxxxxxxxxx> - Francois-Xavier Coudert <fxcoudert@xxxxxxxxxxx> + Francois-Xavier Coudert <fxcoudert@xxxxxxxxxxx> PR bootstrap/42424 * configure.ac: Include libtool m4 files. - (_LT_CHECK_OBJDIR): Call it. + (_LT_CHECK_OBJDIR): Call it. (extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags, gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir. @@ -1503,8 +1650,8 @@ 2009-06-03 Jerome Guitton <guitton@xxxxxxxxxxx> Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> - * Makefile.tpl (all): Avoid a trailing backslash. - * Makefile.in: Regenerate. + * Makefile.tpl (all): Avoid a trailing backslash. + * Makefile.in: Regenerate. 2009-06-03 Ben Elliston <bje@xxxxxxxxxx> @@ -3667,7 +3814,7 @@ non-ported target libraries in noconfigdirs. <cris-*, crisv32-*> Ditto, except for non-aout, non-elf, non-linux-gnu. Remove libgcj_ex_libffi. - <lang_frag loop>: Set add_this_lang=no if the language is in + <lang_frag loop>: Set add_this_lang=no if the language is in unsupported_languages. * configure: Regenerate. @@ -4988,8 +5135,8 @@ 2003-12-21 Bernardo Innocenti <bernie@xxxxxxxxxxx> - * configure.in (*-*-uclinux): Exclude newlib, libgloss and rda. - * configure: Regenerated. + * configure.in (*-*-uclinux): Exclude newlib, libgloss and rda. + * configure: Regenerated. 2003-12-19 Nathanael Nerode <neroden@xxxxxxxxxxx> @@ -13078,8 +13225,8 @@ Mon May 10 05:58:35 1993 Ken Raeburn (raeburn@xxxxxxxxxxxxxxxx) Sun May 9 17:47:57 1993 Rob Savoye (rob at darkstar.cygnus.com) - * Makefile.in: Use srcroot to find runtest rather than rootme. - Pass RUNTESTFLAGS and EXPECT down in BASE_FLAGS_TO_PASS. + * Makefile.in: Use srcroot to find runtest rather than rootme. + Pass RUNTESTFLAGS and EXPECT down in BASE_FLAGS_TO_PASS. Fri May 7 14:55:59 1993 Ian Lance Taylor (ian@xxxxxxxxxx) diff --git a/binutils/MAINTAINERS b/binutils/MAINTAINERS index 046c5ea..dd8601b 100644 --- a/binutils/MAINTAINERS +++ b/binutils/MAINTAINERS @@ -49,7 +49,8 @@ gdb/; readline/; sim/; GDB's part of include/ include/ See binutils/, gdb/, sid/, gcc/, libiberty/ etc. -intl/; config.rhost; libiberty/; libiberty's part of include/ +intl/; config.rhost; libiberty/; libiberty's part of include/; +compile; depcomp; install-sh; missing; ylwrap; config/ gcc: http://gcc.gnu.org Changes need to be done in tandem with the official GCC sources or submitted to the master file maintainer and brought @@ -104,13 +105,6 @@ etc/; utils/; Any global maintainer can approve changes to these files and directories. -compile; depcomp; install-sh; missing; ylwrap; -config/ - Any global maintainer can approve changes to these - files and directories, but they should be aware - that they need to be kept in sync with their - counterparts in the GCC repository. - modules file If you understand the file format (or can cut-and-paste existing entries), modify it. If it scares you, get someone who does diff --git a/binutils/Makefile.def b/binutils/Makefile.def index 5116341..220c720 100644 --- a/binutils/Makefile.def +++ b/binutils/Makefile.def @@ -32,8 +32,8 @@ build_modules= { module= m4; }; build_modules= { module= texinfo; }; build_modules= { module= fixincludes; }; -host_modules= { module= bfd; lib_path=.libs; bootstrap=true; }; -host_modules= { module= opcodes; lib_path=.libs; bootstrap=true; }; +host_modules= { module= bfd; bootstrap=true; }; +host_modules= { module= opcodes; bootstrap=true; }; host_modules= { module= binutils; bootstrap=true; }; host_modules= { module= bison; no_check_cross= true; }; host_modules= { module= cgen; }; @@ -259,6 +259,7 @@ flags_to_pass = { flag= LIBCXXFLAGS_FOR_TARGET ; }; flags_to_pass = { flag= NM_FOR_TARGET ; }; flags_to_pass = { flag= OBJDUMP_FOR_TARGET ; }; flags_to_pass = { flag= RANLIB_FOR_TARGET ; }; +flags_to_pass = { flag= READELF_FOR_TARGET ; }; flags_to_pass = { flag= STRIP_FOR_TARGET ; }; flags_to_pass = { flag= WINDRES_FOR_TARGET ; }; flags_to_pass = { flag= WINDMC_FOR_TARGET ; }; diff --git a/binutils/Makefile.in b/binutils/Makefile.in index d1206bd..4fc4d36 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -3,7 +3,7 @@ # # Makefile for directory with subdirs to build. # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, -# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 # Free Software Foundation # # This file is free software; you can redistribute it and/or modify @@ -206,6 +206,7 @@ HOST_EXPORTS = \ WINDMC="$(WINDMC)"; export WINDMC; \ OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ + READELF="$(READELF)"; export READELF; \ AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ @@ -213,6 +214,7 @@ HOST_EXPORTS = \ NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ + READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \ TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ @@ -285,6 +287,7 @@ BASE_TARGET_EXPORTS = \ NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ + READELF="$(READELF_FOR_TARGET)"; export READELF; \ STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ @@ -397,6 +400,7 @@ LIPO = @LIPO@ NM = @NM@ OBJDUMP = @OBJDUMP@ RANLIB = @RANLIB@ +READELF = @READELF@ STRIP = @STRIP@ WINDRES = @WINDRES@ WINDMC = @WINDMC@ @@ -555,6 +559,7 @@ LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ NM_FOR_TARGET=@NM_FOR_TARGET@ OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ +READELF_FOR_TARGET=@READELF_FOR_TARGET@ STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@ @@ -616,7 +621,7 @@ TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs: # This is the list of directories that may be needed in RPATH_ENVVAR # so that programs built for the host machine work. -HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)$(HOST_LIB_PATH_libelf) +HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)$(HOST_LIB_PATH_libelf) # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch @if gcc @@ -624,16 +629,6 @@ HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR) @endif gcc -@if bfd -HOST_LIB_PATH_bfd = \ - $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs: -@endif bfd - -@if opcodes -HOST_LIB_PATH_opcodes = \ - $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs: -@endif opcodes - @if gmp HOST_LIB_PATH_gmp = \ $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs: @@ -767,6 +762,7 @@ BASE_FLAGS_TO_PASS = \ "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \ "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ + "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \ "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \ "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \ @@ -815,6 +811,7 @@ EXTRA_HOST_FLAGS = \ 'NM=$(NM)' \ 'OBJDUMP=$(OBJDUMP)' \ 'RANLIB=$(RANLIB)' \ + 'READELF=$(READELF)' \ 'STRIP=$(STRIP)' \ 'WINDRES=$(WINDRES)' \ 'WINDMC=$(WINDMC)' @@ -855,6 +852,7 @@ EXTRA_TARGET_FLAGS = \ 'NM=$(COMPILER_NM_FOR_TARGET)' \ 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ 'RANLIB=$$(RANLIB_FOR_TARGET)' \ + 'READELF=$$(READELF_FOR_TARGET)' \ 'WINDRES=$$(WINDRES_FOR_TARGET)' \ 'WINDMC=$$(WINDMC_FOR_TARGET)' \ 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \ @@ -871,10 +869,7 @@ TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) EXTRA_GCC_FLAGS = \ "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" + "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) diff --git a/binutils/Makefile.tpl b/binutils/Makefile.tpl index 4dd2391..ae263e6 100644 --- a/binutils/Makefile.tpl +++ b/binutils/Makefile.tpl @@ -6,7 +6,7 @@ in # # Makefile for directory with subdirs to build. # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, -# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 # Free Software Foundation # # This file is free software; you can redistribute it and/or modify @@ -209,6 +209,7 @@ HOST_EXPORTS = \ WINDMC="$(WINDMC)"; export WINDMC; \ OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ + READELF="$(READELF)"; export READELF; \ AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ @@ -216,6 +217,7 @@ HOST_EXPORTS = \ NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ + READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \ TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ @@ -288,6 +290,7 @@ BASE_TARGET_EXPORTS = \ NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ + READELF="$(READELF_FOR_TARGET)"; export READELF; \ STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ @@ -400,6 +403,7 @@ LIPO = @LIPO@ NM = @NM@ OBJDUMP = @OBJDUMP@ RANLIB = @RANLIB@ +READELF = @READELF@ STRIP = @STRIP@ WINDRES = @WINDRES@ WINDMC = @WINDMC@ @@ -493,6 +497,7 @@ LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ NM_FOR_TARGET=@NM_FOR_TARGET@ OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ +READELF_FOR_TARGET=@READELF_FOR_TARGET@ STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@ @@ -612,6 +617,7 @@ EXTRA_HOST_FLAGS = \ 'NM=$(NM)' \ 'OBJDUMP=$(OBJDUMP)' \ 'RANLIB=$(RANLIB)' \ + 'READELF=$(READELF)' \ 'STRIP=$(STRIP)' \ 'WINDRES=$(WINDRES)' \ 'WINDMC=$(WINDMC)' @@ -652,6 +658,7 @@ EXTRA_TARGET_FLAGS = \ 'NM=$(COMPILER_NM_FOR_TARGET)' \ 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ 'RANLIB=$$(RANLIB_FOR_TARGET)' \ + 'READELF=$$(READELF_FOR_TARGET)' \ 'WINDRES=$$(WINDRES_FOR_TARGET)' \ 'WINDMC=$$(WINDMC_FOR_TARGET)' \ 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \ @@ -668,10 +675,7 @@ TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) EXTRA_GCC_FLAGS = \ "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ - "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" + "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) diff --git a/binutils/bfd/ChangeLog b/binutils/bfd/ChangeLog index 65db027..8b584d9 100644 --- a/binutils/bfd/ChangeLog +++ b/binutils/bfd/ChangeLog @@ -1,2698 +1,2689 @@ -2011-11-21 Tristan Gingold <gingold@xxxxxxxxxxx> +2013-03-25 Tristan Gingold <gingold@xxxxxxxxxxx> - * configure.in: Bump version to 2.22 + * configure.in: Bump version to 2.23.2 * Makefile.am (RELEASE): Set. * configure, Makefile.in: Regenerate. -2011-11-15 Maxim Kuvyrkov <maxim@xxxxxxxxxxxxxxxx> +2013-03-04 Alan Modra <amodra@xxxxxxxxx> - Backport from mainline: + * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust + non-zero addends when relocatable, rather than addends >= 32768. + Always zero "addend" before applying relocation. - 2011-11-14 Maxim Kuvyrkov <maxim@xxxxxxxxxxxxxxxx> - * elfxx-mips.c (mips_n64_exe_plt0_entry): Use 64-bit move. +2013-02-18 Alan Modra <amodra@xxxxxxxxx> -2011-11-15 Alan Modra <amodra@xxxxxxxxx> - Andreas Tobler <andreast@xxxxxxxxx> + PR ld/12549 + * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete. + (_bfd_elf_strtab_clear_all_refs): Declare. + (_bfd_elf_strtab_resize): Declare. + * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete. + (_bfd_elf_strtab_clear_all_refs): New function. + (_bfd_elf_strtab_resize): Likewise. + * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize. - * elflink.c (_bfd_elf_create_got_section): Replace - bfd_make_section_with_flags with bfd_make_section_anyway_with_flags. - (_bfd_elf_link_create_dynamic_sections): Likewise. - * elf32-ppc.c (ppc_elf_create_glink): Likewise. - (ppc_elf_create_dynamic_sections): Likewise. +2013-02-11 Richard Sandiford <rdsandiford@xxxxxxxxxxxxxx> -2011-11-09 Alan Modra <amodra@xxxxxxxxx> + * elfxx-mips.c (mips_elf_recreate_got): Remove free. + (mips_elf_resolve_final_got_entries): Remove bogus comment. - * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in - executables when export_dynamic. +2013-02-10 Alan Modra <amodra@xxxxxxxxx> -2011-11-08 Alan Modra <amodra@xxxxxxxxx> + PR ld/15113 + * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc. - * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename - ha_relocs_not_using_r2 to unexpected_toc_insn. - (ok_lo_toc_insn): New function. - (ppc64_elf_edit_toc): Check insn on lo toc reloc. Emit warning. - (ppc64_elf_relocate_section): Don't check insn on lo toc reloc here. - Handle addic on lo toc reloc. +2013-02-08 Alan Modra <amodra@xxxxxxxxx> -2011-10-25 Alan Modra <amodra@xxxxxxxxx> + PR binutils/15106 + * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache. + * elf.c (elf_find_function): Revert last change. Use new + tdata field rather than static vars for cache. - Apply mainline patches - 2011-10-20 Alan Modra <amodra@xxxxxxxxx> - * elf32-i386.c (i386_opcode16): Delete. - (elf_i386_check_tls_transition): Use memcmp to compare contents. - * elf64-x86-64.c (x86_64_opcode16, x86_64_opcode32): Delete. - (elf_x86_64_check_tls_transition): Use memcmp to compare contents. - - 2011-10-19 Alan Modra <amodra@xxxxxxxxx> - PR ld/13311 - * elflink.c (elf_link_output_extsym): Correct test for warning when - forced local executable syms are referenced from shared libraries. - - 2011-10-19 Alan Modra <amodra@xxxxxxxxx> - PR ld/13254 - * elflink.c (bfd_elf_final_link): Emit error_textrel error. - - 2011-10-17 Alan Modra <amodra@xxxxxxxxx> - PR ld/12975 - PR ld/13195 - * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Apply 2011-09-15 - and 2011-09-29 bfd_elf_gc_mark_dynamic_ref_symbol changes here too. - - 2011-10-11 Alan Modra <amodra@xxxxxxxxx> - PR binutils/13278 - * archive.c (bfd_generic_archive_p): Only check first element - when target_defaulted. - (_bfd_construct_extended_name_table): Use ar_maxnamelen. - (_bfd_archive_bsd44_construct_extended_name_table): Likewise. - - 2011-10-11 Alan Modra <amodra@xxxxxxxxx> - PR binutils/13257 - * archive.c (_bfd_find_nested_archive, _bfd_get_elt_at_filepos): Open - thin archive element using container target if not defaulted. - - 2011-10-10 Alan Modra <amodra@xxxxxxxxx> - * elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry. - (struct ppc_link_hash_table): Add tocsave_htab. - (struct tocsave_entry): New. - (tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions. - (ppc64_elf_link_hash_table_create): Create tocsave_htab.. - (ppc64_elf_link_hash_table_free): ..and delete it. - (build_plt_stub): Always put STD_R2_40R1 first. - (ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc - on plt call. If present add prologue nop location to tocsave_htab. - (ppc64_elf_relocate_section): Convert prologue nop to std. Skip - first insn of plt call stub when R_PPC64_TOCSAVE present. - - 2011-10-08 H.J. Lu <hongjiu.lu@xxxxxxxxx> - PR ld/13250 - * elflink.c (elf_link_add_object_symbols): Preserve the maximum - alignment and size for common symbols. - - 2011-10-08 Alan Modra <amodra@xxxxxxxxx> - PR ld/13229 - PR ld/13244 - * elflink.c (elf_link_add_object_symbols): Don't make IR symbols - dynamic. +2013-02-07 Roberto Agostino Vitillo <ra.vitillo@xxxxxxxxx> - 2011-10-08 Alan Modra <amodra@xxxxxxxxx> - * elflink.c (elf_link_output_extsym): Strip defined plugin symbols - even when strip_discarded is false. + PR binutils/15106 + * elf.c (elf_find_function): Don't cache if symbols change. - 2011-09-30 Alan Modra <amodra@xxxxxxxxx> - PR ld/13235 - * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2. - (ppc64_elf_edit_toc): Check HA relocs. - (ha_reloc_match): Delete function. - (ppc64_elf_relocate_section): Remove delayed HA nop optimization. - Instead do it and low part optimization based on - ha_relocs_not_using_r2. +2013-02-07 Alan Modra <amodra@xxxxxxxxx> -2011-10-18 David S. Miller <davem@xxxxxxxxxxxxx> + PR binutils/14873 + * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to + copy attributes from or to non-ELF. - PR binutils/13301 - * elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function. - (_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr - call delay slot instruction forward 4 bytes when performing - relaxation. +2013-02-01 Alan Modra <amodra@xxxxxxxxx> -2011-10-18 H.J. Lu <hongjiu.lu@xxxxxxxxx> + * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol + clears def_regular. - PR ld/13177 - * elflink.c (elf_gc_sweep_symbol): Don't hide symbols without PLT - nor GOT references. +2013-01-31 Alan Modra <amodra@xxxxxxxxx> + David S. Miller <davem@xxxxxxxxxxxxx> -2011-10-14 Hans-Peter Nilsson <hp@xxxxxxxx> + PR ld/15056 + * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit + references to __tls_get_addr. + * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct + vtinherit and vtentry reloc handling too. + * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro. - * elf32-cris.c (cris_elf_gc_sweep_hook) <R_CRIS_16_GOTPLT> - <R_CRIS_32_GOTPLT>: Fix missing update of gotplt refcount for - global symbols. - <R_CRIS_8, R_CRIS_16, R_CRIS_32>: New cases for similar missing - updates of the plt refcount. - (elf_cris_adjust_gotplt_to_got): Assert integrity of the gotplt - refcount in relation to the plt refcount. +2013-01-31 Alan Modra <amodra@xxxxxxxxx> -2011-10-13 Richard Sandiford <richard.sandiford@xxxxxxxxxx> + * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink. - * elf32-arm.c (elf32_arm_final_link_relocate): Mark PLT calls via - stubs as resolved. + 2013-01-28 Alan Modra <amodra@xxxxxxxxx> + * elf64-ppc.c: Use %T to print symbols names and remove redundant + "relocation" in error messages throughout file. + (ppc64_elf_relocate_section): Remove sibling call error message, + replace with "call lacks nop". Specially report errors for + branches to function entry points via OPD lookup and branches + to stubs. Remove NULL symbol handling now done by %T. -2011-09-29 H.J. Lu <hongjiu.lu@xxxxxxxxx> +2013-01-22 Alan Modra <amodra@xxxxxxxxx> - PR ld/13195 - * elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when - clearing def_dynamic. - (elf_link_add_object_symbols): Likewise. Set dynamic_def when - setting def_dynamic. - (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is - versioned. + Apply mainline patches + 2013-01-15 Alan Modra <amodra@xxxxxxxxx> + * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to + plt-thread-safe. + + 2013-01-14 Alan Modra <amodra@xxxxxxxxx> + PR binutils/14813 + * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06. + (memory_bclose): Likewise. Return 0 on success. + * cache.c (cache_bclose): Likewise. + * opncls.c (opncls_bclose, bfd_close): Likewise. + * vms-lib.c (vms_lib_bclose): Likewise. + * libbfd.h: Regenerate. -2011-09-29 Alan Modra <amodra@xxxxxxxxx> + 2013-01-13 Alan Modra <amodra@xxxxxxxxx> + * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak. + Add ref_dynamic_nonweak. + * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete. + (_bfd_elf_merge_symbol): Don't call above function. Move + setting of ref_dynamic_nonweak and dynamic_def earlier. Don't + clear dynamic_def. + (elf_link_add_object_symbols): Delete redundant "override" test. + Don't set dynamic_def here. + (elf_link_output_extsym): Update. + + 2013-01-12 Alan Modra <amodra@xxxxxxxxx> + * elf-bfd.h (_bfd_elf_strtab_refcount): Declare. + * elf-strtab.c (_bfd_elf_strtab_refcount): New function. + * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount. + + 2013-01-12 Alan Modra <amodra@xxxxxxxxx> + PR ld/12549 + * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare. + (_bfd_elf_strtab_clear_all_refs): Define. + * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function. + (_bfd_elf_strtab_clear_all_refs): Delete. + * elflink.c (elf_link_add_object_symbols): Clear out added + strtab refs. Correct handling of warning common symbols. + + 2012-12-19 H.J. Lu <hongjiu.lu@xxxxxxxxx> + * elf32-i386.c (elf_i386_relocate_section): Replace + bfd_elf32_swap_reloc_out with elf_append_rel. + (elf_i386_finish_dynamic_symbol): Likewise. + * elflink.c (elf_append_rel): Call swap_reloc_out instead of + swap_reloca_out. - PR ld/13233 - * elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member - debug and special section groups. + 2012-12-18 Alan Modra <amodra@xxxxxxxxx> + * elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of + the special MAP_* values. + + 2012-12-07 Alan Modra <amodra@xxxxxxxxx> + PR ld/14926 + * elf.c (_bfd_elf_map_sections_to_segments): Include elf header + size when determining phdr_in_segment. + + 2012-12-05 Alan Modra <amodra@xxxxxxxxx> + * elf64-ppc.c (build_plt_stub): Fix off by one error in branch + to glink. + + 2012-11-21 H.J. Lu <hongjiu.lu@xxxxxxxxx> + PR binutils/14493 + * elf.c (copy_elf_program_header): When rewriting program + header, set the output maxpagesize to the maximum alignment + of input PT_LOAD segments. + + 2012-11-13 Joe Seymour <jseymour@xxxxxxxxxxxxxxxx> + * elf.c (rewrite_elf_program_header): Allocate elf_segment_map + with bfd_zalloc, instead of bfd_alloc. + + 2012-11-06 H.J. Lu <hongjiu.lu@xxxxxxxxx> + PR binutils/14813 + * bfdio.c (bfd_iovec): Change return type of bclose to + bfd_boolean. + (memory_bclose): Change return type to bfd_boolean. + * cache.c (cache_bclose): Likewise. + * opncls.c (opncls_bclose): Likewise. Return TRUE on success. + * vms-lib.c (vms_lib_bclose): Likewise. Return TRUE. + * libbfd.h: Regenerated. -2011-09-26 Tristan Gingold <gingold@xxxxxxxxxxx> + 2012-11-06 Alan Modra <amodra@xxxxxxxxx> + PR binutils/14567 + * opncls.c (opncls_iovec): Forward declare. + (_bfd_new_bfd_contained_in): If using opncls_iovec, copy iostream + to new bfd. - * configure.in: Bump version to 2.21.90 - * configure: Regenerate. + 2012-11-06 Alan Modra <amodra@xxxxxxxxx> + * elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP. -2011-09-21 David S. Miller <davem@xxxxxxxxxxxxx> + 2012-11-05 Alan Modra <amodra@xxxxxxxxx> + * elf64-ppc.c (ppc64_elf_edit_toc): Clear "repeat" inside + loop. Really mark toc entry referring to another toc entry + only if the first is used. - * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New. - * elfxx-sparc.h: Declare it. - * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it. - * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise. + 2012-10-29 Alan Modra <amodra@xxxxxxxxx> + * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask in + R_PPC_VLE_LO16A, R_PPC_VLE_HI16A, R_PPC_VLE_HA16A, + R_PPC_VLE_SDAREL_LO16A, R_PPC_VLE_SDAREL_HI16A, + R_PPC_VLE_SDAREL_HA16A reloc howtos. -2011-09-21 Tristan Gingold <gingold@xxxxxxxxxxx> + 2012-10-26 Alan Modra <amodra@xxxxxxxxx> + PR gas/14758 + * elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS + bfd_reloc values. Map to corresponding D-form relocs. + (is_insn_ds_form, is_insn_qs_form): New functions. + (ppc_elf_relocate_section): Validate insn with DS-form or DQ-form + fields using D-form reloc. - * mach-o.c (bfd_mach_o_convert_section_name_to_bfd): Add comment. - Deals with size limited strings. - (bfd_mach_o_build_commands): Initialize more fields. + 2012-10-21 Hans-Peter Nilsson <hp@xxxxxxxxxxxx> + * linker.c (_bfd_generic_link_output_symbols): Handle a + no-longer-global symbol entered as a BFD_PLUGIN. -2011-09-15 H.J. Lu <hongjiu.lu@xxxxxxxxx> + 2012-10-08 Alan Modra <amodra@xxxxxxxxx> + PR binutils/14662 + * elf.c (_bfd_elf_make_section_from_shdr): Treat .gdb_index as + SEC_DEBUGGING. - PR ld/13177 - * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT - nor GOT references. + 2012-09-04 H.J. Lu <hongjiu.lu@xxxxxxxxx> + PR binutils/14493 + * elf.c (ignore_section_sym): Also ignore section symbols without + a BFD section. -2011-09-15 H.J. Lu <hongjiu.lu@xxxxxxxxx> +2012-12-21 H.J. Lu <hongjiu.lu@xxxxxxxxx> - PR ld/12975 - * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer - to struct bfd_elf_version_tree. + * elf64-x86-64.c (elf_x86_64_relocate_section): Check + R_X86_64_standard instead of R_X86_64_max for unrecognized + relocation. - * elflink.c (elf_info_failed): Remove verdefs. - (_bfd_elf_export_symbol): Updated. - _bfd_elf_link_assign_sym_version): Likewise. - (bfd_elf_size_dynamic_sections): Remove pointer to struct - bfd_elf_version_tree. Updated. - (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden - by linker script. +2012-12-21 H.J. Lu <hongjiu.lu@xxxxxxxxx> - * linker.c (bfd_hide_sym_by_version): New. + PR ld/14980 + * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Properly + adjust h->plt.refcount. + * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. - * bfd-in2.h: Regenerated. +2012-12-20 H.J. Lu <hongjiu.lu@xxxxxxxxx> -2011-09-12 H.J. Lu <hongjiu.lu@xxxxxxxxx> + PR ld/14968 + * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Also check + local IFUNC references. + * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. - PR ld/13178 - * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt - if there are no GOT relocations. +2012-12-20 H.J. Lu <hongjiu.lu@xxxxxxxxx> -2011-09-09 Kai Tietz <ktietz@xxxxxxxxxx> + PR ld/14956 + * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Check local + IFUNC calls. + * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. - * peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore - for targets without symbol_leading_char. +2012-12-17 Roland McGrath <mcgrathr@xxxxxxxxxx> + Alan Modra <amodra@xxxxxxxxx> -2011-09-08 Bernd Jendrissek <bernd.jendrissek@xxxxxxxxx> + * elf32-arm.c (elf32_arm_size_stubs): Skip input BFDs that are + not ARM ELF. - * bfdwin.c (bfd_get_file_window): Fix memory leak. +2012-12-09 H.J. Lu <hongjiu.lu@xxxxxxxxx> -2011-09-07 Alan Modra <amodra@xxxxxxxxx> + PR binutils/14933 + * archive.c (bsd_write_armap): Properly check indicies bigger than + 4Gb. - PR ld/13131 - * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table - is initialized. +2012-11-29 Roland McGrath <mcgrathr@xxxxxxxxxx> -2011-09-06 Alan Modra <amodra@xxxxxxxxx> + * elf-nacl.c (segment_eligible_for_headers): Disallow writable segments. - PR ld/13131 - * elf64-ppc.c (adjust_toc_syms): Delete redundant code. - (ppc64_elf_edit_toc): Fix style nit. Report some details - on linker failure due to reference in debug or non-alloc - sections to optimized away toc entry, and don't abort. +2012-11-26 Roland McGrath <mcgrathr@xxxxxxxxxx> -2011-09-01 Christophe Lyon <christophe.lyon@xxxxxx> + * elf-nacl.c (nacl_modify_segment_map): Don't crash when INFO is null. - * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded - sections. +2012-11-21 Roland McGrath <mcgrathr@xxxxxxxxxx> -2011-08-26 Nick Clifton <nickc@xxxxxxxxxx> + * elf-nacl.c (segment_nonexecutable_and_has_contents): Renamed to ... + (segment_eligible_for_headers): ... this. Take new arguments + MAXPAGESIZE and SIZEOF_HEADERS. Return false if the first section's + start address doesn't leave space for the headers. + (nacl_modify_segment_map): Update caller. - * po/es.po: Updated Spanish translation. +2012-11-19 Joey Ye <joey.ye@xxxxxxx> -2011-08-19 Alan Modra <amodra@xxxxxxxxx> - - * elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if - we haven't seen expected -mcmodel=medium/large code relocs. - -2011-08-18 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.c (bfd_mach_o_read_segment): Initialize list. - -2011-08-17 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.c (bfd_mach_o_write_section_32): Fix typo. - -2011-08-17 Alan Modra <amodra@xxxxxxxxx> - - PR ld/12762 - * bfd-in.h (struct bfd_section_already_linked): Forward declare. - (_bfd_handle_already_linked): Declare. - * coff-alpha.c (_bfd_ecoff_section_already_linked): Define as - _bfd_coff_section_already_linked. - * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise. - * coffcode.h (coff_section_already_linked): Likewise. - * cofflink.c (coff_link_add_symbols): Revert 2011-07-09 changes. - * elf-bfd.h: Likewise. - * libbfd-in.h: Likewise. - * targets.c: Likewise. - * linker.c (bfd_section_already_linked): Likewise. - (bfd_section_already_linked_table_lookup): Likewise. - (bfd_section_already_linked_table_insert): Likewise. - (_bfd_generic_section_already_linked): Likewise. Call - _bfd_handle_already_linked. - (_bfd_handle_already_linked): New function, split out from.. - * elflink.c (_bfd_elf_section_already_linked): ..here. Revert - 2011-07-09 changes. Avoid unnecessary strcmp when matching - already_linked_list entries. Match plugin linkonce section. - (section_signature): Delete. - * coffgen.c (_bfd_coff_section_already_linked): New function. - * libcoff-in.h (_bfd_coff_section_already_linked): Declare. - * libbfd.h: Regenerate. - * libcoff.h: Regenerate. - * bfd-in2.h: Regenerate. + * elf32-arm.c (elf32_arm_final_link_relocate, + case R_ARM_THM_ALU_PREL_11_0, case R_ARM_THM_PC12): Align address of + the place being relocated. + (elf32_arm_final_link_relocate, case R_ARM_THM_PC8): Align address + of the place being relocated and truncate addend. + (Pa): New macro. -2011-08-14 Alan Modra <amodra@xxxxxxxxx> +2012-11-14 Roland McGrath <mcgrathr@xxxxxxxxxx> - * elf32-ppc.c (ppc_elf_select_plt_layout): Force bss-plt when - shared and call to _mcount will go via plt. + * elf32-arm.c (elf32_arm_nacl_plt0_entry): Use bic rather than bfc + instruction for data sandboxing. -2011-08-14 Alan Modra <amodra@xxxxxxxxx> +2012-11-13 Tristan Gingold <gingold@xxxxxxxxxxx> - * elf64-ppc.c: Prefix all einfo error strings with "%P: ". - * elf32-ppc.c: Likewise. - (ppc_elf_select_plt_layout): Use einfo rather than info to report - forced bss-plt. - -2011-08-12 H.J. Lu <hongjiu.lu@xxxxxxxxx> - - PR ld/13082 - * elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_RELATIVE64. - (elf_x86_64_relocate_section): Treat R_X86_64_64 like R_X86_64_32 - and zero-extend it to 64bit if addend is zero for x32. Generate - R_X86_64_RELATIVE64 for x32. - -2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@xxxxxxx> - - * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. - * bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise. - * elf32-arm.c (elf32_arm_link_hash_table): New field. - (elf232_arm_link_hash_table_create): Initialise new field. - (check_use_blx): Change test depending on fix_arm1176. - (bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from - command line options. - -2011-08-08 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.c (struct mach_o_segment_name_xlat): Add comments. - (segsec_names_xlat): Reorder elements. - (bfd_mach_o_read_section_32): Fix typo. - (bfd_mach_o_read_section_64): Fix typo. - -2011-08-08 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro. - (BFD_MACH_O_SECTNAME_SIZE): Ditto. - (bfd_mach_o_section): Use them. Add next field. - (bfd_mach_o_segment_command): Replace sections array by - sect_head and sect_tail. - (bfd_mach_o_get_mach_o_section): New macro. - (bfd_mach_o_lookup_section): Remove. - (bfd_mach_o_new_section_hook): New function. - * mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp - instead of strcmp. - (bfd_mach_o_convert_section_name_to_bfd): Replaces section - parameter with segname and sectname parameters. Adjust. - (bfd_mach_o_append_section_to_segment): New function. Use a - linked list for Mach-O sections. - (bfd_mach_o_write_segment_32): Adjust. - (bfd_mach_o_write_segment_64): Ditto. - (bfd_mach_o_build_commands): Fix comment. Adjust. - (bfd_mach_o_flatten_sections): Adjust. - (bfd_mach_o_print_section_map): Adjust. - (bfd_mach_o_set_section_flags_from_bfd): Ditto. - (bfd_mach_o_new_section_hook): New function. - (bfd_mach_o_init_section_from_mach_o): Ditto. - (bfd_mach_o_read_section_32): Remove section parameter. - Return a section instead. - (bfd_mach_o_read_section_64): Ditto. - (bfd_mach_o_read_section): Ditto. - (bfd_mach_o_make_bfd_section): Adjust. - (bfd_mach_o_read_segment): Adjust for new profile of - bfd_mach_o_read_section. - (bfd_mach_o_lookup_section): Remove. - * mach-o-target.c (bfd_mach_o_new_section_hook): Remove. - -2011-08-08 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.h (bfd_mach_o_version_min_command): New structure. - (bfd_mach_o_load_command): Add version_min. - (mach_o_data_struct): Fix comment. - * mach-o.c (bfd_mach_o_read_version_min): New function. - (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS, - BFD_MACH_O_LC_VERSION_MIN_MACOSX and - BFD_MACH_O_LC_VERSION_MIN_IPHONEOS. - (bfd_mach_o_get_name_or_null): New function. - (bfd_mach_o_get_name): Use the above new one. - (bfd_mach_o_load_command_name): Add the above new commands. - (bfd_mach_o_bfd_print_private_bfd_data): Display numerically - unknown commands. Handle BFD_MACH_O_LC_FUNCTION_STARTS, - BFD_MACH_O_LC_VERSION_MIN_MACOSX and - BFD_MACH_O_LC_VERSION_MIN_IPHONEOS. - -2011-08-08 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.h: Move size macros to external.h - Move reloc macros to reloc.h and x86-64.h. - * mach-o-i386.c: Includes mach-o/reloc.h - * mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h - * mach-o.c: Add includes. - (bfd_mach_o_write_header): Use structure from external.h to convert. - (bfd_mach_o_write_thread): Ditto. - (bfd_mach_o_write_relocs): Ditto. - (bfd_mach_o_write_section_32): Ditto. - (bfd_mach_o_write_section_64): Ditto. - (bfd_mach_o_write_segment_32): Ditto. - (bfd_mach_o_write_segment_64): Ditto. - (bfd_mach_o_write_symtab): Ditto. - (bfd_mach_o_write_contents): Ditto. - (bfd_mach_o_read_header): Ditto. - (bfd_mach_o_read_section_32): Ditto. - (bfd_mach_o_read_section_64): Ditto. - (bfd_mach_o_read_symtab_symbol): Ditto. - (bfd_mach_o_read_dylinker): Ditto. - (bfd_mach_o_read_dylib): Ditto. - (bfd_mach_o_read_dysymtab): Ditto. - (bfd_mach_o_read_symtab): Ditto. - (bfd_mach_o_read_linkedit): Ditto. - (bfd_mach_o_read_str): Ditto. - (bfd_mach_o_read_dyld_info): Ditto. - (bfd_mach_o_read_segment): Ditto. - (bfd_mach_o_read_command): Ditto. - (bfd_mach_o_archive_p): Ditto. - (bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter. - (bfd_mach_o_canonicalize_relocs): Adjust to call the above function. - (bfd_mach_o_read_dysymtab_symbol): Rename BUF variable. - (bfd_mach_o_read_uuid): Remove useless cast. Use a macro instead - of an hard-coded value. - -2011-08-08 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos. - (bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL, - BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and - BFD_RELOC_MACH_O_X86_64_GOT_LOAD. Share common code. - -2011-08-08 Tristan Gingold <gingold@xxxxxxxxxxx> - - * mach-o.c (bfd_mach_o_normalize_section_name): New function. - (bfd_mach_o_convert_section_name_to_bfd): Use it. - (bfd_mach_o_get_section_type_from_name): New function. - (bfd_mach_o_get_section_attribute_from_name): Ditto. - * mach-o.h (bfd_mach_o_section): Move bfdsection field at the end. - Add comments. Add prototypes for the above new functions. - -2011-08-05 Mark Kettenis <kettenis@xxxxxxx> - - * netbsd-core.c (netbsd_core_vec): Init match_priority field. - -2011-08-05 Alan Modra <amodra@xxxxxxxxx> - - * elf64-ppc.c (maybe_strip_output): New function. - (ppc64_elf_size_stubs): Use it to strip .branch_lt and .eh_frame. - -2011-08-05 Alan Modra <amodra@xxxxxxxxx> - - PR ld/12762 - * elflink.c (_bfd_elf_section_already_linked): Return matched - status. Remove COFF comdat section handling. - * linker.c (_bfd_generic_section_already_linked): Return matched - status. Don't set SEC_GROUP in l_flags for plugin entries. - (bfd_section_already_linked): Update prototype. - * targets.c (_section_already_linked): Likewise. - * elf-bfd.h (_bfd_elf_section_already_linked): Likewise. - * libbfd-in.h (_bfd_generic_section_already_linked): Likewise. - (_bfd_nolink_section_already_linked): Update. - * libbfd.h: Regenerate. - * bfd-in2.h: Regenerate. + * Makefile.am (RELEASE): Unset. + * Makefile.in: Regenerate. -2011-08-05 Alan Modra <amodra@xxxxxxxxx> +2012-11-13 Tristan Gingold <gingold@xxxxxxxxxxx> - * elf32-ppc.c: Include dwarf2.h. - (struct ppc_elf_link_hash_table): Add glink_eh_frame. - (ppc_elf_create_glink): Create .eh_frame section. - (glink_eh_frame_cie): New array. - (ppc_elf_size_dynamic_sections): Size glink_eh_frame. - (ppc_elf_finish_dynamic_sections): Write glink_eh_frame. + * configure.in: Bump version to 2.23.1 + * Makefile.am (RELEASE): Set. + * configure, Makefile.in: Regenerate. -2011-08-04 Tristan Gingold <gingold@xxxxxxxxxxx> +2012-11-05 Andreas Krebbel <Andreas.Krebbel@xxxxxxxxxx> - * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index. - (_bfd_vms_write_etir): Initialize vms_linkage_index to 0. + PR target/14788 + * elf32-s390.c (elf_s390_relocate_section): Set elf.dynobj for + local ifunc symbols. + * elf64-s390.c (elf_s390_relocate_section): Likewise. -2011-08-03 Tristan Gingold <gingold@xxxxxxxxxxx> +2012-11-05 Alan Modra <amodra@xxxxxxxxx> - * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case. - (bfd_mach_o_read_symtab_symbols): Return if no symbols. + * configure.in: Apply 2012-09-10 change to config.in here. -2011-08-02 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> +2012-10-29 Sean Keys <skeys@xxxxxxxxxxxxx> - * elfxx-mips.c (check_4byte_branch): Remove function. - (check_relocated_bzc): New function. - (_bfd_mips_elf_relax_section): Permit the relaxation of LUI - instructions that immediately follow a compact branch - instruction. + * elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for + R_XGATE_16 -2011-08-02 Alan Modra <amodra@xxxxxxxxx> +2012-10-22 Tristan Gingold <gingold@xxxxxxxxxxx> - * elf64-ppc.c (build_plt_stub): Correct emitted relocs when no - plt_static_chain. - (ppc_build_one_stub): Adjust get_relocs call to suit.. - (ppc_size_one_stub): ..and reloc sizing. Correct plt size corner case. + * configure.in: Bump version to 2.23.0 + * Makefile.am (RELEASE): Unset. + * configure, Makefile.in: Regenerate. -2011-08-01 H.J. Lu <hongjiu.lu@xxxxxxxxx> +2012-10-22 Tristan Gingold <gingold@xxxxxxxxxxx> - PR ld/13048 - * archures.c (bfd_mach_i386_intel_syntax): New. - (bfd_mach_i386_i8086): Updated. - (bfd_mach_i386_i386): Likewise. - (bfd_mach_x86_64): Likewise. - (bfd_mach_x64_32): Likewise. - (bfd_mach_i386_i386_intel_syntax): Likewise. - (bfd_mach_x86_64_intel_syntax): Likewise. - (bfd_mach_x64_32_intel_syntax): Likewise. - (bfd_mach_l1om): Likewise. - (bfd_mach_l1om_intel_syntax): Likewise. - (bfd_mach_k1om): Likewise. - (bfd_mach_k1om_intel_syntax): Likewise. + * configure.in: Bump version to 2.23 + * Makefile.am (RELEASE): Set. + * configure, Makefile.in: Regenerate. - * bfd-in2.h: Regenerated. +2012-10-16 Sofiane Naci <sofiane.naci@xxxxxxx> - * cpu-i386.c (bfd_i386_compatible): Check mach instead of - bits_per_address. - (bfd_x64_32_arch_intel_syntax): Set bits_per_address to 64. - (bfd_x64_32_arch): Likewise. + * elf64-aarch64.c (elf64_aarch64_tls_howto_table): Fix shift value for + R_AARCH64_TLSIE_LD_GOTTPREL_PREL19, R_AARCH64_TLSLE_MOVW_TPREL_G2, + R_AARCH64_TLSLE_MOVW_TPREL_G1, R_AARCH64_TLSLE_MOVW_TPREL_G1_NC, + R_AARCH64_TLSLE_ADD_TPREL_HI12. + (elf64_aarch64_tlsdesc_howto_table): Fix shift value for + R_AARCH64_TLSDESC_LD64_PREL19 and R_AARCH64_TLSDESC_OFF_G1. + (elf64_aarch64_final_link_relocate): Add signed_addend when resolving + AARCH64_TLSLE_*_TPREL_* relocations. - * elf64-x86-64.c: Include "libiberty.h". - (x86_64_elf_howto_table): Append x32 R_X86_64_32. - (elf_x86_64_rtype_to_howto): Support x32 R_X86_64_32. - (elf_x86_64_reloc_type_lookup): Likewise. - (elf_x86_64_reloc_name_lookup): Likewise. - (elf_x86_64_relocate_section): Likewise. - (elf_x86_64_check_relocs): Allow R_X86_64_64 relocations for x32. +2012-09-20 Walter Lee <walt@xxxxxxxxxx> -2011-07-29 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> + * elf32-tilepro.c (tilepro_elf_relocate_section): Adjust got + relocations with value of hgot. + * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto. - * elfxx-mips.c (check_br32): Fix return type. +2012-09-18 H.J. Lu <hongjiu.lu@xxxxxxxxx> -2011-07-29 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> + PR ld/14591 + * elf-bfd.h (_bfd_elf_merge_symbol): Add an argument to return + if the old symbol is weak. - * elfxx-mips.c (bz_insn_16): Correct opcode mask. + * elf32-sh-symbian.c (sh_symbian_relocate_section): Update + _bfd_elf_merge_symbol call. -2011-07-29 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> + * elflink.c (_bfd_elf_merge_symbol): Add an argument to return + if the old symbol is weak. + (_bfd_elf_add_default_symbol): Update _bfd_elf_merge_symbol + call. + (elf_link_add_object_symbols): Don't update symbol type from a + weak definition. Update symbol type from a common symbol when + overriding a weak symbol. - * elfxx-mips.c: Adjust comments throughout. - (mips_elf_relax_delete_bytes): Reshape code. - (_bfd_mips_elf_relax_section): Remove check for - R_MICROMIPS_GPREL16 relocations. Reshape code. +2012-09-17 Walter Lee <walt@xxxxxxxxxx> -2011-07-28 Roland McGrath <mcgrathr@xxxxxxxxxx> + * elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused + got_base variable. + * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto. - * elf32-i386.c (NACL_PLT_ENTRY_SIZE, NACLMASK): New macros. - (elf_i386_nacl_plt0_entry): New variable. - (elf_i386_plt_entry): New variable. - (elf_i386_nacl_pic_plt0_entry): New variable. - (elf_i386_nacl_pic_plt_entry): New variable. - (elf_i386_nacl_plt, elf_i386_nacl_arch_bed): New variables. - (elf_backend_arch_data): New macro setting for elf_i386_nacl_vec stanza. - (elf_backend_plt_alignment): Likewise. +2012-09-17 Walter Lee <walt@xxxxxxxxxx> - * config.bfd: Handle i[3-7]86-*-nacl*. - * elf32-i386.c (bfd_elf32_i386_nacl_vec): New backend vector stanza. - * targets.c: Support bfd_elf32_i386_nacl_vec. - * configure.in: Likewise. - * configure: Regenerated. + * elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation + of got relocations for when .got.plt section is merged with .got. + * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto. - * elf32-i386.c (struct elf_i386_plt_layout): New type. - (GET_PLT_ENTRY_SIZE): New macro. - (elf_i386_plt): New variable. - (struct elf_i386_backend_data): New member `plt'. - (elf_i386_arch_bed): Add initializer for it. - (elf_i386_vxworks_arch_bed): Likewise. - (elf_i386_allocate_dynrelocs): Use GET_PLT_ENTRY_SIZE. - (elf_i386_plt_sym_val): Likewise. - (elf_i386_relocate_section): Likewise. - (elf_i386_finish_dynamic_symbol): Likewise. - Also use other elf_i386_plt_layout members for PLT details. - (elf_i386_finish_dynamic_sections): Likewise. +2012-09-13 Doug Kwan <dougkwan@xxxxxxxxxx> - * elf32-i386.c (struct elf_i386_backend_data): New type. - (get_elf_i386_backend_data): New macro. - (elf_i386_arch_bed): New variable. - (elf_backend_arch_data): New macro. - (struct elf_i386_link_hash_table): Remove plt0_pad_byte and is_vxworks. - (elf_i386_link_hash_table_create): Don't initialize them. - (elf_i386_create_dynamic_sections): Find is_vxworks flags in - elf_i386_backend_data, not elf_i386_link_hash_table. - (elf_i386_adjust_dynamic_symbol): Likewise. - (elf_i386_allocate_dynrelocs): Likewise. - (elf_i386_readonly_dynrelocs): Likewise. - (elf_i386_size_dynamic_sections): Likewise. - (elf_i386_relocate_section): Likewise. - (elf_i386_finish_dynamic_symbol): Likewise. - (elf_i386_finish_dynamic_sections): Likewise. Same for plt0_pad_byte. - (elf_i386_vxworks_link_hash_table_create): Function removed. - (elf_i386_vxworks_arch_bed): New variable. - (elf_backend_arch_data): New macro in elf32-i386-vxworks stanza. - - * elf-bfd.h (elf_backend_data): New member arch_backend_data. - * elfxx-target.h (elf_backend_arch_data): New macro. - (elfNN_bed): Use it as initializer for the new member. - -2011-07-28 Mikulas Patocka <mikulas@xxxxxxxxxxxxxxxxxxxxxxxx> - - * elf64-hppa.c (elf_hppa_final_link_relocate): Fix handling of out - of range branches. - -2011-07-26 Jakub Jelinek <jakub@xxxxxxxxxx> - - * dwarf2.c (dwarf_debug_sections): Add .debug_macro - and .zdebug_macro entry. - (dwarf_debug_section_enum): Add debug_macro. - -2011-07-26 Alan Modra <amodra@xxxxxxxxx> - - * elf64-ppc.c: Include dwarf2.h. - (struct ppc_link_hash_table): Add glink_eh_frame. - (create_linkage_sections): Create .eh_frame section. - (ppc64_elf_size_dynamic_sections): Arrange to drop unneeded - glink_eh_frame. - (glink_eh_frame_cie): New array. - (ppc64_elf_size_stubs): Size glink_eh_frame. - (ppc64_elf_build_stubs): Init glink_eh_frame contents. - (ppc64_elf_finish_dynamic_sections): Write glink_eh_frame. - -2011-07-25 Hans-Peter Nilsson <hp@xxxxxxxxxxxx> - - PR ld/12815 - * elf64-mmix.c (struct _mmix_elf_section_data): New members - has_warned_bpo and has_warned_pushj. - (mmix_final_link_relocate): Remove PARAMS and PTR macros, - converting to ISO C. Add new parameter error_message. All - callers changed. - (mmix_elf_perform_relocation): Ditto. - <case R_MMIX_PUSHJ_STUBBABLE, case R_MMIX_BASE_PLUS_OFFSET>: - Handle the case where mmix_elf_check_common_relocs has not been - called, missing preparations for relocs of the respective type. - -2011-07-24 Chao-ying Fu <fu@xxxxxxxx> - Ilie Garbacea <ilie@xxxxxxxx> - Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> - Joseph Myers <joseph@xxxxxxxxxxxxxxxx> - Catherine Moore <clm@xxxxxxxxxxxxxxxx> - Richard Sandiford <rdsandiford@xxxxxxxxxxxxxx> + * elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted + relocation for stub lookup. - * archures.c (bfd_mach_mips_micromips): New macro. - * cpu-mips.c (I_micromips): New enum value. - (arch_info_struct): Add bfd_mach_mips_micromips. - * elfxx-mips.h (_bfd_mips_elf_is_target_special_symbol): New - prototype. - (_bfd_mips_elf_relax_section): Likewise. - (_bfd_mips16_elf_reloc_unshuffle): Rename to... - (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS - ASE. - (_bfd_mips16_elf_reloc_shuffle): Rename to... - (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE. - (gprel16_reloc_p): Handle microMIPS ASE. - (literal_reloc_p): New function. - * elf32-mips.c (elf_micromips_howto_table_rel): New variable. - (_bfd_mips_elf32_gprel16_reloc): Handle microMIPS ASE. - (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle - and _bfd_mips_elf_reloc_shuffle changes. - (mips_elf_gprel32_reloc): Update comment. - (micromips_reloc_map): New variable. - (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE. - (mips_elf32_rtype_to_howto): Likewise. - (mips_info_to_howto_rel): Likewise. - (bfd_elf32_bfd_is_target_special_symbol): Define. - (bfd_elf32_bfd_relax_section): Likewise. - * elf64-mips.c (micromips_elf64_howto_table_rel): New variable. - (micromips_elf64_howto_table_rela): Likewise. - (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle - and _bfd_mips_elf_reloc_shuffle changes. - (micromips_reloc_map): Likewise. - (bfd_elf64_bfd_reloc_type_lookup): Handle microMIPS ASE. - (bfd_elf64_bfd_reloc_name_lookup): Likewise. - (mips_elf64_rtype_to_howto): Likewise. - (bfd_elf64_bfd_is_target_special_symbol): Define. - * elfn32-mips.c (elf_micromips_howto_table_rel): New variable. - (elf_micromips_howto_table_rela): Likewise. - (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle - and _bfd_mips_elf_reloc_shuffle changes. - (micromips_reloc_map): Likewise. - (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE. - (bfd_elf32_bfd_reloc_name_lookup): Likewise. - (mips_elf_n32_rtype_to_howto): Likewise. - (bfd_elf32_bfd_is_target_special_symbol): Define. - * elfxx-mips.c (LA25_LUI_MICROMIPS_1): New macro. - (LA25_LUI_MICROMIPS_2): Likewise. - (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise. - (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise. - (TLS_RELOC_P): Handle microMIPS ASE. - (mips_elf_create_stub_symbol): Adjust value of stub symbol if - target is a microMIPS function. - (micromips_reloc_p): New function. - (micromips_reloc_shuffle_p): Likewise. - (got16_reloc_p, call16_reloc_p): Handle microMIPS ASE. - (got_disp_reloc_p, got_page_reloc_p): New functions. - (got_ofst_reloc_p): Likewise. - (got_hi16_reloc_p, got_lo16_reloc_p): Likewise. - (call_hi16_reloc_p, call_lo16_reloc_p): Likewise. - (hi16_reloc_p, lo16_reloc_p, jal_reloc_p): Handle microMIPS ASE. - (micromips_branch_reloc_p): New function. - (tls_gd_reloc_p, tls_ldm_reloc_p): Likewise. - (tls_gottprel_reloc_p): Likewise. - (_bfd_mips16_elf_reloc_unshuffle): Rename to... - (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS - ASE. - (_bfd_mips16_elf_reloc_shuffle): Rename to... - (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE. - (_bfd_mips_elf_lo16_reloc): Handle microMIPS ASE. - (mips_tls_got_index, mips_elf_got_page): Likewise. - (mips_elf_create_local_got_entry): Likewise. - (mips_elf_relocation_needs_la25_stub): Likewise. - (mips_elf_calculate_relocation): Likewise. - (mips_elf_perform_relocation): Likewise. - (_bfd_mips_elf_symbol_processing): Likewise. - (_bfd_mips_elf_add_symbol_hook): Likewise. - (_bfd_mips_elf_link_output_symbol_hook): Likewise. - (mips_elf_add_lo16_rel_addend): Likewise. - (_bfd_mips_elf_check_relocs): Likewise. - (mips_elf_adjust_addend): Likewise. - (_bfd_mips_elf_relocate_section): Likewise. - (mips_elf_create_la25_stub): Likewise. - (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. - (_bfd_mips_elf_gc_sweep_hook): Likewise. - (_bfd_mips_elf_is_target_special_symbol): New function. - (mips_elf_relax_delete_bytes): Likewise. - (opcode_descriptor): New structure. - (RA): New macro. - (OP32_SREG, OP32_TREG, OP16_VALID_REG): Likewise. - (b_insns_32, bc_insn_32, bz_insn_32, bzal_insn_32): New variables. - (beq_insn_32): Likewise. - (b_insn_16, bz_insn_16): New variables. - (BZC32_REG_FIELD): New macro. - (bz_rs_insns_32, bz_rt_insns_32): New variables. - (bzc_insns_32, bz_insns_16):Likewise. - (BZ16_REG, BZ16_REG_FIELD): New macros. - (jal_insn_32_bd16, jal_insn_32_bd32): New variables. - (jal_x_insn_32_bd32): Likewise. - (j_insn_32, jalr_insn_32): Likewise. - (ds_insns_32_bd16, ds_insns_32_bd32): Likewise. - (jalr_insn_16_bd16, jalr_insn_16_bd32, jr_insn_16): Likewise. - (JR16_REG): New macro. - (ds_insns_16_bd16): New variable. - (lui_insn): Likewise. - (addiu_insn, addiupc_insn): Likewise. - (ADDIUPC_REG_FIELD): New macro. - (MOVE32_RD, MOVE32_RS): Likewise. - (MOVE16_RD_FIELD, MOVE16_RS_FIELD): Likewise. - (move_insns_32, move_insns_16): New variables. - (nop_insn_32, nop_insn_16): Likewise. - (MATCH): New macro. - (find_match): New function. - (check_br16_dslot, check_br32_dslot): Likewise. - (check_br16, check_br32): Likewise. - (IS_BITSIZE): New macro. - (check_4byte_branch): New function. - (_bfd_mips_elf_relax_section): Likewise. - (_bfd_mips_elf_merge_private_bfd_data): Disallow linking MIPS16 - and microMIPS modules together. - (_bfd_mips_elf_print_private_bfd_data): Handle microMIPS ASE. - * reloc.c (BFD_RELOC_MICROMIPS_7_PCREL_S1): New relocation. - (BFD_RELOC_MICROMIPS_10_PCREL_S1): Likewise. - (BFD_RELOC_MICROMIPS_16_PCREL_S1): Likewise. - (BFD_RELOC_MICROMIPS_GPREL16): Likewise. - (BFD_RELOC_MICROMIPS_JMP, BFD_RELOC_MICROMIPS_HI16): Likewise. - (BFD_RELOC_MICROMIPS_HI16_S): Likewise. - (BFD_RELOC_MICROMIPS_LO16): Likewise. - (BFD_RELOC_MICROMIPS_LITERAL): Likewise. - (BFD_RELOC_MICROMIPS_GOT16): Likewise. - (BFD_RELOC_MICROMIPS_CALL16): Likewise. - (BFD_RELOC_MICROMIPS_GOT_HI16): Likewise. - (BFD_RELOC_MICROMIPS_GOT_LO16): Likewise. - (BFD_RELOC_MICROMIPS_CALL_HI16): Likewise. - (BFD_RELOC_MICROMIPS_CALL_LO16): Likewise. - (BFD_RELOC_MICROMIPS_SUB): Likewise. - (BFD_RELOC_MICROMIPS_GOT_PAGE): Likewise. - (BFD_RELOC_MICROMIPS_GOT_OFST): Likewise. - (BFD_RELOC_MICROMIPS_GOT_DISP): Likewise. - (BFD_RELOC_MICROMIPS_HIGHEST): Likewise. - (BFD_RELOC_MICROMIPS_HIGHER): Likewise. - (BFD_RELOC_MICROMIPS_SCN_DISP): Likewise. - (BFD_RELOC_MICROMIPS_JALR): Likewise. - (BFD_RELOC_MICROMIPS_TLS_GD): Likewise. - (BFD_RELOC_MICROMIPS_TLS_LDM): Likewise. - (BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16): Likewise. - (BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16): Likewise. - (BFD_RELOC_MICROMIPS_TLS_GOTTPREL): Likewise. - (BFD_RELOC_MICROMIPS_TLS_TPREL_HI16): Likewise. - (BFD_RELOC_MICROMIPS_TLS_TPREL_LO16): Likewise. - * bfd-in2.h: Regenerate. - * libbfd.h: Regenerate. +2012-09-10 Matthias Klose <doko@xxxxxxxxxx> -2011-07-22 H.J. Lu <hongjiu.lu@xxxxxxxxx> + * config.in: Disable sanity check for kfreebsd. - * Makefile.am (ALL_MACHINES): Add cpu-k1om.lo. - (ALL_MACHINES_CFILES): Add cpu-k1om.c. - * Makefile.in: Regenerated. +2012-09-07 Alan Modra <amodra@xxxxxxxxx> - * archures.c (bfd_architecture): Add bfd_arch_k1om. - (bfd_k1om_arch): New. - (bfd_archures_list): Add &bfd_k1om_arch. - * bfd-in2.h: Regenerated. + PR ld/14464 + * elf64-ppc.c (ppc64_elf_relocate_section): Map symbols defined + by a linker script in .opd to corresponding input .opd section. - * config.bfd (targ64_selvecs): Add bfd_elf64_k1om_vec if - bfd_elf64_x86_64_vec is supported. Add bfd_elf64_k1om_freebsd_vec - if bfd_elf64_x86_64_freebsd_vec is supported. - (targ_selvecs): Likewise. +2012-08-09 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> - * configure.in: Support bfd_elf64_k1om_vec and - bfd_elf64_k1om_freebsd_vec. - * configure: Regenerated. + * elfxx-mips.c (LA25_LUI_MICROMIPS_1, LA25_LUI_MICROMIPS_2): + Remove macros, folding them into... + (LA25_LUI_MICROMIPS): ... this new macro. + (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise into... + (LA25_J_MICROMIPS): ... this new macro. + (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise + into... + (LA25_ADDIU_MICROMIPS): ... this new macro. + (bfd_put_micromips_32, bfd_get_micromips_32): New functions. + (mips_elf_create_la25_stub): Use them. + (check_br32_dslot, check_br32, check_relocated_bzc): Likewise. + (_bfd_mips_elf_relax_section): Likewise. - * cpu-k1om.c: New. + * elf32-ppc.c (ppc_elf_relocate_section): Assert that dynindx is + not minus one. + * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. - * elf64-x86-64.c (elf64_k1om_elf_object_p): New. - (bfd_elf64_k1om_vec): Likewise. - (bfd_elf64_k1om_freebsd_vec): Likewise. +2012-08-28 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> - * targets.c (bfd_elf64_k1om_vec): New. - (bfd_elf64_k1om_freebsd_vec): Likewise. - (_bfd_target_vector): Add bfd_elf64_k1om_vec and - bfd_elf64_k1om_freebsd_vec. + * elflink.c (_bfd_elf_merge_symbol): Also override the version + a dynamic symbol defaulted to if preempted with a hidden or + internal definition. -2011-07-20 Jan Kratochvil <jan.kratochvil@xxxxxxxxxx> + * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up + the options section in the output rather than input BFD to + decide if to add a DT_MIPS_OPTIONS tag. - Fix false coff-go32-exe matches. - * coff-i386.c (TARGET_SYM) <_bfd_check_format>: Conditionally use - COFF_CHECK_FORMAT. - * coff-stgo32.c (go32_check_format): New forward declaration. - (COFF_CHECK_FORMAT): New defintion. - (go32_check_format): New function. +2012-08-13 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> -2011-07-15 Alan Modra <amodra@xxxxxxxxx> + * config.bfd: Wrap mips*el-*-linux* and mips*-*-linux* into + #ifdef BFD64. - * configure.in: Bump version. - * configure: Regenerate. +2012-08-13 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> -2011-07-14 Alan Modra <amodra@xxxxxxxxx> + * elfxx-mips.c (mips_elf_calculate_relocation): Fix the handling + of protected symbols. - * linker.c (_bfd_generic_section_already_linked): Set l_flags. - * elf-bfd.h (struct already_linked): Forward declare. +2012-08-06 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> -2011-07-14 Alan Modra <amodra@xxxxxxxxx> + * elflink.c (bfd_elf_record_link_assignment): Remove --defsym + symbols special case. - * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms. - (_bfd_elf_adjust_dynamic_symbol): Remove FIXME. + * elf64-mips.c (mips16_elf64_howto_table_rela): Correct src_mask + field initializers throughout. + * elfn32-mips.c (elf_mips16_howto_table_rela): Likewise. -2011-07-14 Alan Modra <amodra@xxxxxxxxx> +2012-08-03 Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx> - * elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain. - (build_plt_stub): Add plt_static_chain param, don't load r11 if false. - (build_tls_get_addr_stub): Likewise. - (ppc_build_one_stub): Update calls to above. - (ppc_size_one_stub): Adjust stub size. - (ppc64_elf_size_stubs): Add plt_static_chain param, save to htab. - * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype. + * elfxx-mips.c (mips_elf_perform_relocation): Update the + cross-mode jump message. -2011-07-12 Nick Clifton <nickc@xxxxxxxxxx> +2012-09-04 Sergey A. Guriev <sergey.a.guriev@xxxxxxxxx> - * elf32-arm.c (elf32_arm_section_flags): Delete. - (elf_backend_section_flags): Remove. + * cpu-ia64-opc.c (ins_cnt6a): New function. + (ext_cnt6a): Ditto. + (ins_strd5b): Ditto. + (ext_strd5b): Ditto. + (elf64_ia64_operands): Add new operand types. -2011-07-11 H.J. Lu <hongjiu.lu@xxxxxxxxx> +2012-08-05 Maciej W. Rozycki <macro@xxxxxxxxxxxxxx> - PR ld/12982 - * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN - when setting stack_flags. + * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate + PLT slots for local symbols. -2011-07-11 Catherine Moore <clm@xxxxxxxxxxxxxxxx> +2012-08-28 Matthew Gretton-Dann <matthew.gretton-dann@xxxxxxx> - * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition. - * aout-target.h (MY_bfd_lookup_section_flags): New definition. - * aout-tic30.c (MY_bfd_lookup_section_flags): New definition. - * bfd-in2.h: Regenerated. - * bfd.c (bfd_lookup_section_flags): New definition. - * binary.c (binary_bfd_lookup_section_flags): New definition. - * bout.c (b_out_bfd_lookup_section_flags): New definition. - * coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition. - * coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition. - * coff-rs6000.c (rs6000coff_vec): Include - bfd_generic_lookup_section_flags. - (pmac_xcoff_vec): Likewise. - * coffcode.h (coff_bfd_lookup_section_flags): New definition. - * coff64-rs6000.c (rs6000coff64_vec): Include - bfd_generic_lookup_section_flags. - (aix5coff64_vec): Likewise. - * ecoff.c (bfd_debug_section): Initialize flag_info field. - * elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare. - (bfd_elf_lookup_section_flags): Declare. - * elflink.c (bfd_elf_lookup_section_flags): New function. - * elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define. - (elf_backend_lookup_section_flags_hook): Define. - (elf_backend_data): Add elf_backend_lookup_section_flags_hook. - * i386msdos.c (msdos_bfd_lookup_section_flags): New define. - * i386os9k.c (os9k_bfd_lookup_section_flags): New define. - * ieee.c (ieee_bfd_lookup_section_flags): New define. - * ihex.c (ihex_bfd_lookup_section_flags): New define. - * libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare. - (bfd_generic_lookup_section_flags): Declare. - * libbfd.h: Regenerated. - * mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New. - * mmo.c (mmo_bfd_lookup_section_flags): New definition. - * nlm-target.h (nlm_bfd_lookup_section_flags): New definition. - * oasys.c (oasys_bfd_lookup_section_flags): New definition. - * pef.c (bfd_pef_bfd_lookup_section_flags): New definition. - * plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition. - * ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition. - * reloc.c (bfd_generic_lookup_section_flags): New function. - * som.c (som_bfd_lookup_section_flags): New definition. - * srec.c (srec_bfd_lookup_section_flags): New definition. - * targets.c (flag_info): Declare. - (NAME##_bfd_lookup_section_flags): Add to LINK jump table. - (_bfd_lookup_section_flags): New. - * tekhex.c (tekhex_bfd_lookup_section_flags): New definition. - * versados.c (versados_bfd_lookup_section_flags): New definition. - * vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition. - * xsym.c (bfd_sym_bfd_lookup_section_flags): New definition. - -2011-07-11 H.J. Lu <hongjiu.lu@xxxxxxxxx> - - PR ld/12978 - * elfnn-ia64.c (count_dyn_reloc): Fix a typo. - -2011-07-09 Alan Modra <amodra@xxxxxxxxx> - - PR ld/12942 - * elflink.c (elf_link_add_object_symbols): Use elf_discarded_section - rather than kept_section to determine whether a symbol is from - a discarded section. - * cofflink.c (coff_link_add_symbols): Make symbols from discarded - sections appear undefined. - -2011-07-09 H.J. Lu <hongjiu.lu@xxxxxxxxx> - - PR ld/12942 - * elf-bfd.h (_bfd_elf_section_already_linked): Replace - "asection *" with "struct already_linked *". - * libbfd-in.h (_bfd_nolink_section_already_linked): Likewise. - (_bfd_generic_section_already_linked): Likewise. - (bfd_section_already_linked_table_insert): Likewise. - (struct already_linked): New. - (struct bfd_section_already_linked): Use it. - * elflink.c (_bfd_elf_section_already_linked): Replace. - "asection *" with "struct already_linked *". Replace the plugin - dummy with the LTO output. - * linker.c (_bfd_generic_section_already_linked): Likewise. - * targets.c (struct already_linked): Add forward declaration. - (bfd_target): Replace "struct bfd_section *" with - "struct already_linked *" in _section_already_linked. - * bfd-in2.h: Regenerate. - * libbfd.h: Regenerate. + Apply from mainline + 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@xxxxxxx> + * elf32-arm.c (v8): New array. + (tag_cpu_arch_combine): Add support for ARMv8 attributes. + (elf32_arm_merge_eabi_attributes): Likewise. + (VFP_VERSION_COUNT): New define. -2011-07-06 Tristan Gingold <gingold@xxxxxxxxxxx> +2012-08-17 Nick Clifton <nickc@xxxxxxxxxx> - * mach-o.h: Move loader related definitions to - include/mach-o/loader.h. Include it. + * po/vi.po: Updated Vietnamese translation. -2011-07-05 H.J. Lu <hongjiu.lu@xxxxxxxxx> +2012-08-16 Ian Bolton <ian.bolton@xxxxxxx> + Laurent Desnogues <laurent.desnogues@xxxxxxx> + Jim MacArthur <jim.macarthur@xxxxxxx> + Marcus Shawcroft <marcus.shawcroft@xxxxxxx> + Nigel Stephens <nigel.stephens@xxxxxxx> + Ramana Radhakrishnan <ramana.radhakrishnan@xxxxxxx> + Richard Earnshaw <rearnsha@xxxxxxx> + Sofiane Naci <sofiane.naci@xxxxxxx> + Tejas Belagod <tejas.belagod@xxxxxxx> + Yufeng Zhang <yufeng.zhang@xxxxxxx> - * elf64-x86-64.c (elf_backend_post_process_headers): Always - define to _bfd_elf_set_osabi. + * Makefile.am: Add AArch64 files. + * Makefile.in: Regenerate. + * archures.c (bfd_aarch64_arch): New declaration. + (bfd_archures_list): Use bfd_archures_list. + * bfd-in.h (bfd_elf64_aarch64_init_maps): New declaration. + (bfd_aarch64_process_before_allocation): New declaration. + (bfd_elf64_aarch64_process_before_allocation): New declaration. + (bfd_elf64_aarch64_set_options): New declaration. + (bfd_elf64_aarch64_add_glue_sections_to_bfd): New declaration. + (BFD_AARCH64_SPECIAL_SYM_TYPE_MAP): New definition. + (BFD_AARCH64_SPECIAL_SYM_TYPE_TAG): New definition. + (BFD_AARCH64_SPECIAL_SYM_TYPE_OTHER): New definition. + (BFD_AARCH64_SPECIAL_SYM_TYPE_ANY): New definition. + (bfd_is_aarch64_special_symbol_name): New declaration. + (bfd_aarch64_merge_machines): New declaration. + (bfd_aarch64_update_notes): New declaration. + (int bfd_aarch64_get_mach_from_notes): New declaration. + (elf64_aarch64_setup_section_lists): New declaration. + (elf64_aarch64_next_input_section): New declaration. + (elf64_aarch64_size_stubs): New declaration. + (elf64_aarch64_build_stubs): New declaration. + * config.bfd: Add AArch64. + * configure.in: Add AArch64. + * configure: Regenerate. + * cpu-aarch64.c: New file. + * elf-bfd.h: Add AArch64. + * bfd-in2.h: Regenerate. + * libbfd.h: Regenerate. + * elf64-aarch64.c: New file. + * reloc.c: Add AArch64 relocations. + * targets.c: Add AArch64. + * po/SRC-POTFILES.in: Regenerate. -2011-07-03 Samuel Thibault <samuel.thibault@xxxxxxx> - Thomas Schwinge <thomas@xxxxxxxxxxxxx> +2012-08-14 Nick Clifton <nickc@xxxxxxxxxx> - PR binutils/12913 - * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of - ELFOSABI_LINUX alias. - * elf32-hppa.c: Likewise. - * elf32-i370.c: Likewise. - * elf64-hppa.c: Likewise. + * po/uk.po: Updated Ukranian translation. -2011-07-01 Ian Lance Taylor <iant@xxxxxxxxxx> +2012-08-09 Nick Clifton <nickc@xxxxxxxxxx> - * elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: change - DW_OP_lit3 to DW_OP_lit2. + * po/vi.po: Updated Vietnamese translation. -2011-07-01 Alan Modra <amodra@xxxxxxxxx> +2012-08-07 Nick Clifton <nickc@xxxxxxxxxx> - * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't look at - dyn relocs when called to copy flags for a weak sym. - * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. - (ppc64_elf_merge_private_bfd_data): Delete. - (bfd_elf64_bfd_merge_private_bfd_data): Define as - _bfd_generic_verify_endian_match. + * po/uk.po: Updated Ukranian translation. -2011-06-30 Bernd Schmidt <bernds@xxxxxxxxxxxxxxxx> +2012-07-30 Nick Clifton <nickc@xxxxxxxxxx> - * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if - link_info is NULL. + * po/bfd.pot: Updated template. + * po/es.po: Updated Spanish translation. + * po/fi.po: Updated Finnish translation. + * po/fr.po: Updated French translation. + * po/ru.po: Updated Russian translation. + * po/uk.po: Updated Ukranian translation. -2011-06-28 Tristan Gingold <gingold@xxxxxxxxxxx> +2012-07-27 Tristan Gingold <gingold@xxxxxxxxxxx> - * vms-alpha.c (vms_private_data_struct): Make vms_linkage_index - unsigned int. - (_bfd_vms_write_etir): Write linkage index from reloc. + * configure.in: Bump version to 2.22.90 + * configure: Regenerate. -2011-06-28 Fawzi Mohamed <fawzi.mohamed@xxxxxxxxx> +2012-07-26 Teresa Johnson <tejohnson@xxxxxxxxxx> + + * bfd/dwarf2.c (find_line): Initialize discriminator_ptr + if it is non-NULL. + [ *** diff truncated: 750803 lines dropped *** ] ############################################################################ Revision: btrev43051 Commit: f31d42dfd9d06087ae5b683174980d19779deb6f URL: http://cgit.haiku-os.org/buildtools/commit/?id=f31d42d Author: Jerome Duval <jerome.duval@xxxxxxxxx> Date: Wed Apr 3 19:54:17 2013 UTC Merge binutils 2.23.2 ----------------------------------------------------------------------------