H.J. Lu
b115cf96d3
Avoid buffer overflow.
...
2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (decode_arm_unwind): Increase buf size to 9 byte.
2010-03-18 17:46:19 +00:00
Alan Modra
8f73510c49
warning fixes
2010-03-17 07:57:06 +00:00
Daniel Jacobowitz
99164030b9
* MAINTAINERS: Update my email address. List Tristan Gingold
...
as the release branch maintainer.
2010-03-16 14:02:44 +00:00
Rainer Orth
44ec90b93b
include:
...
* elf/common.h (VER_FLG_*): Document.
(VER_FLG_INFO): Define.
gold:
* dynobj.h (Verdef::Verdef): Add is_info arg, is_info member
function, is_info_ member.
* dynobj.cc (Verdef::write): Set VER_FLG_INFO if this->is_info_.
(Versions::Versions): Update caller.
(Versions::define_base_version): Likewise.
(Versions::add_def): Likewise.
elfcpp:
* elfcpp.h (VER_FLG_INFO): Define.
binutils:
* readelf.c (get_ver_flags): Handle VER_FLG_INFO.
2010-03-05 21:04:59 +00:00
Daniel Jacobowitz
0b6ae52290
* NEWS: Document .ARM.exidx / .ARM.extab support.
...
* dwarf.c (read_leb128): Make non-static.
* dwarf.h (read_leb128): Declare.
* readelf.c (REMOVE_ARCH_BITS): Define.
(find_section_by_address): New.
(read_uleb128): Move higher. Use read_leb128 from dwarf.c.
(find_symbol_for_address): Handle the Thumb bit for ARM, by
using REMOVE_ARCH_BITS.
(struct arm_section, struct arm_unw_aux_info, arm_print_vma_and_name)
(arm_free_section, arm_section_get_word, decode_arm_unwind)
(dump_arm_unwind, arm_process_unwind): New.
(process_unwind): Handle ARM.
2010-03-02 16:44:34 +00:00
Jie Zhang
92fc7b4f62
* MAINTAINERS: Update my email address.
2010-02-26 15:33:43 +00:00
Nick Clifton
826fec2f76
PR binutils/11298
...
* doc/binutils.texi (windmc): Fix synopsis and description of
ASCII options.
2010-02-23 13:01:48 +00:00
Alan Modra
220453ec97
* readelf.c (get_group_flags): Return empty string when flags zero.
...
Add space in other returned values.
(process_section_groups): Adjust format string.
2010-02-19 01:36:39 +00:00
Matthew Gretton-Dann
cd21e5460f
* bfd/elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
...
merging Tag_DIV_use, Tag_MPextension_use, and
Tag_MPextension_use_legacy tags.
* binutils/readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add
description of newly permitted attribute values.
(arm_attr_tag_Virtualization_use): Likewise.
(arm_attr_tag_DIV_use): Add description of new attribute.
(arm_attr_tag_MPextension_use_legacy): Likewise.
* gas/config/tc-arm.c (arm_convert_symbolic_attribute):
Add Tag_DIV_use.
* gas/doc/c-arm.texi: Likewise.
* gas/testsuite/gas/arm/attr-order.d: Fix test for new names for
attribute values.
* include/elf/arm.h (Tag_MPextension_use): Renumber.
(Tag_DIV_use): Add.
(Tag_MPextension_use_legacy): Likewise.
* ld/testsuite/ld-arm/attr-merge-3.attr: Fix test for new attribute
values.
* ld/testsuite/ld-arm/attr-merge-3b.s: Likewise.
* ld/testsuite/ld-arm/attr-merge-unknown-1.d: Fix test now that 42
is a recognised attribute ID.
* ld/testsuite/ld-arm/attr-merge-unknown-1.s: Likewise.
* ld/testsuite/ld-arm/attr-merge-6.attr: New test.
* ld/testsuite/ld-arm/attr-merge-6a.s: Likewise.
* ld/testsuite/ld-arm/attr-merge-6b.s: Likewise.
* ld/testsuite/ld-arm/attr-merge-7.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-7a.s: Likewise.
* ld/testsuite/ld-arm/attr-merge-7b.s: Likewise.
* ld/testsuite/ld-arm/arm-elf.exp: Run the new tests.
2010-02-18 10:56:28 +00:00
Alan Modra
b2fc24d469
* binutils-all/group-5.s, * binutils-all/group-5.d: New test.
...
* binutils-all/objcopy.exp: Run it.
2010-02-18 00:13:30 +00:00
Nick Clifton
ab7875de80
Updated Vietnamese translation.
2010-02-15 10:09:39 +00:00
Martin Schwidefsky
d7eeb40064
bfd/
...
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
* elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
(elfcore_write_register_note): Handle .reg-s390-timer,
.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
.reg-s390-prefix section.
binutils/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
include/elf/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* common.h (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG,
NT_S390_CTRS and NT_S390_PREFIX): Define.
2010-02-09 12:14:43 +00:00
Jim Blandy
d80e8de27f
* dwarf.c (display_debug_frames): Skip the 'S' character in CFI
...
'z' augmentation strings.
2010-02-08 19:27:34 +00:00
Nick Clifton
bb7c70edcc
* objdump.c (disassemble_bytes): Clear aux->reloc before printing
...
a new address, so as not to reuse a previous, non-related reloc.
* gas/arm/arm-it-auto.d, gas/arm/bl-local-v4t.d,
gas/arm/blx-local.d, gas/arm/thumb-w-good.d: Update expected
results.
2010-02-08 14:33:22 +00:00
H.J. Lu
4339cae0bb
Add NT_386_XSTATE.
...
bfd/
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (elfcore_write_xstatereg): New.
* elf.c (elfcore_grok_xstatereg): New.
(elfcore_write_xstatereg): Likewise.
(elfcore_grok_note): Handle NT_X86_XSTATE.
(elfcore_write_register_note): Handle .reg-xstate section.
binutils/
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (get_note_type): Handle NT_X86_XSTATE.
include/elf/
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* common.h (NT_386_XSTATE): New.
2010-02-02 12:37:40 +00:00
Nathan Sidwell
0930eddd65
* objcopy.c (copy_object): Set SEC_LINKER_CREATED when adding
...
sections.
testsuite/
* binutils-all/note-1.d: New.
* binutils-all/objcopy.exp: Add it.
2010-02-01 09:59:46 +00:00
Dave Korn
d7e5ec692f
binutils/testsuite/ChangeLog:
...
* binutils-all/windres/html.rc: Don't xfail x86_64-*-mingw*.
* binutils-all/windres/lang.rc: Likewise.
* binutils-all/windres/messagetable.rc: Likewise.
* binutils-all/windres/strtab1.rc: Likewise.
* binutils-all/windres/strtab2.rc: Likewise.
* binutils-all/windres/version.rc: Likewise.
* binutils-all/windres/version_cat.rc: Likewise.
2010-01-30 16:13:34 +00:00
Nick Clifton
70ecb3842d
PR 11225
...
* objdump.c (only): Replace with linked list.
(only_size, only_used): Replace with only_list.
(process_section_p): Set seen field on matches sections.
(add_only): New function.
(free_only_list): New function.
(disassemble_section): Check only_list.
(main): Use add_only and free_only_list.
* gas/pe/aligncomm-c.d: Dump all sections.
* ld-sh/refdbg-0-dso.d: Dump all sections.
2010-01-28 15:25:20 +00:00
Tristan Gingold
571f7b5e51
2010-01-26 Tristan Gingold <gingold@adacore.com>
...
* Makefile.am (bin2c): Add libintl dependance and library.
* Makefile.in: Regenerate.
2010-01-26 13:13:33 +00:00
Andreas Krebbel
55786da2bf
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
...
* readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390.h (EF_S390_HIGH_GPRS): Added macro definition.
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (s390_elf_final_processing): New function.
* config/tc-s390.h (elf_tc_final_processing): New macro definition.
(s390_elf_final_processing): Added prototype.
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
(bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
2010-01-21 11:40:28 +00:00
Ian Lance Taylor
500ee42ee0
binutils/:
...
* objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work
with non-ordinary files like /dev/null.
binutils/testsuite/:
* lib/utils-lib.exp (run_dump_test): Permit option values to use
$srcdir to refer to the source directory.
* binutils-all/add-section.d: New test.
* binutils-all/add-empty-section.d: New test.
* binutils-all/empty-file: New test input file.
* binutils-all/objcopy.exp: Run new tests.
2010-01-20 00:09:13 +00:00
Alan Modra
2046a35d20
* readelf.c (process_file_header): Handle e_phnum extension.
2010-01-19 13:51:29 +00:00
H.J. Lu
1472ddb3eb
Remove duplicated entries.
2010-01-15 17:30:16 +00:00
Tristan Gingold
60a0e0e75c
2010-01-14 Tristan Gingold <gingold@adacore.com>
...
* dwarf.c (get_AT_name): Handle DW_AT_use_GNAT_descriptive_type
and DW_AT_GNAT_descriptive_type.
2010-01-14 09:19:56 +00:00
Tristan Gingold
fd3a68167e
2010-01-13 Tristan Gingold <gingold@adacore.com>
...
* ar.c (main): Use lbasename.
(normalize): Ditto.
* objdump.c (update_source_path): Ditto.
2010-01-13 11:15:52 +00:00
Tristan Gingold
6cdb8d8291
bfd/
...
2010-01-12 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Turns warnings into informational messages.
binutils/
2010-01-12 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Turns warnings into informational messages.
2010-01-12 10:16:50 +00:00
H.J. Lu
2c610e4b46
Add --dyn-syms to readelf
...
binutils/
2010-01-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11146
* NEWS: Mention --dyn-syms for readelf.
* readelf.c (do_dyn_syms): New.
(OPTION_DYN_SYMS): Likewise.
(options): Add "dyn-syms".
(usage): Add --dyn-syms.
(parse_args): Handle OPTION_DYN_SYMS.
(process_symbol_table): Handle do_dyn_syms.
(process_object): Likewise.
(process_archive): Likewise.
* doc/binutils.texi: Document --dyn-syms for readelf. Mention
symbol hash tables for -D.
ld/testsuite/
2010-01-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11146
* ld-elf/dynsym1.d: New.
2010-01-11 14:45:42 +00:00
Nick Clifton
d2420a8c62
* NEWS: Mention addition of elfedit.
2010-01-11 12:40:45 +00:00
Nick Clifton
20703056f3
* po/fi.po: Updated Finnish translation.
2010-01-11 12:35:12 +00:00
Ralf Wildenhues
3725885a65
Sync Libtool from GCC.
...
/:
* libtool.m4: Sync from git Libtool.
* ltmain.sh: Likewise.
* ltoptions.m4: Likewise.
* ltversion.m4: Likewise.
* lt~obsolete.m4: Likewise.
sim/iq2000/:
* configure: Regenerate.
sim/d10v/:
* configure: Regenerate.
sim/m32r/:
* configure: Regenerate.
sim/frv/:
* configure: Regenerate.
sim/:
* avr/configure: Regenerate.
* cris/configure: Regenerate.
* microblaze/configure: Regenerate.
sim/h8300/:
* configure: Regenerate.
sim/mn10300/:
* configure: Regenerate.
sim/erc32/:
* configure: Regenerate.
sim/arm/:
* configure: Regenerate.
sim/m68hc11/:
* configure: Regenerate.
sim/lm32/:
* configure: Regenerate.
sim/sh64/:
* configure: Regenerate.
sim/v850/:
* configure: Regenerate.
sim/cr16/:
* configure: Regenerate.
sim/moxie/:
* configure: Regenerate.
sim/m32c/:
* configure: Regenerate.
sim/mips/:
* configure: Regenerate.
sim/mcore/:
* configure: Regenerate.
sim/sh/:
* configure: Regenerate.
gprof/:
* Makefile.in: Regenerate.
* configure: Regenerate.
opcodes/:
* Makefile.in: Regenerate.
* configure: Regenerate.
gas/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
ld/:
* configure: Regenerate.
gdb/testsuite/:
* gdb.cell/configure: Regenerate.
binutils/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
bfd/:
* Makefile.in: Regenerate.
* configure: Regenerate.
bfd/doc/:
* Makefile.in: Regenerate.
2010-01-09 21:11:44 +00:00
H.J. Lu
5256a5b03f
Change to "Copyright 2010".
2010-01-08 19:40:08 +00:00
H.J. Lu
dd35de7434
Add --input-type and --output-type to elfedit
...
binutils/
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (input_elf_type): New.
(output_elf_type): Likewise.
(elf_type): Likewise.
(update_elf_header): Support updating ELF file type.
(command_line_switch): Add OPTION_INPUT_TYPE and
OPTION_OUTPUT_TYPE.
(options): Likewise.
(usage): Add --input-type and --output-type.
(main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE. Check
one of --output-mach and --output-type must be specified.
* doc/binutils.texi: Document --input-type and --output-type
for elfedit.
binutils/testsuite/
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/elfedit-2.d: New.
* binutils-all/elfedit.exp: Run elfedit-2.
2010-01-08 18:50:39 +00:00
H.J. Lu
c7a795f842
Fix a typo
...
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* doc/binutils.texi: Fix a typo.
2010-01-08 17:23:05 +00:00
H.J. Lu
2dc654c3e9
Don't change input_elf_XXX if they are -1
...
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (update_elf_header): Don't change input_elf_class
nor input_elf_machine if they are -1.
2010-01-08 15:58:08 +00:00
Tristan Gingold
2ad0e9f140
2010-01-08 Tristan Gingold <gingold@adacore.com>
...
* ar.c: Remove bfd_special_undocumented_glue prototype.
2010-01-08 11:14:29 +00:00
H.J. Lu
71a72a8462
Reformat elfedit.c
...
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (update_elf_header): Reformat.
2010-01-07 20:49:23 +00:00
H.J. Lu
3f08eb3589
Fix indent for --symbols in "readelf -h"
...
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (usage): Fix indent for --symbols.
2010-01-07 19:14:33 +00:00
H.J. Lu
ed22650ea5
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
...
* doc/binutils.texi: Replace -histogram with --histogram.
2010-01-07 18:36:38 +00:00
H.J. Lu
30fd33bb93
Add elfedit
...
binutils/
2010-01-06 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11131
* Makefile.am (ELFEDIT_PROG): New.
(bin_PROGRAMS): Add $(ELFEDIT_PROG).
(CFILES): Add elfedit.c.
(elfedit_DEPENDENCIES): New.
(elfedit_SOURCES): Likewise.
(elfedit_LDADD): Likewise.
* Makefile.in: Regenerated.
* elfedit.c: New.
* doc/binutils.texi: Document elfedit.
* doc/Makefile.am (man_MANS): Add elfedit.1.
(elfedit.1): New.
* doc/Makefile.in: Regenerated.
binutils/testsuite/
2010-01-06 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11131
* binutils-all/elfedit-1.d: New.
* binutils-all/elfedit.exp: Likewise.
* config/default.exp (ELFEDIT): New. Set if it doesn't exist.
(ELFEDITFLAGS): Likewise.
* lib/utils-lib.exp (run_dump_test): Support elfedit.
2010-01-06 16:52:15 +00:00
Tristan Gingold
d2ca6b5b42
2010-01-06 Tristan Gingold <gingold@adacore.com>
...
* nm.c (usage): Remove extra blanks.
Update copyright.
2010-01-06 08:48:19 +00:00
H.J. Lu
a0f1928042
Update copyright
...
2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
* objcopy.c: Update copyright.
* readelf.c: Likewise.
2010-01-05 00:41:54 +00:00
H.J. Lu
c1e2cb9d8c
Remove "Warning: " from error message
...
2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11130
* objcopy.c (copy_object): Remove "Warning: " from error
message.
2010-01-05 00:39:47 +00:00
Nick Clifton
c975cc9881
PR 11128
...
* readelf.c (dump_section_as_strings): Use two separate
invocations of printf() in order to work around bugs in
the Solaris 8 implementation.
2010-01-04 13:39:58 +00:00
Nick Clifton
619c8a7d09
Updated Russian translation.
2010-01-04 10:26:44 +00:00
H.J. Lu
43ecc30f09
Move 2009 binutils ChangeLog to ChangeLog-2009.
2010-01-01 18:06:10 +00:00
Nick Clifton
a6da20b52c
* objcopy.c (add_redefine_syms_file): Avoid symbol buffer
...
overrun.
2009-12-31 14:40:36 +00:00
Alan Modra
ebc5095a6c
* MAINTAINERS: Update my email address.
2009-12-21 10:21:16 +00:00
Ulrich Weigand
0675e18865
include/elf/
...
* common.h (NT_S390_HIGH_GPRS): Define.
bfd/
* elf.c (elfcore_grok_s390_high_gprs): New function.
(elfcore_grok_note): Handle NT_S390_HIGH_GPRS notes.
(elfcore_write_s390_high_gprs): New function.
(elfcore_write_register_note): Call it.
binutils/
* readelf.c (get_note_type): Handle NT_S390_HIGH_GPRS notes.
2009-12-18 16:21:51 +00:00
Nick Clifton
91d6fa6a03
Add -Wshadow to the gcc command line options used when compiling the binutils.
...
Fix up all warnings generated by the addition of this switch.
2009-12-11 13:42:17 +00:00
Tristan Gingold
68cdf72f1e
2009-12-10 Tristan Gingold <gingold@adacore.com>
...
* addr2line.c (pretty_print): New variable.
(long_options): Add an entry for -p/--pretty-print.
(usage): Document -p/--pretty-print.
(translate_addresses): Handle pretty_print. Reindent.
(main): Handle option -p.
* doc/binutils.texi (addr2line): Document -p/--pretty-print.
* NEWS: Mention new feature.
2009-12-10 16:12:33 +00:00