summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert inappropriate portions of last change.Roland McGrath2013-10-112-34/+34
|
* gold/Roland McGrath2013-10-113-4/+18
| | | | | | * configure.ac (TLS_GNU2_DIALECT): Use -Werror in test. (HAVE_PUBNAMES): Likewise. * configure: Regenerate.
* gold/Roland McGrath2013-10-113-62/+65
| | | | | * testsuite/Makefile.am: Replace '-T foo' with '-Wl,-T,foo' throughout. * testsuite/Makefile.in: Regenerate.
* gold/Roland McGrath2013-10-116-12/+22
| | | | | | | | | | | | * target.h (Target::adjust_elf_header, Target::do_adjust_elf_header): Remove const from declaration. * target.cc (Sized_target::do_adjust_elf_header): Update definition. * sparc.cc (Target_sparc::do_adjust_elf_header): Likewise. * output.h (Output_file_header): Remove const from member target_ and corresponding constructor argument. * output.cc (Output_file_header::Output_file_header): Update prototype. (Output_file_header::do_sized_write): Use this->target_ in place of parameters()->target().
* gold/Roland McGrath2013-10-112-1/+5
| | | | * testsuite/undef_symbol.cc (Foo::get_a): New method.
* gold/Roland McGrath2013-10-118-45/+101
| | | | | | | | | | | | | * configure.ac (MERGE_CONSTANTS_FLAG): New check. * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/merge_string_literals_1.c: Renamed to have .cc suffix. * testsuite/merge_string_literals_2.c: Likewise. * testsuite/Makefile.am (merge_string_literals_1.o, merge_string_literals_2.o): Update deps. (AM_CFLAGS, AM_CXXFLAGS): Use $(MERGE_CONSTANTS_FLAG) in place of literal -fmerge-constants. * testsuite/Makefile.in: Regenerate.
* gold/Roland McGrath2013-10-1115-71/+60
| | | | | | | | | | | | | | | | | | | | | | | * i386.cc (Target_i386): Remove unused member dynbss_. * arm.cc (Target_arm): Likewise. * powerpc.cc (Target_powerpc): Likewise. * sparc.cc (Target_sparc): Likewise. * tilegx.cc (Target_tilegx): Likewise. * x86_64.cc (Target_x86_64): Likewise. * dwarf_reader.h (Dwarf_info_reader): Remove unused members type_signature_, type_offset_. * plugin.h (Plugin_hook): Remove unused member layout_. * readsyms.h (Add_symbols): Remove unused members dirpath_, dirindex_, mapfile_. (Read_member): Remove unused members input_objects_, symtab_, mapfile_, layout_. (Check_library): Remove unused member symtab_. * archive.h (Lib_group): Remove unused member lib_. * archive.cc (Lib_group::Lib_group): Update initializer. * incremental.h (Incremental_binary): Remove unused member target_. (Incremental_script_entry): Removed unused member script_. * layout.h (Write_symbols_task): Remove unused member input_objects_. * icf.h (Icf): Remove unused member num_tracked_relocs.
* gold/Roland McGrath2013-10-113-3/+13
| | | | | | | * gold-threads.h (Once): Conditionalize member was_run_lock_ on [ENABLE_THREADS && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4], matching its only use. * gold-threads.cc (Once::Once): Likewise conditionalize initializer.
* gold/Roland McGrath2013-10-112-2/+7
| | | | | * archive.h: Use struct rather than class for forward declaration of Read_symbols_data.
* binutils/Roland McGrath2013-10-112-3/+6
| | | | | * winduni.c (languages): Use \345 (octal syntax) rather than literal non-ASCII/non-UTF8 character in string literal.
* binutils/Roland McGrath2013-10-112-21/+26
| | | | | * readelf.c (print_dynamic_symbol): Use array subscript syntax rather than addition syntax with string literal.
* * Removed short_hand field from opcode table andSean Keys2013-10-117-325/+328
| | | | | refactored assembler/disassember accordingly. Testsuite checkout OK.
* * gas/xgate/all_insns.d: Add com macro insn test.Sean Keys2013-10-113-35/+42
| | | | * gas/xgate/all_insns.s: Add com macro insn test.
* opcodes/Roland McGrath2013-10-112-20/+33
| | | | | | | * i386-dis.c (oappend_maybe_intel): New function. (OP_ST, OP_STi, append_seg, OP_I, OP_I64, OP_sI, OP_ESreg): Use it. (OP_C, OP_T, CMP_Fixup, OP_EX_VexImmW): Likewise. (VCMP_Fixup, VPCMP_Fixup, PCLMUL_Fixup): Likewise.
* daily updateAlan Modra2013-10-101-1/+1
|
* ld/Roland McGrath2013-10-102-2/+7
| | | | | * ldmisc.c (vfinfo): Use Boolean ? "" : ":" in place of ":" + Boolean. It silences some compilers' warnings and is much less bizarre to read.
* opcodes/Roland McGrath2013-10-103-13/+24
| | | | | | | * cr16-opc.c (REG): Cast NAME to 'reg' enum type to suppress possible compiler warnings when the union's initializer is actually meant for the 'preg' enum typed member. * crx-opc.c (REG): Likewise.
* opcodes/Roland McGrath2013-10-102-3/+8
| | | | | * v850-dis.c (v850_cacheop_codes, v850_prefop_codes): Remove duplicate const qualifier.
* gas/Jan Beulich2013-10-101-0/+5
| | | | | | | 2013-10-10 Jan Beulich <jbeulich@suse.com> * tc-i386-intel.c (i386_intel_simplify_register): Suppress base/index swapping for bndmk, bndldx, and bndstx.
* gas/Jan Beulich2013-10-101-0/+2
| | | | | | | 2013-10-10 Jan Beulich <jbeulich@suse.com> * tc-i386-intel.c (i386_intel_simplify_register): Suppress base/index swapping for bndmk, bndldx, and bndstx.
* daily updateAlan Modra2013-10-091-1/+1
|
* bfd/Roland McGrath2013-10-092-2/+7
| | | | | * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Cast switch expression to int to silence over-eager compiler warnings.
* ld/Roland McGrath2013-10-093-9/+11
| | | | | | * emultempl/elf32.em (id_note_section_size): Use ATTRIBUTE_UNUSED rather than a dummy assignment for unused parameter. * plugin.c (get_input_file, release_input_file): Likewise.
* bfd/Roland McGrath2013-10-092-2/+5
| | | | | * xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in loop that doesn't use (or initialize) it.
* bfd/Roland McGrath2013-10-092-3/+8
| | | | | * elfxx-tilegx.c (tilegx32_plt_tail_entry, tilegx32_plt_tail_entry): Move second const qualifier so it applies to the pointer.
* Fix typo in previous delta.Nick Clifton2013-10-091-0/+1
|
* PR gprof/16027Nick Clifton2013-10-093-3/+11
| | | | | * source.c (annotate_source): Close ifp. * corefile.c (read_function_mappings): Close file.
* PR ld/16028Nick Clifton2013-10-092-0/+6
| | | | * ldmain.c (add_keepsyms_file): Close file at end of function.
* PR binutils/16022Nick Clifton2013-10-092-15/+19
| | | | * elf32-rx.c (rx_dump_symtab): Add missing break statements.
* PR binutils/16023Nick Clifton2013-10-092-2/+5
| | | | * debug.c (debug_type_samep): Add missing break statement.
* PR binutils/16024Nick Clifton2013-10-092-6/+10
| | | | | | * objdump.c (usage): Mark as a no-return function. (main): Add comment explaining why a break statement is not needed.
* PR gas/16025Nick Clifton2013-10-092-1/+6
| | | | | * config/tc-epiphany.c (md_convert_frag): Add missing break statement.
* PR gas/16026Nick Clifton2013-10-092-2/+8
| | | | | * config/tc-mn10200.c (md_convert_frag): Add missing break statement.
* * opncls.c (get_alt_debug_link_info_shim): Update type of 'len'.Tom Tromey2013-10-092-1/+5
|
* PR ld/16021Nick Clifton2013-10-092-84/+6
| | | | | * elf32-rl78.c (rl78_dump_symtab): Delete. (rl78_get_reloc): Delete.
* bfdTom Tromey2013-10-093-3/+11
| | | | | | | | | * bfd-in2.h: Rebuild. * opncls.c (bfd_get_alt_debug_link_info): Change type of buildid_len to bfd_size_type. gdb * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in bfd_get_alt_debug_link_info.
* * dwarf.c (add64): New function.Nick Clifton2013-10-092-3/+39
| | | | | (read_and_display_attr_value): Add CU offset in to the value displayed for a DW_AT_ref8 attribute.
* bfd/ChangeLogSergio Durigan Junior2013-10-092-17/+69
| | | | | | | | 2013-10-09 Sergio Durigan Junior <sergiodj@redhat.com> PR binutils/15993 * elf32-m32c.c (dump_symtab): Add missing "break;" statement on each "case". Reindent "switch" statements.
* daily updateAlan Modra2013-10-081-1/+1
|
* fix PR symtab/15597Tom Tromey2013-10-083-10/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes gdb PR symtab/15597. The bug is that the .gnu_debugaltlink section includes the build-id of the alt file, but gdb does not use it. This patch fixes the problem by changing gdb to do what it ought to always have done: verify the build id of the file found using the filename in .gnu_debugaltlink; and if that does not match, try to find the correct debug file using the build-id and debug-file-directory. This patch touches BFD. Previously, gdb had its own code for parsing .gnu_debugaltlink; I changed it to use the BFD functions after those were introduced. However, the BFD functions are incorrect -- they assume that .gnu_debugaltlink is formatted like .gnu_debuglink. However, it it is not. Instead, it consists of a file name followed by the build-id -- no alignment, and the build-id is not a CRC. Fixing this properly is a bit of a pain. But, because separate_alt_debug_file_exists just has a FIXME for the build-id case, I did not fix it properly. Instead I introduced a hack. This leaves BFD working just as well as it did before my patch. I'm willing to do something better here but I could use some guidance as to what. It seems that the build-id code in BFD is largely punted on. FWIW gdb is the only user of bfd_get_alt_debug_link_info outside of BFD itself. I moved the build-id logic out of elfread.c and into a new file. This seemed cleanest to me. Writing a test case was a bit of a pain. I added a couple new features to the DWARF assembler to handle this. Built and regtested on x86-64 Fedora 18. * bfd-in2.h: Rebuild. * opncls.c (bfd_get_alt_debug_link_info): Add buildid_len parameter. Change type of buildid_out. Update. (get_alt_debug_link_info_shim): New function. (bfd_follow_gnu_debuglink): Use it. * Makefile.in (SFILES): Add build-id.c. (HFILES_NO_SRCDIR): Add build-id.h. * build-id.c: New file, largely from elfread.c. Modified most functions. * build-id.h: New file. * dwarf2read.c (dwarf2_get_dwz_file): Update for change to bfd_get_alt_debug_link_info. Verify dwz file's build-id. Search for dwz file using build-id. * elfread.c (build_id_bfd_get, build_id_verify) (build_id_to_debug_filename, find_separate_debug_file): Remove. * gdb.dwarf2/dwzbuildid.exp: New file. * lib/dwarf.exp (Dwarf::_section): Add "flags" and "type" parameters. (Dwarf::_defer_output): Change "section" parameter to "section_spec"; update. (Dwarf::gnu_debugaltlink, Dwarf::_note, Dwarf::build_id): New procs.
* * elf32-m68k.c (elf_m68k_size_dynamic_sections): Add DT_DEBUG alsoAndreas Schwab2013-10-082-2/+7
| | | | for PIE executables.
* gas/Jan Beulich2013-10-082-14/+13
| | | | | | | 2013-10-08 Jan Beulich <jbeulich@suse.com> * tc-i386.c (check_word_reg): Remove misplaced "else". (check_long_reg): Restore symmetry with check_word_reg.
* opcodes/Jan Beulich2013-10-083-26/+33
| | | | | | | | | 2013-10-08 Jan Beulich <jbeulich@suse.com> * i386-opc.tbl (invlpg): Use Anysize instead of Unspecified. (clflush): Use Anysize instead of Byte|Unspecified. (prefetch*): Likewise. * i386-tbl.h: Re-generate.
* 2013-10-08 Jan-Benedict Glaw <jbglaw@lug-owl.de>Jan-Benedict Glaw2013-10-083-2/+7
| | | | | * configure.ac: Update from GCC. * configure: Regenerate.
* gas/Jan Beulich2013-10-085-5/+23
| | | | | | | | | | | | | 2013-10-08 Jan Beulich <jbeulich@suse.com> * gas/config/tc-arm.c (do_t_push_pop): Honor inst.size_req. Simplify LR/PC check. gas/testsuite/ 2013-10-08 Jan Beulich <jbeulich@suse.com> * gas/arm/thumb-w-good.s: Add PUSH.W and POP.W tests. * gas/arm/thumb-w-good.d: Update accordingly.
* * config/tc-msp430.c (msp430_operands): Accept "<foo>.a" as an aliasNick Clifton2013-10-089-46/+175
| | | | | | | | | | | | | for "<foo>a". Issue error messages for unrecognised or corrrupt size extensions. * gas/msp430/bad.s: New test: Checks erroneous size extensions. * gas/msp430/bad.d: New test command file. * gas/msp430/bad.l: New file: Expected error messages. * gas/msp430/msp430.exp: Run the new test. * gas/msp430/msp430x.s: Add "<foo>.a" aliases of "<foo>a" instructions. * gas/msp430/msp430x.d: Update expected disassembly.
* daily updateAlan Modra2013-10-071-1/+1
|
* 2013-10-07 Chao-ying Fu <Chao-ying.Fu@imgtec.com>Chao-ying Fu2013-10-072-4/+8
| | | | * gas/mips/micromips@virt64.d: Fix dmfgc0 and dmtgc0.
* 2013-10-07 Chao-ying Fu <Chao-ying.Fu@imgtec.com>Chao-ying Fu2013-10-072-4/+8
| | | | * micromips-opc.c (micromips_opcodes): Fix dmfgc0 and dmtgc0.
* gold/Cary Coutant2013-10-073-17/+31
| | | | | | | | | PR gold/16010 * testsuite/Makefile.am (icf_test): Fix dependencies. (icf_safe_test): Likewise. (icf_safe_so_test): Likewise. (large_symbol_alignment): Add empty _LDADD rule. * testsuite/Makefile.in: Regenerate.