binutils-gdb.git
12 years agodaily update
Alan Modra [Fri, 14 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Fri, 14 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoBi-endian patches for moxie
Anthony Green [Thu, 13 Sep 2012 22:24:51 +0000 (22:24 +0000)]
Bi-endian patches for moxie

12 years agoRefactor Python "gdb" module into a proper Python package, by introducing
Yit Phang Khoo [Thu, 13 Sep 2012 21:49:32 +0000 (21:49 +0000)]
Refactor Python "gdb" module into a proper Python package, by introducing
a new "_gdb" module for code implemented in C, and using reload/__import__
instead of exec.

gdb/

* python/lib/gdb/__init__.py: Import * from _gdb.
(GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
prompt_hook, sys.argv): Moved from finish_python_initialization.
(pretty_printers, PYTHONDIR): Moved from _initialize_python.
(packages, auto_load_packages): New list and function replacing
module_dict and auto-loading code, using __file__ instead of
gdb.PYTHONDIR and reload/__import__ instead of exec.
(GdbSetPythonDirectory): Replacing function of the same name
from finish_python_initialization, using reload/__import__ instead
of exec, as well as call auto_load_packages.
* python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
gdb_python_module and not gdb_module.
* python/python-internal.h (gdb_python_module): Declare.
* python/python.c (gdb_python_module): New global.
(before_prompt_hook): Check gdb_python_module and not gdb_module.
(_initialize_python): Rename gdb module to _gdb.
Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
(finish_python_initialization): Move Python code to
lib/gdb/__init__.py; instead, set up sys.path and import gdb into
__main__.

gdb/testsuite/

* gdb.python/python.exp (Test stderr location): Update module
location of GDB-specific sys.stderr.
(Test stdout location): Ditto for sys.stdout.

12 years agogdb/doc/
Jan Kratochvil [Thu, 13 Sep 2012 17:35:35 +0000 (17:35 +0000)]
gdb/doc/
* gdbint.texinfo (Defining Other Architecture Features): Clarify *pcptr
encoding for gdbarch_breakpoint_from_pc, bp_addr for
gdbarch_push_dummy_call and bp_addr for gdbarch_push_dummy_code.

12 years ago2012-09-13 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 13 Sep 2012 14:35:16 +0000 (14:35 +0000)]
2012-09-13  Pedro Alves  <palves@redhat.com>

* Makefile.in (COMMON_OBS): Add registry.o.
* registry.c: New file.
* registry.h (struct registry_container): Declare.
(registry_data_callback): New typedef.
(struct registry_data, struct registry_data_registration, struct
registry_data_registry): New type.
(register_data_with_cleanup, registry_alloc_data)
(registry_callback_adaptor, registry_clear_data)
(registry_container_free_data, registry_set_data, registry_data):
Declare.
(DEFINE_REGISTRY): Refactor structures and functions as shims over
the new common structures and functions.
(DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
callback typedefs.

12 years agoReally commit regenerated files.
Richard Earnshaw [Thu, 13 Sep 2012 11:09:02 +0000 (11:09 +0000)]
Really commit regenerated files.

12 years ago * v850.igen (W,WWWW): Correct computation of register number.
Nick Clifton [Thu, 13 Sep 2012 08:09:26 +0000 (08:09 +0000)]
* v850.igen (W,WWWW): Correct computation of register number.
(JR32): Remove unnecessary comma.
(cmovf.s): Register 0 is an invalid source register.
(maddf.s): Remove bogus intermediary rounding.
(nmaddf.s): Likewise.
(trncf.sl): Remove bogus initial rounding.
(trncf.dw): Likewise.
(trncf.sl): Likewise.
(trncf.sw): Likewise.

12 years agogdb/testsuite/
Jan Kratochvil [Thu, 13 Sep 2012 05:32:09 +0000 (05:32 +0000)]
gdb/testsuite/
* gdb.base/valgrind-infcall.exp: Remove comment about Ubuntu.

12 years ago*** empty log message ***
gdbadmin [Thu, 13 Sep 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 13 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago * gdb.cp/converts.cc (main): Comment out the pointer to boolean
Keith Seitz [Wed, 12 Sep 2012 23:29:05 +0000 (23:29 +0000)]
* gdb.cp/converts.cc (main): Comment out the pointer to boolean
conversion statement.

12 years ago2012-09-12 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 12 Sep 2012 22:56:05 +0000 (22:56 +0000)]
2012-09-12  Doug Kwan  <dougkwan@google.com>

* elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted
relocation for stub lookup.

12 years ago * target-reloc.h (scan_relocs): Call scan.local for relocs
Alan Modra [Wed, 12 Sep 2012 22:43:54 +0000 (22:43 +0000)]
* target-reloc.h (scan_relocs): Call scan.local for relocs
against symbols in discarded sections.  Pass is_discarded
param.
* arm.cc, * i386.cc, * sparc.cc, * x86_64.cc (Target_*::Scan::local):
Add is_discarded param.
* powerpc (Target_powerpc::Scan::local): Likewise.  Use
is_discarded to flag opd entry as discarded.  Don't emit dyn
relocs on such entries.
(Target_powerpc::Scan::global): Similarly detect and handle
such opd entries.
(Powerpc_relobj): Replace opd_ent_shndx_ and opd_ent_off_ with
opd_ent_.  Update all uses.
(Powerpc_relobj::get_opd_discard, set_opd_discard): New functions.
(Target_powerpc::relocate_section): Zero out discarded opd
entry relocs.

12 years ago* emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
DJ Delorie [Wed, 12 Sep 2012 21:28:04 +0000 (21:28 +0000)]
* emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.

12 years ago* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception if
Mike Wrighton [Wed, 12 Sep 2012 20:01:10 +0000 (20:01 +0000)]
* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception if
there is an error inserting hardware breakpoints and use the
error message from the target.

* gdb/breakpoint.c (insert_bp_location, insert_breakpoint_locations):
Catch this exception and print the error message contained within. Do not
print the default hardware error breakpoint message in this case.

12 years ago * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
Doug Evans [Wed, 12 Sep 2012 18:57:40 +0000 (18:57 +0000)]
* dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
cu == NULL.

12 years ago * gdb.base/help.exp: Remove testing of individual command help text,
Doug Evans [Wed, 12 Sep 2012 18:55:49 +0000 (18:55 +0000)]
* gdb.base/help.exp: Remove testing of individual command help text,
too much of a maintenance burden.  Instead, test the functionality
of "help" itself.

12 years ago PR gold/14570
Ian Lance Taylor [Wed, 12 Sep 2012 18:29:18 +0000 (18:29 +0000)]
PR gold/14570
* output.cc: Rename Output_data_got template parameter from size
to got_size for all functions.  Compile all variants of
Output_data_got.
(Output_data_got::Got_entry::write): Correct use of size for
symbol value.  Use local_is_tls rather than casting to
Sized_relobj_file.
* object.h (class Object): Add local_is_tls and do_local_is_tls.
(class Sized_relobj_file): Add do_local_is_tls.
* incremental.h (class Sized_relobj_incr): Add do_local_is_tls.

12 years ago2012-09-11 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
Richard Earnshaw [Wed, 12 Sep 2012 16:25:51 +0000 (16:25 +0000)]
2012-09-11  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>

bfd/

* bfd-in2.h: Regenerated.
* elf64-aarch64.c
(elf64_aarch64_howto_table): Add R_AARCH64_GOT_LD_PREL19 reloc to HOWTO.
(elf64_aarch64_reloc_map): Add reloc entry.
(aarch64_resolve_relocation): Likewise.
(bfd_elf_aarch64_put_addend): Likewise.
(aarch64_reloc_got_type): Likewise.
(elf64_aarch64_final_link_relocate): Likewise.
(lf64_aarch64_check_relocs): Likewise.
(elf64_aarch64_check_relocs): New case for R_AARCH64_ADR_PREL_LO21
reloc.
* libbfd.h: Regenerated.
* reloc.c (R_AARCH64_GOT_LD_PREL19): New reloc.

gas/

* config/tc-aarch64.c
(reloc_table): Add reloc to table entry.
(parse_address_main): Add support for #:<reloc_op>:<symbol>.
(parse_operands): Check for unused reloc.
(md_apply_fix): New case for reloc.
(aarch64_force_relocation): Likewise.

gas/testsuite

* gas/aarch64/reloc-insn.d
(BFD_RELOC_AARCH64_GOT_LD_PREL19): Add expected asm for new reloc test.
* gas/aarch64/reloc-insn.s
(BFD_RELOC_AARCH64_GOT_LD_PREL19): Add test for reloc.

include/

* elf/aarch64.h (R_AARCH64_GOT_LD_PREL19): New reloc.

ld/testsuite

* ld-aarch64/aarch64-elf.exp: New reloc tests.
* ld-aarch64/emit-relocs-309-low-bad.d: New file. Expected asm for test
failure (lower bound overflow).
* ld-aarch64/emit-relocs-309-low.d: New file. Expected asm for test
success (lower bound).
* ld-aarch64/emit-relocs-309-up-bad.d: New file. Expected asm for test
failure (upper bound overflow).
* ld-aarch64/emit-relocs-309-up.d: New file. Expected asm for test
success (upper bound).
* ld-aarch64/emit-relocs-309.s: New file. Asm for new reloc tests.

12 years ago*** empty log message ***
gdbadmin [Wed, 12 Sep 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 12 Sep 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
Doug Evans [Tue, 11 Sep 2012 22:42:22 +0000 (22:42 +0000)]
* dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
.gdb_index symbol attributes if there are none.

12 years ago * gdb.cp/mb-inline.exp: Do "info break" after setting multi-location
Doug Evans [Tue, 11 Sep 2012 21:37:04 +0000 (21:37 +0000)]
* gdb.cp/mb-inline.exp: Do "info break" after setting multi-location
breakpoint.

12 years agoName of symbol missing when printing global variable's address
Joel Brobecker [Tue, 11 Sep 2012 21:26:16 +0000 (21:26 +0000)]
Name of symbol missing when printing global variable's address

The build_address_symbolic funnction filters out data symbols if
their size is set to zero.  But the problem is that the COFF symbol
table (for instance) does not provide any size information, leaving
the size to its default value of zero, thus always triggering
the filter.

This shows up when trying to print the address of a global variable
when debugging a Windows executable, for instance.

gdb/ChangeLog:

        * symtab.h (struct minimal_symbol) [has_size]: New field.
        (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
        (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
        * printcmd.c (build_address_symbolic): Only filter out zero-sized
        minimal symbols if the symbol's size is actually known.
        * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
        of msymbol's size field.  Add comment.
        * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
        SET_MSYMBOL_SIZE to set the minimal symbol size.

12 years agoinstall_minimal_symbols: use memset instead of setting each field.
Joel Brobecker [Tue, 11 Sep 2012 21:26:04 +0000 (21:26 +0000)]
install_minimal_symbols: use memset instead of setting each field.

gdb/ChangeLog:

        * minsyms.c (install_minimal_symbols): Use memset to fill entire
        minimal_symbol struct object, rather than setting some of its
        fields one by one.

12 years ago PR gas/13503
Denis Chertykov [Tue, 11 Sep 2012 17:01:00 +0000 (17:01 +0000)]
PR gas/13503
* config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.

12 years ago * gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name.
Doug Evans [Tue, 11 Sep 2012 16:42:09 +0000 (16:42 +0000)]
* gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name.
* gdb.dwarf2/fission-reread.S: Ditto.
* gdb.dwarf2/fission-base.exp: Remove setting of debug-file-directory.
* gdb.dwarf2/fission-reread.exp: Ditto.

12 years agohttp://sourceware.org/ml/gdb-patches/2012-09/msg00013.html
Andrew Burgess [Tue, 11 Sep 2012 09:03:08 +0000 (09:03 +0000)]
sourceware.org/ml/gdb-patches/2012-09/msg00013.html

gdb/ChangeLog:
        * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
        passed_a_ptr flag when displaying typedef types.

gdb/testsuite/ChangeLog:
        * gdb.base/ptype.exp: Test ptype on a pointer to a typedef.

12 years ago * Makefile.am (bootstrap): Add $EXEEXT to dependency.
Alan Modra [Tue, 11 Sep 2012 00:39:02 +0000 (00:39 +0000)]
* Makefile.am (bootstrap): Add $EXEEXT to dependency.
* Makefile.in: Regenerate.

12 years ago PR gprof/13836
Alan Modra [Tue, 11 Sep 2012 00:03:43 +0000 (00:03 +0000)]
PR gprof/13836
* fsf_callg_bl.m: Fix typo.

12 years ago*** empty log message ***
gdbadmin [Tue, 11 Sep 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 11 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years agomissed from 2012-08-15 change
Alan Modra [Mon, 10 Sep 2012 23:57:09 +0000 (23:57 +0000)]
missed from 2012-08-15 change

12 years ago PR gold/14566
Alan Modra [Mon, 10 Sep 2012 23:10:41 +0000 (23:10 +0000)]
PR gold/14566
* layout.cc (Layout::set_segment_offsets): When using
common-page-size alignment, ensure we are on a new max-page-size
page.
* output.cc (Output_segment::set_section_addresses): Use
abi_pagesize, not common_pagesize for relro boundary.
(Output_segment::set_offset): Likewise.

12 years ago * output.h (Output_data_got::add_global_tls, add_local_tls,
Alan Modra [Mon, 10 Sep 2012 23:05:54 +0000 (23:05 +0000)]
* output.h (Output_data_got::add_global_tls, add_local_tls,
add_local_tls_pair): New functions.
(Output_data_got::add_local_pair_with_rel): Remove second
reloc param.  Expand comment.
(Output_data_got::Got_entry): Rename use_plt_offset_ to
use_plt_or_tls_offset_, similarly for constructor param.
(Output_data_got::Got_entry::write): Add got_index param.
* output.cc (Output_data_got::add_global_tls, add_local_tls,
add_local_tls_pair): New functions.
(Output_data_got::Got_entry::write): Handle tls symbols
with use_plt_or_tls_offset_ set specially.
(Output_data_got::add_local_pair_with_rel): Only one reloc.
(Output_data_got::do_write): Replace iterator with index, pass
index to entry write function.
* target.h (Target::tls_offset_for_local, tls_offset_for_global,
do_tls_offset_for_local, do_tls_offset_for_global): New functions.
* arm.cc (Target_arm::Scan::local): Update add_local_pair_with_rel
call.
* i386.cc (Target_i386::Scan::local): Likewise.
* sparc.cc (Target_sparc::Scan::local): Likewise.
* x86_64.cc (Target_x86_64::Scan::local): Likewise.
* powerpc.cc (Target_powerpc::do_tls_offset_for_local,
do_tls_offset_for_global): New functions.
(Target_powerpc::Scan::local): Correct TLS relocations and got
entry values.
(Target_powerpc::Scan::global): Don't emit unnecessary
dynamic relocations on TLS GOT entries.

12 years ago * config.in: Disable sanity check for kfreebsd.
Alan Modra [Mon, 10 Sep 2012 22:30:57 +0000 (22:30 +0000)]
* config.in: Disable sanity check for kfreebsd.

12 years agocrash printing optimized out variant type
Joel Brobecker [Mon, 10 Sep 2012 22:18:24 +0000 (22:18 +0000)]
crash printing optimized out variant type

Assuming the following declarations:

   type Discriminants_Record (A : Integer; B : Boolean) is record
      C : Float;
   end record;
   Z : Discriminants_Record := (A => 1, B => False, C => 2.0);

If variable Z is not used, and the compiler optimizes it out,
GDB would crash as follow:

    (gdb) print Z
    /[...]/gdb/valops.c:1121: internal-error: Unexpected lazy value type.

This is because the ada-lang module forgot to set the optimized_out
flag in the value returned by ada_evaluate_subexp during the value's
"fixing" process.  Later on, when trying to print the resulting value,
GDB finds that the value is still lazily allocated, and thus tries to
fetch it. But this is not allowed for not_lval values, hence the internal
error.

gdb/ChangeLog:

        * ada-lang.c (coerce_unspec_val_to_type): Make sure that
        the optimized_out flag is preserved.

gdb/testsuite/ChangeLog:

        * gdb.ada/optim_drec: New testcase.

12 years agoFix function prologue analyzer for moxie.
Anthony Green [Mon, 10 Sep 2012 21:16:43 +0000 (21:16 +0000)]
Fix function prologue analyzer for moxie.

12 years ago2012-09-10 Sterling Augustine <saugustine@google.com>
Sterling Augustine [Mon, 10 Sep 2012 19:16:33 +0000 (19:16 +0000)]
2012-09-10  Sterling Augustine  <saugustine@google.com>

* gdb-index.cc (Gdb_index::pubnames_read): New parameter.
(Gdb_index::pubtypes_read): New parameter.
(Gdb_index_info_reader::read_pubnames_and_pubtypes): Add parameters
to calls.
* gdb-index.h (Gdb_index): New fields pubnames_object_ and
pubtypes_object_.

12 years ago * boards/fission.exp: Explicitly mark "board" as not remote.
Doug Evans [Mon, 10 Sep 2012 17:48:11 +0000 (17:48 +0000)]
* boards/fission.exp: Explicitly mark "board" as not remote.

12 years ago PR gdb/13483
Keith Seitz [Mon, 10 Sep 2012 17:12:53 +0000 (17:12 +0000)]
PR gdb/13483
* gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
(BOOL_CONVERSION_BADNESS): ... this.
* gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
(rank_one_type): Allow all boolean conversions
permitted by the standard.

* gdb.cp/converts.cc (A::A): Add ctor.
(A::member_): Add member.
(enum my_enum): New enumeration.
(main): Add calls to foo1_7 with various
permitted arguments.
* gdb.cp/converts.exp: Add tests for boolean
conversions permitted by the standard.

12 years agoRegenerate binutils configure
H.J. Lu [Mon, 10 Sep 2012 17:00:44 +0000 (17:00 +0000)]
Regenerate binutils configure

bfd/

2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

binutils/

2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

etc/

2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

* Makefile.in (install-strip): New target.

gas/

2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

gold/

2012-09-09  Alan Modra  <amodra@gmail.com>

* target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions.

gprof/

2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

intl/

2010-06-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

PR bootstrap/44621

ld/

2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

libiberty/

2011-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* argv.c (dupargv): Replace malloc with xmalloc.  Don't check

opcodes/

2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>

* configure: Regenerated.

12 years ago * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
Alan Modra [Mon, 10 Sep 2012 14:35:07 +0000 (14:35 +0000)]
* configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
Correct whitespace.
(powerpcle-*-elf, et al): Likewise.  Correct targ_extra_emuls.

12 years ago * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
Iain Sandoe [Mon, 10 Sep 2012 09:59:07 +0000 (09:59 +0000)]
    * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
        and targ64_extra_libpath.
        (powerpcle-*-elf, et al): Likewise.

12 years agodaily update
Alan Modra [Mon, 10 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 10 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols
Hans-Peter Nilsson [Sun, 9 Sep 2012 16:31:12 +0000 (16:31 +0000)]
* ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols
to be emitted and checked.
* ld-mmix/data-1.s, ld-mmix/orph-.d, ld-mmix/orph-awp.d,
ld-mmix/orph-d-a.d, ld-mmix/orph-d-awn.d, ld-mmix/orph-d-awp.d,
ld-mmix/orph-d-awpe.d, ld-mmix/orph-d.d, ld-mmix/orph-dc-ap.d,
ld-mmix/orph-dc-awp.d, ld-mmix/orph-dc.d, ld-mmix/tm-ae.s,
ld-mmix/tm-ape.s, ld-mmix/tm-awne.s, ld-mmix/tm-awpe.s,
ld-mmix/tm-d-ap.s, ld-mmix/tm-d-awp.s, ld-mmix/tm-d.s,
ld-mmix/tm-e.s, ld-mmix/tm-orph1.s: New test files.

12 years ago * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
Hans-Peter Nilsson [Sun, 9 Sep 2012 16:30:40 +0000 (16:30 +0000)]
* emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
orphan sections to .data and .bss output sections, not just .text.
When giving up on finding a suitable output section, attach to any
output section other than .MMIX.reg_contents, if it exists.
* scripttempl/mmo.sc: Move output debug sections to just before
.MMIX.reg_contents.  Add .gnu.attributes.  Add new . = . NOP
assignments and move end-of-section provide-symbols after them
to force the end-of-section symbols to the address after orphan
placement.  Add SORT_NONE to .init and .fini sections.

12 years ago * target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions.
Alan Modra [Sun, 9 Sep 2012 03:43:51 +0000 (03:43 +0000)]
* target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions.
(Sized_target::gc_add_reference, do_gc_add_reference): New functions.
* gc.h (gc_process_relocs): Call target gc_add_reference.
* gold.cc (queue_middle_tasks): Use gc_mark_symbol on start sym.
* symtab.cc (Symbol_table::gc_mark_undef_symbols): Use gc_mark_symbol.
(Symbol_table::gc_mark_symbol): Call target gc_mark_symbol. Remove
unnecessary cast.
* powerpc.cc (Powerpc_relobj::get_opd_ent): Rearrange parameters
to cater for when we don't need code offset.  Update use.
(Powerpc_relobj::access_from_map_, opd_valid_): New vars.
(Powerpc_relobj::access_from_map, add_reference, opd_valid,
set_opd_valid): New functions.
(Target_powerpc::do_gc_add_reference): New function.
(Target_powerpc::gc_process_relocs): Call gc()->add_reference on
stashed refs.
(Target_powerpc::do_gc_mark_symbol): New function.

12 years ago*** empty log message ***
gdbadmin [Sun, 9 Sep 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 9 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago2012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu>
Yit Phang Khoo [Sat, 8 Sep 2012 05:29:21 +0000 (05:29 +0000)]
2012-09-08  Khoo Yit Phang  <khooyp@cs.umd.edu>

Replace -nw option with $INTERNAL_GDBFLAGS in "xgdb" tests to
avoid spurious results due to ~/.gdbinit.
* gdb.gdb/complaint.exp (setup_test): Replace -nw option with
$INTERNAL_GDBFLAGS in run command.
* gdb.gdb/observer.exp (setup_test): Ditto.
* gdb.gdb/selftest.exp (test_with_self): Ditto.
* gdb.gdb/xfullpath.exp (setup_test): Ditto.

12 years agoAdjust for branch target encoding change
Anthony Green [Sat, 8 Sep 2012 01:26:07 +0000 (01:26 +0000)]
Adjust for branch target encoding change

12 years agoChange moxie branch target encodings.
Anthony Green [Sat, 8 Sep 2012 01:20:28 +0000 (01:20 +0000)]
Change moxie branch target encodings.

12 years agodaily update
Alan Modra [Sat, 8 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 8 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-09-06 Cary Coutant <ccoutant@google.com>
Cary Coutant [Fri, 7 Sep 2012 20:14:10 +0000 (20:14 +0000)]
2012-09-06  Cary Coutant  <ccoutant@google.com>

gold/
* dwarf_reader.cc (Dwarf_die::read_attributes): Add
DW_FORM_GNU_addr_index and DW_FORM_GNU_str_index.
(Dwarf_die::skip_attributes): Likewise.
* object.cc (Read_symbols_data::~Read_symbols_data): Update comment.
* testsuite/gdb_index_test.cc (inline_func_1): New function.
(main): Call it.
* testsuite/gdb_index_test_comm.sh: Check index for inline function.

12 years ago2012-09-06 Cary Coutant <ccoutant@google.com>
Cary Coutant [Fri, 7 Sep 2012 01:22:21 +0000 (01:22 +0000)]
2012-09-06  Cary Coutant  <ccoutant@google.com>

binutils/
* dwarf.c (decode_location_expression): Add
DW_OP_GNU_const_index.

12 years ago*** empty log message ***
gdbadmin [Fri, 7 Sep 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 7 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago2012-09-06 Cary Coutant <ccoutant@google.com>
Cary Coutant [Thu, 6 Sep 2012 23:08:07 +0000 (23:08 +0000)]
2012-09-06  Cary Coutant  <ccoutant@google.com>

include/
* dwarf2.def: Edit comment.

12 years ago * boards/fission.exp: New file.
Doug Evans [Thu, 6 Sep 2012 20:39:48 +0000 (20:39 +0000)]
* boards/fission.exp: New file.

12 years ago * python/py-newobjfileevent.c (create_new_objfile_event_object):
Tom Tromey [Thu, 6 Sep 2012 20:14:13 +0000 (20:14 +0000)]
* python/py-newobjfileevent.c (create_new_objfile_event_object):
Don't decref py_objfile.

12 years ago(test_subscript_regression): Remove no longer necessary globals,
Doug Evans [Thu, 6 Sep 2012 17:57:41 +0000 (17:57 +0000)]
(test_subscript_regression): Remove no longer necessary globals,
from previous patch.

12 years ago * gdb.python/py-value.exp: Use clean_restart.
Doug Evans [Thu, 6 Sep 2012 17:52:38 +0000 (17:52 +0000)]
* gdb.python/py-value.exp: Use clean_restart.

12 years ago * doc/binutils.texi (nm): Alpha-sort the option descriptions.
Nick Clifton [Thu, 6 Sep 2012 15:41:30 +0000 (15:41 +0000)]
* doc/binutils.texi (nm): Alpha-sort the option descriptions.
Add description of the --synthetic option.

12 years ago2012-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 6 Sep 2012 08:23:25 +0000 (08:23 +0000)]
2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (set_highgprs_p): New variable.
(s390_machinemode): New function.
(md_pseudo_table): Add new pseudo command machinemode.
(md_parse_option): Set set_highgprs_p to TRUE if -mzarch was
specified on command line.
(s390_elf_final_processing): Set the highgprs flag in the ELF
header depending on set_highgprs_p.

* doc/c-s390.texi: Document new pseudo machinemode.

12 years agoAdd .got.plt output section statement
H.J. Lu [Thu, 6 Sep 2012 04:46:18 +0000 (04:46 +0000)]
Add .got.plt output section statement

* testsuite/script_test_3.t: Add .got.plt output section
statement.
* testsuite/script_test_4.t: Likewise.

12 years agodaily update
Alan Modra [Thu, 6 Sep 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Thu, 6 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * gdb.base/info-macros.c: Fix whitespace.
Doug Evans [Wed, 5 Sep 2012 18:20:53 +0000 (18:20 +0000)]
* gdb.base/info-macros.c: Fix whitespace.

12 years ago * doc/as.texinfo: Document -mvle.
James Lemke [Wed, 5 Sep 2012 18:19:55 +0000 (18:19 +0000)]
    * doc/as.texinfo: Document -mvle.
Missed with the original port commit.
Committed as obvious / trivial.

12 years ago* gas/doc/c-ppc.texi: Document -mvle.
James Lemke [Wed, 5 Sep 2012 18:01:00 +0000 (18:01 +0000)]
* gas/doc/c-ppc.texi: Document -mvle.
This was missing from the initial VLE port commit.
Committed as obvious / trivial.

12 years ago * powerpc.cc (Powerpc_relocate_functions): Upcase enum values,
Alan Modra [Wed, 5 Sep 2012 11:27:14 +0000 (11:27 +0000)]
* powerpc.cc (Powerpc_relocate_functions): Upcase enum values,
update all uses and lose "enum" when using type.

12 years ago * configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): False for powerpc.
Alan Modra [Wed, 5 Sep 2012 11:01:43 +0000 (11:01 +0000)]
* configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): False for powerpc.
* configure: Regenerate.
* testsuite/Makefile.am (final_layout.stdout): Pass --synthetic to nm.
(plugin_final_layout.stdout): Likewise.
(memory_test): Set page sizes to 0x1000.
* testsuite/Makefile.in: Regenerate.
* testsuite/discard_locals_test.sh: Add FIXME comment.
* testsuite/justsyms_exec.c: Disable function test for powerpc64.
* testsuite/pr14265.t: Add .got output section statement.
* testsuite/script_test_2.t: Likewise.
* testsuite/script_test_3.t: Likewise.
* testsuite/script_test_4.t: Likewise.
* testsuite/script_test_5.t: Likewise.
* testsuite/script_test_6.t: Likewise.
* testsuite/script_test_7.t: Likewise.
* testsuite/script_test_9.t: Likewise.

12 years ago * powerpc.cc (Powerpc_relobj::get_opd_ent): Make const.
Alan Modra [Wed, 5 Sep 2012 02:54:26 +0000 (02:54 +0000)]
* powerpc.cc (Powerpc_relobj::get_opd_ent): Make const.
(Powerpc_relocate_functions::Status): New typedef.
(Target_powerpc::Scan::get_reference_flags): Handle more relocs.
(Target_powerpc::Scan::local): Handle REL64.
(Target_powerpc::Scan::global): Likewise, and dynamic relocs
for REL32 and REL64.
(Target_powerpc::symval_for_branch): New function, extracted from..
(Target_powerpc::Relocate::relocate): ..here.  Correct plt call
checks.  Report overflow errors.

12 years ago * object.h (Sized_relobj_file::emit_relocs): Delete.
Alan Modra [Wed, 5 Sep 2012 00:34:20 +0000 (00:34 +0000)]
* object.h (Sized_relobj_file::emit_relocs): Delete.
(Sized_relobj_file::emit_relocs_reltype): Delete.
* reloc.cc (Sized_relobj_file::do_relocate_sections): Call target
relocate_relocs for --emit-relocs.
(Sized_relobj_file::emit_relocs, emit_relocs_reltype): Delete.
* output.h: Update comment.
(Output_segment::first_section): New function.
(Output_segment::first_section_load_address): Use first_section.
* output.cc (Output_segment::first_section): New function extracted..
(Output_segment::first_section_load_address): ..from here.  Delete.
* target-reloc.h (relocate_for_relocatable): Rename to relocate_relocs.
* target.h (Sized_target::relocate_for_relocatable): Likewise.
* arm.cc (Target_arm::relocate_for_relocatable): Likewise, and
adjust call to target.h function.
* i386.cc (Target_i386): Likewise.
* sparc.cc (Target_sparc): Likewise.
* x86_64.cc (Target_x86_64): Likewise.
* powerpc.cc (Target_powerpc): Likewise.
(Target_powerpc::Scan::local, global): Handle R_POWERPC_TLS.  Ensure
first tls section has section symbol for optimised local dynamic
output relocs.
(Target_powerpc::Relocate::relocate): Correct local dynamic value.
(Target_powerpc::relocate_relocs): Adjust relocs emitted for
optimised tls code.
* testsuite/testfile.cc (Target_test::relocate_for_relocatable):
Rename to relocate_relocs.  Update error message.

12 years agodaily update
Alan Modra [Wed, 5 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Wed, 5 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * linux-crisv32-low.c: Fix compile errors.
Hans-Peter Nilsson [Tue, 4 Sep 2012 23:54:41 +0000 (23:54 +0000)]
* linux-crisv32-low.c: Fix compile errors.

12 years ago2012-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Tue, 4 Sep 2012 21:40:46 +0000 (21:40 +0000)]
2012-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>

* configure.ac: Always link against dv-sockser.o.
* configure: Regenerate.

12 years agoAdd Intel Itanium Series 9500 support
H.J. Lu [Tue, 4 Sep 2012 13:52:06 +0000 (13:52 +0000)]
Add Intel Itanium Series 9500 support

bfd/

2012-09-04  Sergey A. Guriev <sergey.a.guriev@intel.com>

* cpu-ia64-opc.c (ins_cnt6a): New function.
(ext_cnt6a): Ditto.
(ins_strd5b): Ditto.
(ext_strd5b): Ditto.
(elf64_ia64_operands): Add new operand types.

gas/

2012-09-04  Sergey A. Guriev  <sergey.a.guriev@intel.com>

* config/tc-ia64.c (reg_symbol): Add a new register.
(indirect_reg): Ditto.
(pseudo_func): Add new symbolic constants.
(operand_match): Add new operand types recognition.
(operand_insn): Add new register recognition.
(md_begin): Add new register definition.
(specify_resource): Add new register recognition.

gas/testsuite/

2012-09-04  Sergey A. Guriev  <sergey.a.guriev@intel.com>

* gas/testsuite/gas/ia64/psn.d: New file.
* gas/testsuite/gas/ia64/psn.s: New file.
* gas/testsuite/gas/ia64/ia64.exp: Add new testcase.
* gas/testsuite/gas/ia64/opc-i.d: Fixed failing tests.
* gas/testsuite/gas/ia64/opc-m.d: Ditto.

include/opcode/

2012-09-04  Sergey A. Guriev <sergey.a.guriev@intel.com>

* ia64.h (ia64_opnd): Add new operand types.

opcodes/

2012-09-04  Sergey A. Guriev <sergey.a.guriev@intel.com>

* ia64-asmtab.h (completer_index): Extend bitfield to full uint.
* ia64-gen.c: Promote completer index type to longlong.
(irf_operand): Add new register recognition.
(in_iclass_mov_x): Add an entry for the new mov_* instruction type.
(lookup_specifier): Add new resource recognition.
(insert_bit_table_ent): Relax abort condition according to the
changed completer index type.
(print_dis_table): Fix printf format for completer index.
* ia64-ic.tbl: Add a new instruction class.
* ia64-opc-i.c (ia64_opcodes_i): Define new I-instructions.
* ia64-opc-m.c (ia64_opcodes_m): Define new M-instructions.
* ia64-opc.h: Define short names for new operand types.
* ia64-raw.tbl: Add new RAW resource for DAHR register.
* ia64-waw.tbl: Add new WAW resource for DAHR register.
* ia64-asmtab.c: Regenerate.

12 years agoIgnore section symbols without a BFD section
H.J. Lu [Tue, 4 Sep 2012 12:35:35 +0000 (12:35 +0000)]
Ignore section symbols without a BFD section

bfd/

PR binutils/14493
* elf.c (ignore_section_sym): Also ignore section symbols without
a BFD section.

binutils/

PR binutils/14493
* readelf.c (get_symbol_index_type): Check bad section index.

12 years ago* powerpc.cc (do_make_elf_object): Allow ET_EXEC files with
Andreas Schwab [Tue, 4 Sep 2012 08:04:31 +0000 (08:04 +0000)]
* powerpc.cc (do_make_elf_object): Allow ET_EXEC files with
--just-symbols.

12 years agogdb/gdbserver/
Yao Qi [Tue, 4 Sep 2012 01:47:49 +0000 (01:47 +0000)]
gdb/gdbserver/
* tracepoint.c (cmd_qtsv): Adjust debug message.
Don't check CUR_TPOINT.

12 years agodaily update
Alan Modra [Tue, 4 Sep 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Tue, 4 Sep 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Mon, 3 Sep 2012 12:03:48 +0000 (12:03 +0000)]
2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf_s390_relocate_section): Handle PLTOFF for
local and global ifunc symbols.
* elf64-s390.c (elf_s390_relocate_section): Likewise.

12 years ago PR sim/14540
Nick Clifton [Mon, 3 Sep 2012 10:13:11 +0000 (10:13 +0000)]
PR sim/14540
* armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction
is denied.

12 years agodaily update
Alan Modra [Mon, 3 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 3 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
Yit Phang Khoo [Sun, 2 Sep 2012 22:57:43 +0000 (22:57 +0000)]
2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>

Do not enable -lmcheck by default when Python is enabled with
threading support.
* configure.ac: (python_has_threads) New variable, by testing
if WITH_THREAD is defined in Python.h.
Move --enable-lmcheck after --with-python.
Do not enable -lmcheck by default if python_has_threads=yes.
Warn if --enable-lmcheck and python_has_threads=yes.
* configure: Regenerate.

12 years agoAdd hdynamic to elf_link_hash_table for _DYNAMIC
H.J. Lu [Sun, 2 Sep 2012 12:17:27 +0000 (12:17 +0000)]
Add hdynamic to elf_link_hash_table for _DYNAMIC

* elf-bfd.h (elf_link_hash_table): Add hdynamic for the
_DYNAMIC symbol.

* elflink.c (_bfd_elf_link_create_dynamic_sections): Set
hdynamic.

* elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Check
hdynamic instead of "_DYNAMIC".
* elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
* elf32-cr16.c (elf32_arm_finish_dynamic_symbol): Likewise.
* elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
* elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_convert_mov_to_lea): Likewise.
* elf32-lm32.c (lm32_elf_finish_dynamic_symbol): Likewise.
* elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
* elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
* elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
* elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
* elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
* elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
* elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
* elf64-aarch64.c elf64_aarch64_finish_dynamic_symbol(): Likewise.
* elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
* elf64-ia64-vms.c (elf64_ia64_finish_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
* elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
* elfnn-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
* elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.

* elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Check
hdynamic, hgot, hplt instead of _DYNAMIC, _GLOBAL_OFFSET_TABLE_,
_PROCEDURE_LINKAGE_TABLE_.
* elf32-score.c (s3_bfd_score_elf_finish_dynamic_symbol): Likewise.
* elf32-score7.c (s7_bfd_score_elf_finish_dynamic_symbol): Likewise.

12 years ago*** empty log message ***
gdbadmin [Sun, 2 Sep 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 2 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago PR gas/14521
Hans-Peter Nilsson [Sat, 1 Sep 2012 18:10:50 +0000 (18:10 +0000)]
PR gas/14521
* config/tc-mmix.h (tc_frob_file_before_fix): Renumber sections
after call to mmix_frob_file.

12 years ago PR gas/14521
Hans-Peter Nilsson [Sat, 1 Sep 2012 18:09:26 +0000 (18:09 +0000)]
PR gas/14521
* gas/mmix/group-1.d, gas/mmix/group-1.s: New test.

12 years ago2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
Yit Phang Khoo [Sat, 1 Sep 2012 03:14:15 +0000 (03:14 +0000)]
2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>

* MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".

12 years agoDon't optimize relocation against _DYNAMIC
H.J. Lu [Sat, 1 Sep 2012 02:50:14 +0000 (02:50 +0000)]
Don't optimize relocation against _DYNAMIC

bfd/

* elf32-i386.c (elf_i386_convert_mov_to_lea): Don't optimize
_DYNAMIC.
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.

ld/testsuite/

* ld-i386/i386.exp: Run mov1a, mov1b.
* ld-x86-64/x86-64.exp: Run mov1a, mov1b, mov1c, mov1d.

* ld-i386/mov1.s: New file.
* ld-i386/mov1a.d: Likewise.
* ld-i386/mov1b.d: Likewise.
* ld-x86-64/mov1.s: Likewise.
* ld-x86-64/mov1a.d: Likewise.
* ld-x86-64/mov1b.d: Likewise.
* ld-x86-64/mov1c.d: Likewise.
* ld-x86-64/mov1d.d: Likewise.