* ar.c (long_options): Add target.
[binutils.git] / binutils / ChangeLog
blob6ce7950e295aa09d57c9b877e13b81b020ad11f3
1 2010-12-08  Arnaud Lacombe  <lacombar@gmail.com>
3         * ar.c (long_options): Add target.
4         (decode_options): Handle the --target option.
5         (open_inarch): Check for plugin's target, default to --target
6         (replace_members): Use generic `target'.
8         * ar.c (operation): New global variable.
9         (show_version): Likewise.
10         (show_help): Likewise.
11         (long_options): Likewise.
12         (usage): Fix help string argument order.
13         (decode_options): New.
14         (ranlib_main): Use getopt_long.
15         (main): Use decode_options.
17         * ar.c (main): Split ranlib path.
18         (ranlib_usage): New
19         (ranlib_main): New
21 2010-12-03  Doug Evans  <dje@google.com>
23         * dwarf.c: #include "bfd_stdint.h".
24         (do_gdb_index): New global.
25         (display_gdb_index): New function.
26         (dwarf_select_sections_by_names) Add "gdb_index".
27         (dwarf_select_sections_all): Set do_gdb_index.
28         (debug_displays): Add .gdb_index.
29         * dwarf.h (do_gdb_index): Declare.
30         * objdump.c (usage): Add gdb_index.
31         * readelf.c (usage): Add gdb_index.
32         (process_section_headers): Process ".gdb_index".
33         * doc/binutils.texi (readelf): Document gdb_index dump.
34         (objdump): Ditto.
36 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
38         PR binutils/11065
39         * dlltool.c (dll_name_set_by_exp_name): New variable.
40         (def_name): Allow setting of dll_name by .def file.
41         (def_library): Likewise.
42         (main): Set dll_name_set_by_exp_name, if dll_name is
43         set indirect by exp_name.
45 2010-11-26  Alan Modra  <amodra@gmail.com>
47         * dwarf.c (decode_location_expression, display_debug_frames): Move
48         code handling DW_EH_PE_pcrel into..
49         (get_encoded_value): ..here.
51 2010-11-26  Alan Modra  <amodra@gmail.com>
53         * po/ja.po: Update.
55 2010-11-25  Alan Modra  <amodra@gmail.com>
57         * po/bg.po: Update.
58         * po/es.po: Update.
59         * po/fi.po: Update.
60         * po/ja.po: Update.
61         * po/ru.po: Update.
62         * po/zh_CN.po: Update.
64 2010-11-21  H.J. Lu  <hongjiu.lu@intel.com>
66         PR binutils/12235
67         * elfcomm.c: New.
68         * elfcomm.h: Likewise.
70         * Makefile.am (HFILES): Add elfcomm.h.
71         (CFILES): Add elfcomm.c.
72         (ELFLIBS): New.
73         (readelf_SOURCES): Add $(ELFLIBS).
74         (elfedit_SOURCES): Likewise.
75         (objdump_SOURCES): Likewise.
76         * Makefile.in: Regenerated.
78         * dwarf.c: Include "elfcomm.h".
79         (byte_get): Removed.
80         (byte_get_little_endian): Likewise.
81         (byte_get_big_endian): Likewise.
82         (byte_get_signed): Likewise.
83         (error): Likewise.
84         (warn): Likewise.
86         * dwarf.h (dwarf_vma): Defined with HOST_WIDEST_INT.
87         (dwarf_size_type): Likewise.
88         (byte_get): Removed.
89         (byte_get_signed): Likewise.
90         (byte_get_little_endian): Likewise.
91         (byte_get_big_endian): Likewise.
92         (error): Likewise.
93         (warn): Likewise.
95         * elfedit.c: Include "elfcomm.h".  Don't include "aout/ar.h".
96         Call error () instead of non_fatal ().
97         (streq): Removed.
98         (strneq): Likewise.
99         (const_strneq): Likewise.
100         (non_fatal): Likewise.
101         (BYTE_GET): Likewise.
102         (BYTE_PUT): Likewise.
103         (byte_get): Likewise.
104         (byte_put): Likewise.
105         (byte_get_little_endian): Likewise.
106         (byte_get_big_endian): Likewise.
107         (byte_put_little_endian): Likewise.
108         (byte_put_big_endian): Likewise.
109         (adjust_relative_path): Likewise.
110         (archive_info): Likewise.
111         (setup_archive): Likewise.
112         (release_archive): Likewise.
113         (setup_nested_archive): Likewise.
114         (get_archive_member_name): Likewise.
115         (get_archive_member_name_at): Likewise.
116         (make_qualified_name): Likewise.
118         * objdump.c: Include "elfcomm.h".
120         * readelf.c: Include "elfcomm.h".  Don't include "aout/ar.h".
121         (BYTE_GET): Removed.
122         (BYTE_GET_SIGNED): Removed.
123         (streq): Likewise.
124         (strneq): Likewise.
125         (const_strneq): Likewise.
126         (byte_put): Likewise.
127         (byte_put_little_endian): Likewise.
128         (byte_put_big_endian): Likewise.
129         (adjust_relative_path): Likewise.
130         (archive_info): Likewise.
131         (setup_archive): Likewise.
132         (release_archive): Likewise.
133         (setup_nested_archive): Likewise.
134         (get_archive_member_name): Likewise.
135         (get_archive_member_name_at): Likewise.
136         (make_qualified_name): Likewise.
138 2010-11-18  Alan Modra  <amodra@gmail.com>
140         PR binutils/11742
141         * readelf.c (get_archive_member_name): Formatting.  Properly
142         handle full size ar_name.
144 2010-11-17  Alan Modra  <amodra@gmail.com>
146         * ar.c (print_contents): Don't internationalize strings without words.
147         * dwarf.c (process_extended_line_op): Likewise.
148         (process_debug_info): Likwise.
149         (display_debug_lines_raw): Likewise.
150         (display_debug_lines_decoded): Likewise.
151         (display_debug_abbrev): Likewise.
152         * readelf.c (process_file_header): Likewise.
153         (GET_OP): Likewise.
154         (decode_arm_unwind): Likewise.
155         (process_mips_specific): Likewise.
156         * resrc.c (run_cmd): Likewise.
157         (rcparse_warning): Likewise.
158         * objdump.c (dump_headers): Don't print "Pg".
160 2010-11-16  Jorma Karvonen  <karvonen.jorma@gmail.com>
162         * windmc.c: ,%s' -> `%s' in a number of strings.
164 2010-11-16  Jie Zhang  <jie.zhang@analog.com>
166         * readelf.c (get_machine_flags): Deal with Blackfin specific flags.
168 2010-11-11  Mingming Sun  <mingm.sun@gmail.com>
170         * readelf.c (get_machine_flags): Add loongson-3a.
172 2010-11-10  Nick Clifton  <nickc@redhat.com>
174         * po/ja.po: Updated Japanese translation.
175         * po/fr.po: Updated French translation.
177 2010-11-08  Nick Clifton  <nickc@redhat.com>
179         * po/ja.po: Updated Japanese translation.
181 2010-11-08  Alan Modra  <amodra@gmail.com>
183         * objcopy.c (copy_main): No need to rename sections when compressing
184         or decompressing.
186 2010-11-05  Alan Modra  <amodra@gmail.com>
188         * bin2c.c: Remove internationalization and version report.
189         * Makefile.am: Update bin2c rule.
190         * Makefile.in: Regenerate.
192 2010-11-05  Tristan Gingold  <gingold@adacore.com>
194         * po/binutils.pot: Regenerate
196 2010-11-05  Tristan Gingold  <gingold@adacore.com>
198         * NEWS: Add marker for 2.21.
200 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
202         * objdump.c (dump_bfd_header): Don't display
203         BFD_FLAGS_FOR_BFD_USE_MASK bits in abfd->flags.
205 2010-11-02  Joseph Myers  <joseph@codesourcery.com>
207         * readelf.c (display_tic6x_attribute): Handle more attributes.
209 2010-10-30  Kai Tietz  <kai.tietz@onevision.com>
211         * dlltool.c (scan_drectve_symbols): Allow quoted strings for -export
212         directives.
214 2010-10-29  Joseph Myers  <joseph@codesourcery.com>
216         * readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility
217         not hardcoded 32.  Display name of this attribute.
219 2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
221         * addr2line.c (process_file): Set BFD_DECOMPRESS.
223         * objcopy.c (do_debug_sections): New.
224         (OPTION_COMPRESS_DEBUG_SECTIONS): New.
225         (OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise.
226         (copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
227         OPTION_DECOMPRESS_DEBUG_SECTIONS.
228         (copy_usage): Add --compress-debug-sections and
229         --decompress-debug-sections.
230         (copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
231         (copy_section): Replace bfd_get_section_contents with
232         bfd_get_full_section_contents.
233         (copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
234         OPTION_DECOMPRESS_DEBUG_SECTIONS.  Check do_debug_sections to
235         rename DWARF debug sections.
237         * objdump.c (load_specific_debug_section): Replace
238         bfd_get_section_contents with bfd_get_full_section_contents.
239         Remove bfd_uncompress_section_contents.
240         (dump_section): Replace bfd_get_section_contents with
241         bfd_get_full_section_contents.
242         (display_file): Set BFD_DECOMPRESS if needed.
244         * readelf.c (uncompress_section_contents): Set buffer to NULL
245         to indiate decompression failure.
246         (load_specific_debug_section): Always call
247         uncompress_section_contents.
249         * doc/binutils.texi: Document --compress-debug-sections and
250         --decompress-debug-sections.
252 2010-10-29  Nick Clifton  <nickc@redhat.com>
254         PR binutils/12058
255         * ar.c (usage): Revert previous change.  Describe how 's' can be
256         used as a command letter.
257         * doc/binutils.texi (ar cmdline): Describe how 's' can be used as
258         a command letter.
260 2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
261             Joseph Myers  <joseph@codesourcery.com>
263         * readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT.
265 2010-10-28  Nick Clifton  <nickc@redhat.com>
267         PR binutils/12058
268         * ar.c (usage): Remove spurious 's' from list of accepted command
269         letters.
271 2010-10-28  Alan Modra  <amodra@gmail.com>
273         * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
274         (is_32bit_pcrel_reloc): Support microblaze.
276 2010-10-26  Nick Clifton  <nickc@redhat.com>
278         * po/ja.po: Updated Japanese transaltion.
280 2010-10-21  Joseph Myers  <joseph@codesourcery.com>
282         * readelf.c (display_tic6x_attribute): Update for attribute
283         renaming.
285 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
287         * dwarf.c (byte_get_signed): Make it extern.
289         * dwarf.h (byte_get_signed): New.
291         * readelf.c (BYTE_GET_SIGNED): New.
292         (slurp_rela_relocs): Use BYTE_GET_SIGNED on r_addend.
293         (dump_relocations): Properly dump r_addend.
295 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
297         * nm.c (value_format_64bit): Define appropriately for __MSVCRT__.
298         (set_print_radix): Update for __MSVCRT__ definition of
299         value_format_64bit.
301 2010-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
303         Fix build with -DDEBUG=7
304         * nlmheader.y (DEBUG token): Rename to DEBUG_K.
306 2010-10-06  Alan Modra  <amodra@gmail.com>
308         * bucomm.c (bfd_nonfatal, bfd_nonfatal_message): Don't clobber errno.
310 2010-10-05  Alan Modra  <amodra@gmail.com>
312         * bucomm.c (bfd_nonfatal): Flush stdout before output to stderr.
313         (bfd_nonfatal_message, report, list_matching_formats): Likewise.
314         (list_supported_targets): Tidy.
315         * objdump.c (free_only_list): Formatting.
316         (slurp_dynamic_symtab): Non-zero exit status for "not a dynamic
317         object".
318         (update_source_path): Delete redundant check for NULL filename.
319         (disassemble_bytes): Error if disassemble_fn returns a value
320         that won't increment address.
321         (disassemble_data): Don't capitalize error message.
322         (read_section_stabs): Likewise.
323         (main): Return non-zero exit status on bad options.
325 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
327         PR binutils/12088
328         * nm.c (plugin_target): New.
329         (main): Set plugin_target to "plugin" for --plugin.
330         (display_file): Pass plugin_target to bfd_openr if target
331         isn't set.
333 2010-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
335         * configure: Regenerate.
337 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
339         * MAINTAINERS: Add self as ADI Blackfin maintainer.
341 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
343         * emul_aix.c (ar_emul_aix_append): Add a target argument
344         and ignore it if it is set.
345         (ar_emul_aix5_append): Likewise.
346         (ar_emul_aix_replace): Likewise.
347         (ar_emul_aix5_replace): Likewise.
349 2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>
351         * ar.c (plugin_target): New.
352         (main): Set plugin_target to "plugin" for --plugin.
353         (open_inarch): Initialize target to plugin_target.
354         (replace_members): Pass plugin_target to ar_emul_replace
355         and ar_emul_append.
357         * binemul.h (ar_emul_append): Add a target argument.
358         (ar_emul_default_append): Likewise.
359         (ar_emul_replace): Likewise.
360         (ar_emul_default_replace): Likewise.
361         (bin_emulation_xfer_struct): Add a target argument to
362         ar_append and ar_replace.
364         * binemul.c (ar_emul_append): Updated.  Pass target to bfd_openr.
365         (do_ar_emul_default_append): Likewise.
366         (ar_emul_default_append): Likewise.
367         (ar_emul_replace): Likewise.
368         (ar_emul_default_replace): Likewise.
370 2010-09-10  Ben Gardiner  <bengardiner@nanometrics.ca>
372         * objcopy.c: Add --interleave-width option to allow interleaving
373         of more than one byte at a time.
374         (copy_width): New variable.
375         (copy_options): Add --interleave-width.
376         (copy_section): When interleaving copy in units of copy_width
377         bytes.
378         (copy_main): Parse the new option.
379         * doc/binutils: Document the new option.
380         * NEWS: Mention the new feature.
382 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
384         * dwarf.c (decode_location_expression): Fix data adjustment
385         for DW_OP_GNU_implicit_pointer in v3+.
387 2010-09-09  Tristan Gingold  <gingold@adacore.com>
389         * NEWS: Add entry to NEWS for hppa/som.
391 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
393         * dwarf.h (debug_info): Add offset_info and dwarf_version fields.
394         * dwarf.c (decode_location_expression): Add offset_size and
395         dwarf_version arguments.  Prefix DIE offset with 0x for
396         DW_OP_call{2,4,_ref}.  Fix up DW_OP_call_ref operand size,
397         complain if in frame info section.  Handle
398         DW_OP_GNU_implicit_pointer.
399         (read_and_display_attr_value, display_debug_loc,
400         display_debug_frames): Adjust decode_location_expression callers.
401         (process_debug_info): Save offset_size and dwarf_version values
402         into debug_information array.
404 2010-09-07  Nick Clifton  <nickc@redhat.com>
406         * readelf.c (process_section_headers): Mention meaning of 'l'
407         section flag for x86-64 targets.
409 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
410             Jakub Jelinek  <jakub@redhat.com>
412         * dwarf.c (regname): New declaration.
413         (decode_location_expression): Print for registers also regname output.
415 2010-09-02  Richard Henderson  <rth@redhat.com>
417         * dwarf.c (init_dwarf_regnames_i386, init_dwarf_regnames_x86_64): New.
418         (init_dwarf_regnames): Use them.
419         * dwarf.h: Declare them.
420         * objdump.c (dump_dwarf): Use bfd_get_arch + bfd_get_mach to set up
421         the regnames, rather than using elf_machine_code.
423 2010-09-02  Richard Henderson  <rth@redhat.com>
425         * objdump.c (dump_dwarf): Use bfd_arch_bits_per_address.
427 2010-08-23  H.J. Lu  <hongjiu.lu@intel.com>
429         * elfedit.c (input_elf_osabi): New.
430         (output_elf_osbi): Likewise.
431         (osabis): Likewise.
432         (elf_osabi): Likewise.
433         (update_elf_header): Support updating ELF OSABI.
434         (make_qualified_name): Break long line.
435         (command_line_switch): Add OPTION_INPUT_OSABI and
436         OPTION_OUTPUT_OSABI.
437         (options): Likewise.
438         (usage): Add --input-osabi and --output-osabi.
439         (main): Handle OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI.
441         * doc/binutils.texi: Document --input-osabi and --output-osabi
442         for elfedit.
444 2010-08-23  Maciej W. Rozycki  <macro@codesourcery.com>
446         * readelf.c (display_mips_gnu_attribute): Replace GCC options
447         with a textual description of a MIPS32r2 64-bit FPU.
449 2010-08-13  Dan Rosenberg  <dan.j.rosenberg@gmail.com>
451         PR binutils/11889
452         * readelf.c (get_32bit_elf_symbols): Check for a corrupt
453         sh_entsize.
454         (get_64bit_elf_symbols): Likewise.
455         (process_symbol_table): Likewise.
456         (process_section_groups): Check for corrupt headers.
457         (process_version_sections): Check for corrupt indicies.
458         (process_corefile_note_segment): Likewise.
460 2010-08-13  Nathan Sidwell  <nathan@codesourcery.com>
462         * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B
463         variants.
465 2010-08-13  Tom Tromey  <tromey@redhat.com>
467         * dwarf.c (process_debug_info): Don't subtract section address
468         when calculating location of cu abbrev within section.
470 2010-08-12  Michael Haubenwallner  <haubi@gentoo.org>
472         PR binutils/11742
473         * readelf.c (get_archive_member_name): Do not read beyond the end
474         of the ar_name field.
476 2010-08-03  Tristan Gingold  <gingold@adacore.com>
478         * dwarf.c (display_debug_lines): Mark file argument unused.
479         Do not try to load .debug_info section.
481 2010-08-02  Alan Modra  <amodra@gmail.com>
483         * readelf.c (apply_relocations): D30V is really REL.
485 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
486             Ina Pandit  <ina.pandit@kpitcummins.com>
488         * binutils/readelf.c: Add support for V850E2 and V850E2V3.
490 2010-07-22  Alan Modra  <amodra@gmail.com>
492         * readelf.c: Add Moxie support.
494 2010-07-20  Alan Modra  <amodra@gmail.com>
496         * readelf.c (process_program_headers): Don't ignore all zero size
497         sections.
499 2010-07-19  Andreas Schwab  <schwab@redhat.com>
501         * readelf.c (process_section_headers): Update key to flags.
503 2010-07-17  Dave Korn  <dave.korn.cygwin@gmail.com>
505         * objcopy.c (copy_usage): Tweak previous typofix.
507 2010-07-17  H.J. Lu  <hongjiu.lu@intel.com>
509         * objcopy.c (copy_usage): Fix a typo.
511 2010-07-15  Kai Tietz <kai.tietz@onevision.com>
513         * dllwrap.c (main): Make sure is_leading_underscore
514         gets initialized with correct default.
516 2010-07-05  Alan Modra  <amodra@gmail.com>
518         * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
520 2010-07-03  Cary Coutant  <ccoutant@google.com>
522         * objdump.c (load_specific_debug_section): Decompress section contents
523         before applying relocations.
524         * readelf.c (load_specific_debug_section): Update section size after
525         decompression.
527 2010-06-29  Alan Modra  <amodra@gmail.com>
529         PR binutils/3166
530         * objcopy.c (is_strip_section): Revert 2006-09-05.
531         (setup_section): Make SHT_GROUP section nobits.
533 2010-06-29  Alan Modra  <amodra@gmail.com>
535         * configure: Regenerate.
536         * po/POTFILES.in: Regenerate.
538 2010-06-27  Alan Modra  <amodra@gmail.com>
540         * resbin.c (res_to_bin_accelerator): Delete set but unused variables.
542 2010-06-17  Nick Clifton  <nickc@redhat.com>
544         PR binutils/11711
545         * windres.c (enum option_values): New enum.
546         (long_options): Use separate option number for --include-dir
547         option.
548         (main): Separate backwards compatibility check from code to
549         implement --include-dir.  Check to see if directory exists and do
550         not complain if it does.
552 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
554         * readelf.c (display_tic6x_attribute, process_tic6x_specific):
555         New.
556         (process_arch_specific): Call process_tic6x_specific for
557         EM_TI_C6000.
559 2010-06-11  H.J. Lu  <hongjiu.lu@intel.com>
561         * readelf.c (dump_ia64_vms_dynamic_fixups): Cast to unsigned long
562         for 0x%lx.
564 2010-06-11  Tristan Gingold  <gingold@adacore.com>
565             Doug Rupp <rupp@gnat.com>
567         * readelf.c (is_ia64_vms): New function.
568         (dump_relocations): Use it.
569         (get_machine_flags): Display IA-64 OpenVMS flags.
570         (process_program_headers): No error on OpenVMS if no .dynamic section.
571         (struct ia64_vms_dynfixup, struct ia64_vms_dynimgrela): New
572         declarations.
573         (dump_ia64_vms_dynamic_fixups): New function.
574         (dump_ia64_vms_dynamic_relocs): Ditto.
575         (process_ia64_vms_dynamic_relocs): Ditto.
576         (process_relocs): Handle IA-64 OpenVMS relocs.
577         (VMS_EPOCH_OFFSET, VMS_GRANULARITY_FACTOR): New macros.
578         (print_vms_time): New function.
579         (dynamic_section_ia64_val): Handle DT_IA_64_VMS_LINKTIME and
580         DT_IA_64_VMS_LNKFLAGS.
581         (get_ia64_symbol_other): New function.
582         (get_symbol_other): Handle EM_IA_64.
584 2010-06-11  Tristan Gingold  <gingold@adacore.com>
586         * unwind-ia64.c (unw_print_abreg): Add const to special_reg.
587         (UNW_DEC_ABI): Ditto for abiname.
588         (unw_decode_table): Make it const.
590 2010-06-10  Tristan Gingold  <gingold@adacore.com>
592         * readelf.c (slurp_ia64_unwind_table): IA64 rela relocations are
593         not inplace.
595 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
596             Joseph Myers  <joseph@codesourcery.com>
597             Andrew Stubbs  <ams@codesourcery.com>
599         * readelf.c (get_machine_flags): Handle EF_SH_PIC and EF_SH_FDPIC.
601 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
603         PR ld/11621
604         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
605         * Makefile.in: Regenerate.
607 2010-05-24  Tristan Gingold  <gingold@adacore.com>
609         * readelf.c (usage): Add new trace sections for --debug-dump.
610         (process_section_headers): Handle dump of trace sections.
611         * objdump.c (usage): Add new trace sections for --dwarf.
612         * dwarf.h (do_trace_info, do_trace_abbrevs): New variables.
613         (do_trace_aranges): Ditto.
614         (enum dwarf_section_display_enum): Add trace_info, trace_abbrev
615         and trace_aranges literals.
616         * dwarf.c (do_trace_info, do_trace_abbrevs): New variables.
617         (do_trace_aranges): Ditto.
618         (process_debug_info): Add abbrev_sec argument and replace
619         abbrev with abbrev_sec.
620         (load_debug_info): Adjust call of process_debug_info.
621         (display_debug_info): Ditto.
622         (display_trace_info): New function.
623         (dwarf_select_sections_by_names): Add trace_info, trace_abbrevs
624         and trace_aranges sections name.
625         (dwarf_select_sections_all): Also select trace sections.
626         (debug_displays): Reindent.  Add entries for the trace sections.
627         * doc/binutils.texi (readelf): Document new --dwarf parameters.
628         (objdump): Ditto.
630 2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
632         PR gas/11600
633         * readelf.c (get_elf_section_flags): Treat SHF_EXCLUDE as a
634         generic flag.
636 2010-05-07  Tristan Gingold  <gingold@adacore.com>
638         * Makefile.in: Regenerate with automake 1.11.1.
639         * aclocal.m4: Ditto.
640         * doc/Makefile.in: Ditto.
642 2010-05-06  H.J. Lu  <hongjiu.lu@intel.com>
644         * dwarf.c (init_dwarf_regnames): Handle EM_L1OM.
645         * readelf.c (get_elf_section_flags): Likewise.
646         (process_section_headers): Likewise.
648 2010-05-05  Nick Clifton  <nickc@redhat.com>
650         * po/es.po: Updated Spanish translation.
652 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
654         * dlltool.c (main): Query for bfd's underscoring default for
655         default target case.
657 2010-04-27  Nick Clifton  <nickc@redhat.com>
659         * po/ru.po: Updated Russian translation.
661 2010-04-23  Alan Modra  <amodra@gmail.com>
663         * readelf.c (process_program_headers): Replace use of
664         ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
666 2010-04-22  Nick Clifton  <nickc@redhat.com>
668         * po/binutils.pot: Updated by the Translation project.
669         * po/fi.po: Updated Finnish translation.
670         * po/vi.po: Updated Vietnamese translation.
671         * po/bg.po: New Bulgarian translation.
672         * configure.in (ALL_LINGUAS): Add bg.
673         * configure: Regenerate.
675 2010-04-20  Nick Clifton  <nickc@redhat.com>
677         * po/fr.po: Updated french translation.
679 2010-04-20  Nick Clifton  <nickc@redhat.com>
681         * readelf.c: Add _() macros to constant strings that are
682         translatable.
684         * readelf.c (display_mips_gnu_attribute): Replace GCC options
685         with a textual description of single and double precision float.
687 2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
689         * readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
690         (arm_attr_tag_ABI_align8_needed): Remove.
691         (arm_attr_tag_ABI_align8_preserved): Remove.
692         (arm_attr_tag_ABI_HardFP_use): Update text strings.
693         (arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
694         (display_arm_attribute): Add decoding of ABI v2.08 attributes.
696 2010-04-13  Nick Clifton  <nickc@redhat.com>
698         PR binutils/11419
699         * dwarf.c (process_debug_info): Initialise the signature array.
701 2010-04-09  Nick Clifton  <nickc@redhat.com>
703         * dwarf.c (process_debug_info): Remove unused variable
704         cu_abbrev_offset_ptr.
705         (display_debug_lines_decoded): Remove unused variable prev_line.
706         * elfedit.c (process_archive): Remove unused variable
707         file_name_size.
708         * ieee.c (ieee_start_compilation_unit): Remove unused variable
709         nindx.
710         (ieee_set_type): Remove unused variables info, targetindx and
711         baseindx.
712         * objdump.c (disassmble_byte): Remove unused variable done_dot.
713         * rddbg.c (read_section_stabs_debugging_info): Remove unused
714         variable other.
715         * readelf.c (dump_section_as_strings): Remove unused variable
716         addr.
717         (process_archive): Remove unused variable file_name_size.
718         * stabs.c (parse_stab_string): Mark desc parameter as unused.
719         Remove unused variable lineno.
720         (parse_stab_struct_type): Remove unused variable orig.
721         (stab_demangle_type): Remove unused variables constp, volatilep
722         and hold.
724 2010-04-07  Alan Modra  <amodra@gmail.com>
726         * configure: Regenerate.
728 2010-04-06  Nick Clifton  <nickc@redhat.com>
730         * po/vi.po: Updated Vietnamese translation.
732 2010-04-05  Jakub Jelinek  <jakub@redhat.com>
734         * dwarf.c (struct Frame_Chunk): Add ptr_size and segment_size
735         fields.
736         (display_debug_frames): Handle CIE version 4.
738         * dwarf.c (struct State_Machine_Registers): Add op_index field,
739         change end_sequence type to unsigned char.
740         (reset_state_machine): Clear op_index.
741         (process_extended_line_op): For DW_LNE_set_address clear op_index.
742         (display_debug_lines_raw): Initialize li_max_ops_per_insn.
743         Track op_index state machine register and print it if
744         li_max_ops_per_insn is != 1.
745         (display_debug_lines_decoded): Likewise.
747 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
749         * dwarf.c (read_and_display_attr_value): Don't reject
750         dwarf_version == 4.  Handle DW_FORM_sec_offset, DW_FORM_flag_present
751         and DW_FORM_exprloc.
752         (process_debug_info): Handle cu_version == 4.
753         (display_debug_lines_raw, display_debug_lines_decoded): Handle
754         li_version == 4.
756 2010-03-30  Andreas Schwab  <schwab@linux-m68k.org>
758         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
759         * Makefile.in: Regenerate.
761 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
763         * MAINTAINERS: Add self as TI C6X maintainer.
764         * NEWS: Add news entry for TI C6X support.
765         * readelf.c: Include elf/tic6x.h.
766         (guess_is_rela): Handle EM_TI_C6000.
767         (dump_relocations): Likewise.
768         (get_tic6x_dynamic_type): New.
769         (get_dynamic_type): Call it.
770         (get_machine_flags): Handle EF_C6000_REL.
771         (get_osabi_name): Handle machine-specific values only for relevant
772         machines.  Handle C6X values.
773         (get_tic6x_segment_type): New.
774         (get_segment_type): Call it.
775         (get_tic6x_section_type_name): New.
776         (get_section_type_name): Call it.
777         (is_32bit_abs_reloc, is_16bit_abs_reloc, is_none_reloc): Handle
778         EM_TI_C6000.
780 2010-03-25  Thomas Schwinge  <thomas@codesourcery.com>
782         * doc/binutils.texi (readelf) <unwind information>: Mention support for
783         ARM unwind tables.
785 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
787         * readelf.c (decode_arm_unwind): Increase buf size to 9 byte.
789 2010-03-17  Alan Modra  <amodra@gmail.com>
791         * readelf.c (dump_arm_unwind): Warning fix.
793 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
795         * MAINTAINERS: Update my email address.  List Tristan Gingold
796         as the release branch maintainer.
798 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
800         * readelf.c (get_ver_flags): Handle VER_FLG_INFO.
802 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
804         * NEWS: Document .ARM.exidx / .ARM.extab support.
806         * dwarf.c (read_leb128): Make non-static.
807         * dwarf.h (read_leb128): Declare.
808         * readelf.c (REMOVE_ARCH_BITS): Define.
809         (find_section_by_address): New.
810         (read_uleb128): Move higher.  Use read_leb128 from dwarf.c.
811         (find_symbol_for_address): Handle the Thumb bit for ARM, by
812         using REMOVE_ARCH_BITS.
813         (struct arm_section, struct arm_unw_aux_info, arm_print_vma_and_name)
814         (arm_free_section, arm_section_get_word, decode_arm_unwind)
815         (dump_arm_unwind, arm_process_unwind): New.
816         (process_unwind): Handle ARM.
818 2010-02-26  Jie Zhang  <jie@codesourcery.com>
820         * MAINTAINERS: Update my email address.
822 2010-02-23  Peter Breitenlohner  <peb@mppmu.mpg.de>
824         PR binutils/11298
825         * doc/binutils.texi (windmc): Fix synopsis and description of
826         ASCII options.
828 2010-02-19  Alan Modra  <amodra@gmail.com>
830         * readelf.c (get_group_flags): Return empty string when flags zero.
831         Add space in other returned values.
832         (process_section_groups): Adjust format string.
834 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
836         * readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add description of
837         newly permitted attribute values.
838         (arm_attr_tag_Virtualization_use): Likewise.
839         (arm_attr_tag_DIV_use): Add description of new attribute.
840         (arm_attr_tag_MPextension_use_legacy): Likewise.
842 2010-02-15  Nick Clifton  <nickc@redhat.com>
844         * po/vi.po: Updated Vietnamese translation.
846 2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
848         * readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
849         NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
851 2010-02-08  Jim Blandy  <jimb@red-bean.com>
853         * dwarf.c (display_debug_frames): Skip the 'S' character in CFI
854         'z' augmentation strings.
856 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
858         * objdump.c (disassemble_bytes): Clear aux->reloc before printing
859         a new address, so as not to reuse a previous, non-related reloc.
861 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
863         * readelf.c (get_note_type): Handle NT_X86_XSTATE.
865 2010-02-01  Nathan Sidwell  <nathan@codesourcery.com>
867         * objcopy.c (copy_object): Set SEC_LINKER_CREATED when adding
868         sections.
870 2010-01-28  Nick Clifton  <nickc@redhat.com>
872         PR 11225
873         * objdump.c (only): Replace with linked list.
874         (only_size, only_used): Replace with only_list.
875         (process_section_p): Set seen field on matches sections.
876         (add_only): New function.
877         (free_only_list): New function.
878         (disassemble_section): Check only_list.
879         (main): Use add_only and free_only_list.
881 2010-01-26  Tristan Gingold  <gingold@adacore.com>
883         * Makefile.am (bin2c): Add libintl dependance and library.
884         * Makefile.in: Regenerate.
886 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
888         * readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.
890 2010-01-19  Ian Lance Taylor  <iant@google.com>
892         * objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work
893         with non-ordinary files like /dev/null.
895 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
896             Alan Modra <amodra@gmail.com>
898         * readelf.c (process_file_header): Handle e_phnum extension.
900 2010-01-14  Tristan Gingold  <gingold@adacore.com>
902         * dwarf.c (get_AT_name): Handle DW_AT_use_GNAT_descriptive_type
903         and DW_AT_GNAT_descriptive_type.
905 2010-01-13  Tristan Gingold  <gingold@adacore.com>
907         * ar.c (main): Use lbasename.
908         (normalize): Ditto.
909         * objdump.c (update_source_path): Ditto.
911 2010-01-12  Tristan Gingold  <gingold@adacore.com>
913         * makefile.vms (CFLAGS): Turns warnings into informational messages.
915 2010-01-11  H.J. Lu  <hongjiu.lu@intel.com>
917         PR ld/11146
918         * NEWS: Mention --dyn-syms for readelf.
920         * readelf.c (do_dyn_syms): New.
921         (OPTION_DYN_SYMS): Likewise.
922         (options): Add "dyn-syms".
923         (usage): Add --dyn-syms.
924         (parse_args): Handle OPTION_DYN_SYMS.
925         (process_symbol_table): Handle do_dyn_syms.
926         (process_object): Likewise.
927         (process_archive): Likewise.
929         * doc/binutils.texi: Document --dyn-syms for readelf.  Mention
930         symbol hash tables for -D.
932 2010-01-11  Nick Clifton  <nickc@redhat.com>
934         * NEWS: Mention addition of elfedit.
936         * po/fi.po: Updated Finnish translation.
938 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
940         * Makefile.in: Regenerate.
941         * configure: Regenerate.
942         * doc/Makefile.in: Regenerate.
944 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
946         * version.c (print_version): Change to "Copyright 2010".
948 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
950         * elfedit.c (input_elf_type): New.
951         (output_elf_type): Likewise.
952         (elf_type): Likewise.
953         (update_elf_header): Support updating ELF file type.
954         (command_line_switch): Add OPTION_INPUT_TYPE and
955         OPTION_OUTPUT_TYPE.
956         (options): Likewise.
957         (usage): Add --input-type and --output-type.
958         (main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE.  Check
959         one of --output-mach and --output-type must be specified.
961         * doc/binutils.texi: Document --input-type and --output-type
962         for elfedit.
964 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
966         * doc/binutils.texi: Fix a typo.
968 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
970         * elfedit.c (update_elf_header): Don't change input_elf_class
971         nor input_elf_machine if they are -1.
973 2010-01-08  Tristan Gingold  <gingold@adacore.com>
975         * ar.c: Remove bfd_special_undocumented_glue prototype.
977 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
979         * elfedit.c (update_elf_header): Reformat.
981 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
983         * readelf.c (usage): Fix indent for --symbols.
985 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
987         * doc/binutils.texi: Replace -histogram with --histogram.
989 2010-01-06  H.J. Lu  <hongjiu.lu@intel.com>
991         PR binutils/11131
992         * Makefile.am (ELFEDIT_PROG): New.
993         (bin_PROGRAMS): Add $(ELFEDIT_PROG).
994         (CFILES): Add elfedit.c.
995         (elfedit_DEPENDENCIES): New.
996         (elfedit_SOURCES): Likewise.
997         (elfedit_LDADD): Likewise.
998         * Makefile.in: Regenerated.
1000         * elfedit.c: New.
1002         * doc/binutils.texi: Document elfedit.
1004         * doc/Makefile.am (man_MANS): Add elfedit.1.
1005         (elfedit.1): New.
1006         * doc/Makefile.in: Regenerated.
1008 2010-01-06  Tristan Gingold  <gingold@adacore.com>
1010         * nm.c (usage): Remove extra blanks.
1012 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1014         * objcopy.c: Update copyright.
1015         * readelf.c: Likewise.
1017 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1019         PR binutils/11130
1020         * objcopy.c (copy_object): Remove "Warning: " from error
1021         message.
1023 2010-01-04  Nick Clifton  <nickc@redhat.com>
1025         PR 11128
1026         * readelf.c (dump_section_as_strings): Use two separate
1027         invocations of printf() in order to work around bugs in
1028         the Solaris 8 implementation.
1030 2010-01-04  Nick Clifton  <nickc@redhat.com>
1032         * po/ru.po: Updated Russian translation.
1034 For older changes see ChangeLog-2009
1036 Local Variables:
1037 mode: change-log
1038 left-margin: 8
1039 fill-column: 74
1040 version-control: never
1041 End: