binutils.git
13 years agoAdd support for DragonFlyBSD target.
Nick Clifton [Mon, 28 Mar 2011 11:18:20 +0000 (28 11:18 +0000)]
Add support for DragonFlyBSD target.

13 years ago * configure.in: Check for windows.h, not Windows.h.
Joseph Myers [Mon, 28 Mar 2011 10:27:07 +0000 (28 10:27 +0000)]
* configure.in: Check for windows.h, not Windows.h.
* configure: Regenerate.
* plugin.c: Include windows.h, not Windows.h.

13 years agodaily update
Alan Modra [Sun, 27 Mar 2011 23:00:06 +0000 (27 23:00 +0000)]
daily update

13 years ago * archive.cc (Archive::interpret_header): Return -1 if something
Ian Lance Taylor [Sun, 27 Mar 2011 17:00:56 +0000 (27 17:00 +0000)]
* archive.cc (Archive::interpret_header): Return -1 if something
goes wrong.  Change callers accordingly.

13 years agodaily update
Alan Modra [Sat, 26 Mar 2011 23:00:05 +0000 (26 23:00 +0000)]
daily update

13 years agodaily update
Alan Modra [Fri, 25 Mar 2011 23:00:05 +0000 (25 23:00 +0000)]
daily update

13 years ago * testsuite/Makefile.am (final_layout.stdout): Use -n option with nm.
Cary Coutant [Fri, 25 Mar 2011 22:58:48 +0000 (25 22:58 +0000)]
* testsuite/Makefile.am (final_layout.stdout): Use -n option with nm.
* testsuite/Makefile.in: Regenerate.

13 years agoRegenerate Makefile.in.
Eric B. Weddington [Fri, 25 Mar 2011 18:04:48 +0000 (25 18:04 +0000)]
Regenerate Makefile.in.

13 years agooops - fix typo
Nick Clifton [Fri, 25 Mar 2011 18:02:25 +0000 (25 18:02 +0000)]
oops - fix typo

13 years ago * dwarf.c (decode_location_expression): Use dwarf_vmatoa
Nick Clifton [Fri, 25 Mar 2011 18:01:57 +0000 (25 18:01 +0000)]
* dwarf.c (decode_location_expression): Use dwarf_vmatoa
function to display DW_OP_addr OP.
(process_debug_info): Use dwarf_vma type for local variables
length and type_offset.

13 years ago * dwarf.c (process_debug_info): Use offset_size to determine
Nick Clifton [Fri, 25 Mar 2011 17:54:56 +0000 (25 17:54 +0000)]
* dwarf.c (process_debug_info): Use offset_size to determine
the bit-size of the computation unit's offset.

13 years ago * bucomm.c (make_tempname): Stop memory leak.
Nick Clifton [Fri, 25 Mar 2011 17:51:09 +0000 (25 17:51 +0000)]
* bucomm.c (make_tempname): Stop memory leak.
ICVS: ----------------------------------------------------------------------

13 years ago * objdump.c (dump_reloc_set): Free malloced memory.
Nick Clifton [Fri, 25 Mar 2011 17:49:32 +0000 (25 17:49 +0000)]
* objdump.c (dump_reloc_set): Free malloced memory.

13 years ago * stabs.c (parse_stab_enum_type): Fix memory leaks.
Nick Clifton [Fri, 25 Mar 2011 17:46:07 +0000 (25 17:46 +0000)]
* stabs.c (parse_stab_enum_type): Fix memory leaks.
(parse_stab_struct_type): Ditto.
(parse_stab_struct_fields): Ditto.
(parse_stab_one_struct_field): Ditto.
(parse_stab_members): Ditto.
(stab_demangle_qualified): Ditto.

13 years ago * prdbg.c (pr_function_type): Close memory leaks.
Nick Clifton [Fri, 25 Mar 2011 17:24:28 +0000 (25 17:24 +0000)]
* prdbg.c (pr_function_type): Close memory leaks.
(pr_method_type): Likewise.
(tg_class_static_member): Likewise.
(tg_class_method_variant): Likewise.
(tg_class_static_method_variant): Likewise.

13 years ago * ieee.c (ieee_add_bb11): Plug memory leak.
Nick Clifton [Fri, 25 Mar 2011 17:22:15 +0000 (25 17:22 +0000)]
* ieee.c (ieee_add_bb11): Plug memory leak.
(ieee_function_type): Likewise.
(ieee_class_baseclass): Likewise.

13 years ago * ar.c (write_archive): Plug memory leak.
Nick Clifton [Fri, 25 Mar 2011 17:18:54 +0000 (25 17:18 +0000)]
* ar.c (write_archive): Plug memory leak.

13 years ago * ar.c (delete_members): Plug memory leak.
Nick Clifton [Fri, 25 Mar 2011 17:17:03 +0000 (25 17:17 +0000)]
* ar.c (delete_members): Plug memory leak.

13 years ago * ar.c (move_members): Plug memory leak.
Nick Clifton [Fri, 25 Mar 2011 17:14:02 +0000 (25 17:14 +0000)]
* ar.c (move_members): Plug memory leak.

13 years ago * strings.c (print_strings): Plug memory leak.
Nick Clifton [Fri, 25 Mar 2011 17:09:08 +0000 (25 17:09 +0000)]
* strings.c (print_strings): Plug memory leak.

13 years ago * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
Nick Clifton [Fri, 25 Mar 2011 17:06:52 +0000 (25 17:06 +0000)]
* coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.

13 years agomerge from gcc
DJ Delorie [Fri, 25 Mar 2011 16:38:27 +0000 (25 16:38 +0000)]
merge from gcc

13 years ago2011-03-24 Mark Wielaard <mjw@redhat.com>
Tom Tromey [Fri, 25 Mar 2011 15:45:38 +0000 (25 15:45 +0000)]
2011-03-24  Mark Wielaard  <mjw@redhat.com>

* dwarf2.h (dwarf_form): Remove deprecated DW_FORM_sig8 define.

13 years ago2011-03-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 25 Mar 2011 15:39:03 +0000 (25 15:39 +0000)]
2011-03-25  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
of find_nearest_line on object files.

13 years ago2011-03-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 25 Mar 2011 15:31:25 +0000 (25 15:31 +0000)]
2011-03-25  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
Minor reordering.
(alpha_vms_create_eisd_for_section): Make code sections read-only.

13 years ago Replace bfd_vma type and analog types by dwarf_vma and analogs.
Nick Clifton [Fri, 25 Mar 2011 15:15:52 +0000 (25 15:15 +0000)]
Replace bfd_vma type and analog types by dwarf_vma and analogs.
Use dwarf specific print functions to display these type values.
* dwarf.h (dwarf_signed_vma): New type;
(DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
(DWARF2_External_PubNames): Likewise.
(DWARF2_External_CompUnit): Likewise.
(DWARF2_External_ARange): Likewise.
(read_leb128): Change return type to dwarf_vma.
* dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
check byte_size values.
(dwarf_vmatoa): Change parameter type to dwarf_vma.
(dwarf_svmatoa): New static function.
(read_leb128): Change return type to dwarf_vma.
(read_sleb128): New static function.
(struct State_Machine_Registers): Change address field type to
dwarf_vma.
(process_extended_line_op): Adapt to type changes.
(fetch_indirect_string): Likewise.
(idisplay_block): Likewise.
(decode_location_expression): Likewise.
(read_and_display_attr_value): Likewise.
(process_debug_info): Likewise.
(display_debug_lines_raw): Likewise.
(display_debug_lines_decoded): Likewise.
(SLEB macro): Use new read_sleb128 function.

13 years ago * configure.ac (native_only): Remove.
Joseph Myers [Fri, 25 Mar 2011 13:08:19 +0000 (25 13:08 +0000)]
* configure.ac (native_only): Remove.
(i[[3456789]]86-*-msdosdjgpp*): Don't disable expect dejagnu
send-pr uudecode guile gnuserv on host.
(x86_64-*-mingw*): Don't disable expect dejagnu autoconf automake
send-pr rcs guile perl texinfo libtool on host.
(i[[3456789]]86-*-mingw32*): Don't disable expect dejagnu autoconf
automake send-pr rcs guile perl texinfo libtool on host.
(*-*-cygwin*, *-*-netbsd*): Remove host cases.
(*-*-kaos*): Don't disable target-examples target-gperf on target.
(alpha*-dec-osf*): Don't disable fileutils on target.
(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't disable target-examples
texinfo send-pr expect dejagnu on target.
(arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi): Don't disable
target-qthreads on target.
(hppa*-hp-hpux11*, hppa*-*-*): Don't disable shellutils on target.
(ia64*-*-elf*, ia64*-*-*vms*): Don't disable mmalloc on target.
(i[[3456789]]86-w64-mingw*, i[[3456789]]86-*-mingw*,
x86_64-*-mingw*): Don't disable expect on target.
(*-*-cygwin*): Don't disable target-gperf on target.
(powerpc*-*-winnt* | powerpc*-*-pe*): Don't disable make expect
gnuserv on target.
(powerpcle-*-solaris*): Don't disable make expect gnuserv on
target.
* configure: Regenerate.

13 years ago * configure.ac (target_tools): Remove target-groff.
Joseph Myers [Fri, 25 Mar 2011 11:36:41 +0000 (25 11:36 +0000)]
* configure.ac (target_tools): Remove target-groff.
(native_only): Remove target-groff.
(hppa*64*-*-*): Don't disable byacc.
(i[[3456789]]86-*-mingw32*): Remove commented-out noconfigdirs
setting.
(*-*-kaos*): Don't skip target-librx and target-groff.
(*-*-netware*): Don't skip target-libmudflap.
(*-*-tpf*): Don't skip target-libmudflap.
(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't condition configured
directories on the host.
(ia64*-*-*vms*): Don't skip tix.
(sh-*-* | sh64-*-*): Don't condition skipped directories on the
host.
* configure: Regenerate.

13 years agodaily update
Alan Modra [Thu, 24 Mar 2011 23:00:06 +0000 (24 23:00 +0000)]
daily update

13 years ago2011-03-24 Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini [Thu, 24 Mar 2011 17:50:31 +0000 (24 17:50 +0000)]
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * configure.ac: Remove references to mt-mep, mt-netware,
        mt-wince.
        * Makefile.def: Add all-utils soft dependencies.
        * Makefile.tpl: Remove GDB_NLM_DEPS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * mt-mep: Remove, obsolete.
        * mt-netware: Remove, obsolete.
        * mt-wince: Remove, obsolete.
        * mt-v810: Remove, unused.

13 years ago2011-03-24 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 24 Mar 2011 17:31:09 +0000 (24 17:31 +0000)]
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

Sync from GCC:

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove empty cases.
* configure: Regenerate.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def: Add dependency from termcap to gdb.
* Makefile.in: Regenerate.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove all mentions of mh-sysv4 and mh-solaris.
* configure: Regenerate.
* Makefile.def: Remove all mentions of X11_FLAGS_TO_PASS.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove all mentions of tentative_cc.
* configure: Regenerate.

2011-03-16  Jack Howarth  <howarth@bromo.med.uc.edu>

PR lto/48086
* configure.ac: Re-enable LTO on *-apple-darwin9.
* configure: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

Sync from GCC:

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-cygwin: Remove obsolete variables and dependencies.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove.
* mh-solaris: Remove.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove AR_CFLAGS.

13 years ago2011-03-24 Eric B. Weddington <eric.weddington@atmel.com>
Eric B. Weddington [Thu, 24 Mar 2011 17:03:01 +0000 (24 17:03 +0000)]
2011-03-24  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb,
at90pwm161.
* doc/c-avr.texi: Document new device names.

13 years ago2011-03-24 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 24 Mar 2011 16:55:10 +0000 (24 16:55 +0000)]
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove AR_CFLAGS.

13 years ago * configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,
Joseph Myers [Thu, 24 Mar 2011 16:52:09 +0000 (24 16:52 +0000)]
* configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,
i[[3456789]]86-*-beos*, powerpc-*-beos*, m68k-hp-hpux*,
m68k-apollo-sysv*, m68k-apollo-bsd*, m88k-dg-dgux*,
m88k-harris-cxux*, m88k-motorola-sysv*, mips*-dec-ultrix*,
mips*-nec-sysv4*, mips*-sgi-irix4*, mips*-*-sysv4*, mips*-*-sysv*,
i370-ibm-opened*, i[[3456789]]86-*-sysv5*, i[[3456789]]86-*-dgux*,
i[[3456789]]86-ncr-sysv4.3*, i[[3456789]]86-ncr-sysv4*,
i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
i[[3456789]]86-*-udk*, vax-*-ultrix2*, m68k-sun-sunos*,
hppa*-*-hiux*, *-*-hiux*, rs6000-*-lynxos*, *-*-sysv4*,
*-*-rhapsody*): Remove host cases.
* configure: Regenerate.

config:
* mh-cxux, mh-decstation, mh-dgux386, mh-lynxrs6k, mh-ncr3000,
mh-necv4, mh-sco, mh-sysv5: Remove.

13 years ago * configure.ac (ppc*-*-pe): Remove host case.
Joseph Myers [Thu, 24 Mar 2011 13:25:45 +0000 (24 13:25 +0000)]
* configure.ac (ppc*-*-pe): Remove host case.
(strongarm-*-coff | xscale-*-coff, strongarm-*-elf* |
xscale-*-elf*, thumb-*-coff, thumb-*-elf, thumb-*-pe, ep9312-*-elf
| ep9312-*-coff, parisc*64*-*-linux*, ppc*-*-pe): Remove target
cases.
* configure: Regenerate.

13 years ago * config.sub: Update to version 2011-03-23.
Joseph Myers [Thu, 24 Mar 2011 11:13:32 +0000 (24 11:13 +0000)]
* config.sub: Update to version 2011-03-23.

13 years agogas: blackfin: reject invalid register destinations for vector add/sub
Mike Frysinger [Thu, 24 Mar 2011 06:17:45 +0000 (24 06:17 +0000)]
gas: blackfin: reject invalid register destinations for vector add/sub

The destination registers with vector add/sub insns must be different,
so make sure gas rejects attempt to write these.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoopcodes: blackfin: ignore (M) on MAC0-only dsp mac funcs
Mike Frysinger [Thu, 24 Mar 2011 05:27:38 +0000 (24 05:27 +0000)]
opcodes: blackfin: ignore (M) on MAC0-only dsp mac funcs

If the MAC1 part of the insn is disabled, then the (M) flag is ignored.
Rather than include it in the decode, move the MM clearing to the MAC0
portion of the code.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: test all 16bit insns
Mike Frysinger [Thu, 24 Mar 2011 04:34:32 +0000 (24 04:34 +0000)]
gas: blackfin: test all 16bit insns

The current 16bit insn test doesn't actually cover all illegal insns
since it stops at 0xa000 instead of 0xc000.  But rather than address
that, replace it with a test that covers all 16bit insns.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: catch invalid dest dregs in dsp mult insns
Mike Frysinger [Thu, 24 Mar 2011 04:25:24 +0000 (24 04:25 +0000)]
gas: blackfin: catch invalid dest dregs in dsp mult insns

While we were catching a few mismatches in vectorized dsp mult insns,
the error we displayed was misleading.  Once we fix that up, we can
convert previously dead code into proper checking for destination
dreg matching.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: catch invalid register combinations with SEARCH/BITMUX
Mike Frysinger [Thu, 24 Mar 2011 04:19:43 +0000 (24 04:19 +0000)]
gas: blackfin: catch invalid register combinations with SEARCH/BITMUX

The destination registers for SEARCH cannot be the same.  Same rule
for the source registers for BITMUX.

Signed-off-by: Mike Frsyinger <vapier@gentoo.org>
13 years agodaily update
Alan Modra [Wed, 23 Mar 2011 23:00:05 +0000 (23 23:00 +0000)]
daily update

13 years ago * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
Joseph Myers [Wed, 23 Mar 2011 19:53:05 +0000 (23 19:53 +0000)]
* lexsup.c (parse_args): Only set report_plugin_symbols if plugins
are enabled.  Mark level as possibly unused.

13 years agobfd/
Alan Modra [Wed, 23 Mar 2011 15:25:00 +0000 (23 15:25 +0000)]
bfd/
* elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
old-style __tls_get_addr calls without marker relocs don't match
their arg setup insn one for one.  If such mismatches are found
report the reloc and don't do any tls optimization.
* elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
ld/testsuite/
* ld-powerpc/tlsmark.s: Delete non-optimizable section.
* ld-powerpc/tlsmark32.s: Likewise.
* ld-powerpc/tlsmark.d: Adjust to suit.
* ld-powerpc/tlsmark32.d: Likewise.
* ld-powerpc/tlsopt1.d, * ld-powerpc/tlsopt1.s: New.
* ld-powerpc/tlsopt2.d, * ld-powerpc/tlsopt2.s: New.
* ld-powerpc/tlsopt3.d, * ld-powerpc/tlsopt3.s: New.
* ld-powerpc/tlsopt4.d, * ld-powerpc/tlsopt4.s: New.
* ld-powerpc/tlsopt1_32.d, * ld-powerpc/tlsopt1_32.s: New.
* ld-powerpc/tlsopt2_32.d, * ld-powerpc/tlsopt2_32.s: New.
* ld-powerpc/tlsopt3_32.d, * ld-powerpc/tlsopt3_32.s: New.
* ld-powerpc/tlsopt4_32.d, * ld-powerpc/tlsopt4_32.s: New.
* ld-powerpc/powerpc.exp: Run new tests.

13 years ago2011-03-23 Eric B. Weddington <eric.weddington@atmel.com>
Eric B. Weddington [Wed, 23 Mar 2011 15:01:59 +0000 (23 15:01 +0000)]
2011-03-23  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
* doc/c-avr.texi: Document new device names.

13 years ago2010-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
espindola [Wed, 23 Mar 2011 14:13:27 +0000 (23 14:13 +0000)]
2010-03-23  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin.cc (get_view): New.
(Plugin::load): Pass get_view to the plugin.
(Plugin_manager::get_view): New.

13 years ago2010-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
espindola [Wed, 23 Mar 2011 14:13:27 +0000 (23 14:13 +0000)]
2010-03-23  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin.cc (get_view): New.
(Plugin::load): Pass get_view to the plugin.
(Plugin_manager::get_view): New.

13 years ago2010-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
espindola [Wed, 23 Mar 2011 14:09:47 +0000 (23 14:09 +0000)]
2010-03-23  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin-api.h (ld_plugin_get_view): New.
(ld_plugin_tag): Add LDPT_GET_VIEW.
(ld_plugin_tv): Add tv_get_view.

13 years ago2010-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
espindola [Wed, 23 Mar 2011 14:09:47 +0000 (23 14:09 +0000)]
2010-03-23  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin-api.h (ld_plugin_get_view): New.
(ld_plugin_tag): Add LDPT_GET_VIEW.
(ld_plugin_tv): Add tv_get_view.

13 years agodaily update
Alan Modra [Tue, 22 Mar 2011 23:00:06 +0000 (22 23:00 +0000)]
daily update

13 years agoRegenerate bfd-in2.h.
Eric B. Weddington [Tue, 22 Mar 2011 20:58:29 +0000 (22 20:58 +0000)]
Regenerate bfd-in2.h.

13 years ago * configure.ac (arm-semi-aof, crx-*-*, parisc*-*-linux*,
Joseph Myers [Tue, 22 Mar 2011 20:04:36 +0000 (22 20:04 +0000)]
* configure.ac (arm-semi-aof, crx-*-*, parisc*-*-linux*,
i370-*-opened*, i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss*
| i[[3456789]]86-*-uwin*, mcore-*-pe*): Remove empty cases.
* configure: Regenerate.

13 years ago * config-ml.in: Don't handle arc-*-elf*.
Joseph Myers [Tue, 22 Mar 2011 20:01:13 +0000 (22 20:01 +0000)]
* config-ml.in: Don't handle arc-*-elf*.
* configure.ac (arc-*-*, crx-*-*, i[[3456789]]86-*-pe,
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*, mcore-*-pe*): Don't
handle GCC libraries.
* configure: Regenerate.

13 years ago/bfd:
Eric B. Weddington [Tue, 22 Mar 2011 18:10:39 +0000 (22 18:10 +0000)]
/bfd:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* archures.c: Add AVR XMEGA architecture information.
* cpu-avr.c (arch_info_struct): Likewise.
* elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
(elf32_avr_object_p): Likewise.

/gas:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
(AVR_INSN): Change definition to match.
(avr_opcodes): Likewise, change to match.
(mcu_types): Add XMEGA architecture names and new XMEGA device names.
(md_show_usage): Add XMEGA architecture names.
(avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
Add support for SPM Z+ instruction.
* doc/c-avr.texi: Add documentation for XMEGA architectures and
devices.

/include/opcode:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* avr.h (AVR_ISA_SPMX,AVR_ISA_DES,AVR_ISA_M256,AVR_ISA_XMEGA):
New instruction set flags.
(AVR_INSN): Add new instructions for SPM Z+, DES for XMEGA.

/ld:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
(eavrxmega?.c): Likewise.
* configure.tgt (targ_extra_emuls): Likewise.
* emulparams/avrxmega1.sh: New file.
* emulparams/avrxmega2.sh: Likewise.
* emulparams/avrxmega3.sh: Likewise.
* emulparams/avrxmega4.sh: Likewise.
* emulparams/avrxmega5.sh: Likewise.
* emulparams/avrxmega6.sh: Likewise.
* emulparams/avrxmega7.sh: Likewise.
* emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
Add avrxmega6, avrxmega7 to list of architectures for no stubs.

/opcodes:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* avr-dis.c (avr_operand): Add opcode_str parameter. Check for
post-increment to support LPM Z+ instruction. Add support for 'E'
constraint for DES instruction.
(print_insn_avr): Adjust calls to avr_operand. Rename variable.

13 years ago * testsuite/relro_test.sh: Fail if dc is not present.
Ian Lance Taylor [Tue, 22 Mar 2011 00:19:14 +0000 (22 00:19 +0000)]
* testsuite/relro_test.sh: Fail if dc is not present.

13 years agoFix copyright.
Ian Lance Taylor [Tue, 22 Mar 2011 00:18:26 +0000 (22 00:18 +0000)]
Fix copyright.

13 years ago * testsuite/final_layout.sh: Rewrite to not use dc.
Ian Lance Taylor [Mon, 21 Mar 2011 23:11:44 +0000 (21 23:11 +0000)]
* testsuite/final_layout.sh: Rewrite to not use dc.

13 years agodaily update
Alan Modra [Mon, 21 Mar 2011 23:00:06 +0000 (21 23:00 +0000)]
daily update

13 years ago * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start.
Sriraman Tallam [Mon, 21 Mar 2011 20:55:32 +0000 (21 20:55 +0000)]
* testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start.
Change == to -eq.
* testsuite/icf_string_merge_test.sh: Add #!/bin/sh to start.
* testsuite/icf_safe_test.sh: Add #!/bin/sh to start.
Change == to -eq.
* testsuite/icf_sht_rel_addend_test.sh: Add #!/bin/sh to start.
* testsuite/icf_preemptible_functions_test.sh: Add #!/bin/sh to start.

13 years ago2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
Eric B. Weddington [Mon, 21 Mar 2011 20:25:54 +0000 (21 20:25 +0000)]
2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (md_show_usage): Add "Assembler" text to output.

13 years ago2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
Eric B. Weddington [Mon, 21 Mar 2011 20:07:40 +0000 (21 20:07 +0000)]
2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>

* scripttempl/avr.sc: Add fuse, lock, and signature memory regions.

13 years ago PR bootstrap/48120:
Rainer Orth [Mon, 21 Mar 2011 13:03:33 +0000 (21 13:03 +0000)]
PR bootstrap/48120:
* configure.ac (pwllib): Use LIBS instead of LDFLAGS.
Add -lstdc++ -lm to LIBS.
* configure: Regenerate.

13 years agodaily update
Alan Modra [Sun, 20 Mar 2011 23:00:06 +0000 (20 23:00 +0000)]
daily update

13 years agodaily update
Alan Modra [Sat, 19 Mar 2011 23:00:06 +0000 (19 23:00 +0000)]
daily update

13 years agodaily update
Alan Modra [Fri, 18 Mar 2011 23:00:06 +0000 (18 23:00 +0000)]
daily update

13 years ago * config.guess: Update to version 2011-02-02
David Edelsohn [Fri, 18 Mar 2011 17:43:20 +0000 (18 17:43 +0000)]
    * config.guess: Update to version 2011-02-02
        * config.sub: Update to version 2011-02-24

13 years ago * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
Alan Modra [Fri, 18 Mar 2011 11:21:33 +0000 (18 11:21 +0000)]
* config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
on .size expression errors rather than symbols in the size expression.

13 years agogas/
Alan Modra [Fri, 18 Mar 2011 11:16:27 +0000 (18 11:16 +0000)]
gas/
* input-scrub.c (line_numberT): Delete.
(input_scrub_close): Reset line counters.
* messages.c (as_show_where): Don't print invalid line number.
(as_warn_internal, as_bad_internal): Likewise.
gas/testsuite/
* gas/elf/bad-size.err: Adjust expected error.
* gas/i386/bad-size.warn: Likewise.
* gas/i386/inval-equ-2.l: Likewise.
* gas/symver/symver2.l: Likewise.

13 years ago * read.c (read_a_source_file): Remove md_after_pass_hook.
Alan Modra [Fri, 18 Mar 2011 10:46:51 +0000 (18 10:46 +0000)]
* read.c (read_a_source_file): Remove md_after_pass_hook.
Move "quit" label before set of dot_symbol.
* config/tc-d10v.h (md_after_pass_hook): Don't define.
* config/tc-d30v.h (md_after_pass_hook): Likewise.
* config/tc-m32r.h (md_after_pass_hook): Likewise.
(md_cleanup): Define to call m32r_fill_insn.

13 years ago2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 18 Mar 2011 09:54:57 +0000 (18 09:54 +0000)]
2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (md_parse_option): Add -march=all option which
switches to the highest available CPU.

13 years agodaily update
Alan Modra [Thu, 17 Mar 2011 23:00:06 +0000 (17 23:00 +0000)]
daily update

13 years agoAdd a testase for PR gas/12589.
H.J. Lu [Thu, 17 Mar 2011 13:16:43 +0000 (17 13:16 +0000)]
Add a testase for PR gas/12589.

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/12589
* gas/i386/pr12589-1.d: New.
* gas/i386/pr12589-1.s: Likewise.

* gas/i386/i386.exp: Run pr12589-1.

13 years ago PR 12590
Alan Modra [Thu, 17 Mar 2011 12:56:35 +0000 (17 12:56 +0000)]
PR 12590
* ar.c (ranlib_main): Init arg_index properly.
(usage): Describe --target.

13 years ago PR 12569
Alan Modra [Thu, 17 Mar 2011 10:59:29 +0000 (17 10:59 +0000)]
PR 12569
* expr.c (operand): Correct passing of "mode" to expr.
* read.c (do_org): Allow expr_section.
(get_known_segmented_expression): Don't assert anything about the
segment.

13 years agodaily update
Alan Modra [Wed, 16 Mar 2011 23:00:06 +0000 (16 23:00 +0000)]
daily update

13 years ago * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
Jakub Jelinek [Wed, 16 Mar 2011 13:00:09 +0000 (16 13:00 +0000)]
* dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
(read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
(get_AT_name): Handle DW_AT_GNU_call_site_value,
DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
DW_AT_GNU_all_source_call_sites.
(decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
handling.

* dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
(decode_location_expression): Handle DW_OP_GNU_entry_value.
(read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
(get_AT_name): Likewise.

13 years agoAdd --size-check=[error|warning].
H.J. Lu [Wed, 16 Mar 2011 12:58:24 +0000 (16 12:58 +0000)]
Add --size-check=[error|warning].

gas/

2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>

* as.c (show_usage): Add --size-check=.
(parse_args): Add and handle OPTION_SIZE_CHECK.

* as.h (flag_size_check): New.

* config/obj-elf.c (elf_frob_symbol): Use as_bad to report
bad .size directive only for --size-check=error.

* doc/as.texinfo: Document --size-check=.

gas/testsuite/

2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/bad-size.d: New.
* gas/i386/bad-size.s: Likewise.
* gas/i386/bad-size.warn: Likewise.

* gas/i386/i386.exp: Run bad-size for ELF targets.

13 years ago * dwarf2.h (DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter,
Jakub Jelinek [Wed, 16 Mar 2011 08:48:47 +0000 (16 08:48 +0000)]
* dwarf2.h (DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter,
DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered,
DW_AT_GNU_tail_call, DW_AT_GNU_all_tail_call_sites,
DW_AT_GNU_all_call_sites,, DW_AT_GNU_all_source_call_sites,
DW_OP_GNU_entry_value): New.

13 years agold: vers19 test: add -rpath-link
Mike Frysinger [Tue, 15 Mar 2011 23:34:29 +0000 (15 23:34 +0000)]
ld: vers19 test: add -rpath-link

Using -Wl,-rpath,. isn't sufficient for cross-linkers to locate the
necessary libraries.  So throw in -Wl,-rpath-link,. to make it work.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agodaily update
Alan Modra [Tue, 15 Mar 2011 23:00:05 +0000 (15 23:00 +0000)]
daily update

13 years agogas: blackfin: add support for bf54x-0.4
Mike Frysinger [Tue, 15 Mar 2011 00:16:58 +0000 (15 00:16 +0000)]
gas: blackfin: add support for bf54x-0.4

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agodaily update
Alan Modra [Mon, 14 Mar 2011 23:00:07 +0000 (14 23:00 +0000)]
daily update

13 years ago2011-03-14 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 14 Mar 2011 20:51:59 +0000 (14 20:51 +0000)]
2011-03-14  Michael Snyder  <msnyder@vmware.com>

* objcopy.c (set_pe_subsystem): Free subsystem.

13 years ago2011-03-08 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 14 Mar 2011 19:05:39 +0000 (14 19:05 +0000)]
2011-03-08  Michael Snyder  <msnyder@vmware.com>

* wrstabs.c (stab_start_struct_type): Close memory leak.

13 years ago2011-03-07 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 14 Mar 2011 17:48:30 +0000 (14 17:48 +0000)]
2011-03-07  Michael Snyder  <msnyder@vmware.com>

* readelf.c (process_version_sections): Free symbols.

13 years ago2011-03-07 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 14 Mar 2011 17:37:53 +0000 (14 17:37 +0000)]
2011-03-07  Michael Snyder  <msnyder@vmware.com>

* nm.c (display_rel_file): Free symsizes.

13 years agoinclude/elf/
Richard Sandiford [Mon, 14 Mar 2011 16:04:03 +0000 (14 16:04 +0000)]
include/elf/
* arm.h (R_ARM_IRELATIVE): New relocation.

bfd/
* reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
* bfd-in2.h: Regenerate.
* elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
entry.
(elf32_arm_howto_from_type): Update accordingly.
(elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
(elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
(arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
with an extra noncall_refcount field.
(arm_local_iplt_info): New structure.
(elf_arm_obj_tdata): Add local_iplt.
(elf32_arm_local_iplt): New accessor macro.
(elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
Change tls_type to a bitfield and add is_iplt.
(elf32_arm_link_hash_newfunc): Update accordingly.
(elf32_arm_allocate_local_sym_info): New function.
(elf32_arm_create_local_iplt): Likewise.
(elf32_arm_get_plt_info): Likewise.
(elf32_arm_plt_needs_thumb_stub_p): Likewise.
(elf32_arm_get_local_dynreloc_list): Likewise.
(create_ifunc_sections): Likewise.
(elf32_arm_copy_indirect_symbol): Update after the changes to
elf32_arm_link_hash_entry.  Assert the is_iplt has not yet been set.
(arm_type_of_stub): Add an st_type argument.  Use elf32_arm_get_plt_info
to get PLT information.  Assert that all STT_GNU_IFUNC references
are turned into PLT references.
(arm_build_one_stub): Pass the symbol type to
elf32_arm_final_link_relocate.
(elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
(elf32_arm_allocate_irelocs): New function.
(elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
all R_ARM_IRELATIVE.
(elf32_arm_allocate_plt_entry): New function.
(elf32_arm_populate_plt_entry): Likewise.
(elf32_arm_final_link_relocate): Add an st_type parameter.
Set srelgot to null for static objects.  Use separate variables
to record which st_value and st_type should be used when generating
a dynamic relocation.  Use elf32_arm_get_plt_info to find the
symbol's PLT information, setting has_iplt_entry, splt,
plt_offset and gotplt_offset accordingly.  Check whether
STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
the relocation target accordingly.  Broaden assert to include
.iplts.  Don't set sreloc for static relocations.  Assert that
we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
and R_ARM_ABS32_NOI.  Generate R_ARM_IRELATIVE relocations instead
of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
symbol.  Pass the symbol type to arm_type_of_stub.  Conditionally
resolve GOT references to the .igot.plt entry.
(elf32_arm_relocate_section): Update the call to
elf32_arm_final_link_relocate.
(elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
information.  Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
relocations in shared libraries and relocatable executables.
Count non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_check_relocs): Always create ifunc sections.  Set isym
at the same time as setting h.  Use elf32_arm_allocate_local_sym_info
to allocate local symbol information.  Treat R_ARM_REL32 and
R_ARM_REL32_NOI as call relocations in shared libraries and
relocatable executables.  Record PLT information for local
STT_GNU_IFUNC functions as well as global functions.   Count
non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
Don't remove STT_GNU_IFUNC PLTs unless all references have been
removed.  Update after the changes to elf32_arm_link_hash_entry.
(allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
entries should live in .plt or .iplt.  Check whether the .igot.plt
and .got entries can be combined.  Use elf32_arm_allocate_plt_entry
to allocate .plt and .(i)got.plt entries.  Detect which .got
entries will need R_ARM_IRELATIVE relocations and use
elf32_arm_allocate_irelocs to allocate them.  Likewise other
non-.got dynamic relocations.
(elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
and dynamic relocations for local STT_GNU_IFUNC symbols.
Check whether the .igot.plt and .got entries can be combined.
Detect which .got entries will need R_ARM_IRELATIVE relocations
and use elf32_arm_allocate_irelocs to allocate them.  Use stashed
section pointers intead of strcmp checks.  Handle iplt and igotplt.
(elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
to fill in .plt, .got.plt and .rel(a).plt entries.  Point
STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
resolve to it.
(elf32_arm_output_plt_map_1): New function, split out from
elf32_arm_output_plt_map.  Handle .iplt entries.  Use
elf32_arm_plt_needs_thumb_stub_p.
(elf32_arm_output_plt_map): Call it.
(elf32_arm_output_arch_local_syms): Add mapping symbols for
local .iplt entries.
(elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
(elf32_arm_swap_symbol_out): Likewise.
(elf32_arm_add_symbol_hook): New function.
(elf_backend_add_symbol_hook): Define for all targets.

opcodes/
* arm-dis.c (get_sym_code_type): Treat STT_GNU_IFUNCs as code.

gas/
* config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
determine whether a relocation is needed.
(md_apply_fix, arm_apply_sym_value): Likewise.

ld/testsuite/
* ld-arm/ifunc-1.s, ld-arm/ifunc-1.dd, ld-arm/ifunc-1.gd,
ld-arm/ifunc-1.rd, ld-arm/ifunc-2.s, ld-arm/ifunc-2.dd,
ld-arm/ifunc-2.gd, ld-arm/ifunc-2.rd, ld-arm/ifunc-3.s,
ld-arm/ifunc-3.dd, ld-arm/ifunc-3.gd, ld-arm/ifunc-3.rd,
ld-arm/ifunc-4.s, ld-arm/ifunc-4.dd, ld-arm/ifunc-4.gd,
ld-arm/ifunc-4.rd, ld-arm/ifunc-5.s, ld-arm/ifunc-5.dd,
ld-arm/ifunc-5.gd, ld-arm/ifunc-5.rd, ld-arm/ifunc-6.s,
ld-arm/ifunc-6.dd, ld-arm/ifunc-6.gd, ld-arm/ifunc-6.rd,
ld-arm/ifunc-7.s, ld-arm/ifunc-7.dd, ld-arm/ifunc-7.gd,
ld-arm/ifunc-7.rd, ld-arm/ifunc-8.s, ld-arm/ifunc-8.dd,
ld-arm/ifunc-8.gd, ld-arm/ifunc-8.rd, ld-arm/ifunc-9.s,
ld-arm/ifunc-9.dd, ld-arm/ifunc-9.gd, ld-arm/ifunc-9.rd,
ld-arm/ifunc-10.s, ld-arm/ifunc-10.dd, ld-arm/ifunc-10.gd,
ld-arm/ifunc-10.rd, ld-arm/ifunc-11.s, ld-arm/ifunc-11.dd,
ld-arm/ifunc-11.gd, ld-arm/ifunc-11.rd, ld-arm/ifunc-12.s,
ld-arm/ifunc-12.dd, ld-arm/ifunc-12.gd, ld-arm/ifunc-12.rd,
ld-arm/ifunc-13.s, ld-arm/ifunc-13.dd, ld-arm/ifunc-13.gd,
ld-arm/ifunc-13.rd, ld-arm/ifunc-14.s, ld-arm/ifunc-14.dd,
ld-arm/ifunc-14.gd, ld-arm/ifunc-14.rd, ld-arm/ifunc-15.s,
ld-arm/ifunc-15.dd, ld-arm/ifunc-15.gd, ld-arm/ifunc-15.rd,
ld-arm/ifunc-16.s, ld-arm/ifunc-16.dd, ld-arm/ifunc-16.gd,
ld-arm/ifunc-16.rd, ld-arm/ifunc-dynamic.ld,
ld-arm/ifunc-static.ld: New tests.
* ld-arm/farcall-group.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-mixed-lib-v4t.d, ld-arm/farcall-mixed-lib.d: Update
for new stub hashes.
* ld-arm/arm-elf.exp: Run them.

13 years agoinclude/elf/
Richard Sandiford [Mon, 14 Mar 2011 15:54:57 +0000 (14 15:54 +0000)]
include/elf/
* internal.h (elf_internal_sym): Add st_target_internal.
* arm.h (arm_st_branch_type): New enum.
(ARM_SYM_BRANCH_TYPE): New macro.

bfd/
* elf-bfd.h (elf_link_hash_entry): Add target_internal.
* elf.c (swap_out_syms): Set st_target_internal for each
Elf_Internal_Sym.
* elfcode.h (elf_swap_symbol_in): Likewise.
* elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
* elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
* elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
* elflink.c (elf_link_output_extsym): Likewise.
(bfd_elf_final_link): Likewise.
(elf_link_add_object_symbols): Copy st_target_internal
to the hash table if we see a definition.
(_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
* elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
a branch_type field.
(a8_erratum_fix, a8_erratum_reloc): Likewise.
(arm_type_of_stub): Replace actual_st_type with an
actual_branch_type parameter.
(arm_build_one_stub): Use branch types rather than st_types to
determine the type of branch.
(cortex_a8_erratum_scan): Likewise.
(elf32_arm_size_stubs): Likewise.
(bfd_elf32_arm_process_before_allocation): Likewise.
(allocate_dynrelocs_for_symbol): Likewise.
(elf32_arm_finish_dynamic_sections): Likewise.
(elf32_arm_final_link_relocate): Replace sym_flags parameter with
a branch_type parameter.
(elf32_arm_relocate_section): Update call accordingly.
(elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
(elf32_arm_output_map_sym): Initialize st_target_internal.
(elf32_arm_output_stub_sym): Likewise.
(elf32_arm_symbol_processing): Delete.
(elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
Use st_target_internal to record the branch type.
(elf32_arm_swap_symbol_out): Use st_target_internal to test for
Thumb functions.
(elf32_arm_is_function_type): Delete.
(elf_backend_symbol_processing): Likewise.
(elf_backend_is_function_type): Likewise.

gas/
* config/tc-arm.c (arm_adjust_symtab): Set the branch type
for Thumb symbols.

ld/
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
eh->target_internal.

opcodes/
* arm-dis.c (get_sym_code_type): Don't check for STT_ARM_TFUNC.
Use branch types instead.
(print_insn): Likewise.

13 years agobfd/
Richard Sandiford [Mon, 14 Mar 2011 15:53:57 +0000 (14 15:53 +0000)]
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
(elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
into the PLT block.

ld/
* emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
instead of dynamic_sections_created.

13 years agobfd/
Richard Sandiford [Mon, 14 Mar 2011 15:53:32 +0000 (14 15:53 +0000)]
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
may_need_local_target_p and may_become_dynamic_p to classify
the relocation type.  Don't check info->symbolic or h->def_regular
when deciding whether to record a potential dynamic reloc.
Don't treat potential dynamic relocs as PLT references.
(elf32_arm_gc_sweep_hook): Update to match.  Assert that we don't
try to make the PLT reference count go negative.

ld/testsuite/
* ld-arm/arm-lib-plt-2a.s, ld-arm/arm-lib-plt-2b.s,
ld-arm/arm-lib-plt-2.dd, ld-arm/arm-lib-plt-2.rd: New tests.
* ld-arm/arm-elf.exp: Run them.

13 years agobfd/
Richard Sandiford [Mon, 14 Mar 2011 15:52:51 +0000 (14 15:52 +0000)]
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
GOT entry here, rather than leaving it to finish_dynamic_symbol.
Only create a dynamic relocation for local references if
info->shared.
(allocate_dynrelocs_for_symbol): Update dynamic relocation
allocation accordingly.
(elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.

ld/testsuite/
* ld-arm/exec-got-1a.s, ld-arm/exec-got-1b.s, ld-arm/exec-got-1.d,
ld-arm/unresolved-1.s, ld-arm/unresolved-1.d,
ld-arm/unresolved-1-dyn.d: New tests.
* ld-arm/arm-elf.exp: Run them.

13 years agobfd/
Richard Sandiford [Mon, 14 Mar 2011 15:52:05 +0000 (14 15:52 +0000)]
bfd/
* elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
(elf32_arm_add_dynreloc): Likewise.
(elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
to allocate dynamic relocations.
(elf32_arm_size_dynamic_sections): Likewise.
(allocate_dynrelocs): Likewise.  Rename to
allocate_dynrelocs_for_symbol.
(elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
create dynamic relocations.
(elf32_arm_finish_dynamic_symbol): Likewise.

13 years ago * script-sections.cc (Sort_output_sections::script_compare):
Ian Lance Taylor [Mon, 14 Mar 2011 15:22:16 +0000 (14 15:22 +0000)]
* script-sections.cc (Sort_output_sections::script_compare):
Rename from is_before, change return type.
(Sort_output_sections::operator()): Adjust accordingly.

13 years agodaily update
Alan Modra [Sun, 13 Mar 2011 23:00:05 +0000 (13 23:00 +0000)]
daily update

13 years agodaily update
Alan Modra [Sat, 12 Mar 2011 23:00:05 +0000 (12 23:00 +0000)]
daily update

13 years agoSupport TLS x32 GD->IE, GD->LE and LD->LE transitions.
H.J. Lu [Sat, 12 Mar 2011 14:38:30 +0000 (12 14:38 +0000)]
Support TLS x32 GD->IE, GD->LE and LD->LE transitions.

bfd/

2011-03-12  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
x32 GD->IE and GD->LE transitions.
(elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
and LD->LE transitions.

ld/testsuite/

2011-03-12  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/tlsgd4.dd: New.
* ld-x86-64/tlsgd4.s: Likewise.
* ld-x86-64/tlsgd5.dd: Likewise.
* ld-x86-64/tlsgd5a.s: Likewise.
* ld-x86-64/tlsgd5b.s: Likewise.
* ld-x86-64/tlsgd6.dd: Likewise.
* ld-x86-64/tlsgd6a.s: Likewise.
* ld-x86-64/tlsgd6b.s: Likewise.
* ld-x86-64/tlsld2.dd: Likewise.
* ld-x86-64/tlsld2.s: Likewise.

* ld-x86-64/x86-64.exp (x86_64tests): Add tlsgd4, libtlsgd5.so,
tlsgd5, libtlsgd6.so, tlsgd6 and tlsld2.

13 years agodaily update
Alan Modra [Fri, 11 Mar 2011 23:00:05 +0000 (11 23:00 +0000)]
daily update

13 years ago PR gold/12572
Ian Lance Taylor [Fri, 11 Mar 2011 21:42:12 +0000 (11 21:42 +0000)]
PR gold/12572
* testsuite/odr_violation2.cc: Add comment to make all error line
numbers double digits.
* testsuite/debug_msg.sh: Adjust expected errors.

13 years ago * remap.c (remap_debug_filename): Always allocate a buffer for the
Nick Clifton [Fri, 11 Mar 2011 14:18:24 +0000 (11 14:18 +0000)]
* remap.c (remap_debug_filename): Always allocate a buffer for the
returned pointer.
* stabs.c (stabs_generate_asm_file): Free the pointer returned by
remap_debug_filename.

13 years agodaily update
Alan Modra [Thu, 10 Mar 2011 23:00:05 +0000 (10 23:00 +0000)]
daily update