Rotate ChangeLogs
[binutils.git] / binutils / ChangeLog-2011
blobb81c81d40f2ccd5fa5337063cc691be96e779887
1 2011-12-28  Ian Lance Taylor  <iant@google.com>
3         * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Go.
5 2011-12-20  Roland McGrath  <mcgrathr@google.com>
7         * configure.in (--enable-deterministic-archives): Grok new
8         argument.  Set DEFAULT_AR_DETERMINISTIC to 1 or 0 accordingly.
9         * configure: Regenerated.
10         * config.in: Regenerated.
11         * ar.c (deterministic): Initialize to -1.
12         (decode_options, ranlib_main): Grok U option.
13         (usage, ranlib_usage): Mention U; say for D and U which is the default.
14         (default_deterministic): New function.
15         (ranlib_main): Call it.
16         (main): Likewise.  Make newer_only && deterministic error
17         non-fatal if it was just DEFAULT_AR_DETERMINISTIC and not the D option.
18         * doc/binutils.texi (ar cmdline, ranlib): Document U modifier and
19         --enable-deterministic-archives behavior.
21 2011-12-16  Tristan Gingold  <gingold@adacore.com>
23         * od-macho.c: Include mach-o/codesign.h
24         (OPT_CODESIGN): Define.
25         (options): Add an entry for codesign.
26         (mach_o_help): Likewise.
27         (dump_header): Fix indentation.
28         (dump_thread): Do not test result of xmalloc.
29         (bfd_mach_o_cs_magic, bfd_mach_o_cs_hash_type): New.
30         (dump_code_signature_superblob): New function.
31         (swap_code_codedirectory_v1_in): Likewise.
32         (hexdump): Likewise.
33         (dump_code_signature_codedirectory): Likewise.
34         (dump_code_signature_blob, dump_code_signature): Likewise.
35         (dump_load_command): Dump code signature.
36         (mach_o_dump): Likewise.
38 2011-12-15  Andreas Tobler  <andreast@fgznet.ch>
40         * readelf.c (get_symbol_type): Add ELFOSABI_FREEBSD to the
41         supported abi's.
43 2011-12-13  Tristan Gingold  <gingold@adacore.com>
45         * od-macho.c: New file.
46         * objdump.h (objdump_private_desc_mach_o): Add.
47         * configure.in: Add Mach-O od_vectors.
48         * Makefile.am (CFILES): Add od-macho.c
49         * configure: Regenerate.
50         * Makefile.in: Regenerate.
52 2011-12-06 David Daney <david.daney@cavium.com>
54         * readelf.c (dynamic_section_mips_val): Factor out trailing '\n'
55         from printed strings and move it to the end of the function.
56         Use BFD_VMA_FMT for printf format specifier for dynamic tag value.
57         Use print_vma() to print dynamic tag values.
59 2011-12-02  Nick Clifton  <nickc@redhat.com>
61         * readelf.c (ia64_process_unwind): Turn into a void funtion.
62         (hppa_process_unwind): Likewise.
63         (arm_process_unwind): Likewise.
64         (process_unwind): Likewise.
65         (arm_get_section_word): Rename to get_unwind_section_word.
66         Add sym_name parameter to return the offset into the string table
67         of the symbol associated with the reloc applied to the word.
68         (decode_tic6x_unwind_regmask): Add NULL argument to invocation of
69         get_unwind_section_word.
70         (dump_arm_unwind): Likewise.
71         (decode_arm_unwind_bytecode): Prepend a comma when *not* the first
72         register in a list.
73         (decode_arm_unwind): If the returned function address is 0 and a
74         valid symname offset is provided use that to compute the name
75         associated with the entry.
76         Add extra checks of the compact model index entry.
78 2011-11-29  Roland McGrath  <mcgrathr@google.com>
80         * ar.c (ranlib_usage): Describe -D.
81         (ranlib_main): Parse -D.
82         (ranlib_touch): Set BFD_DETERMINISTIC_OUTPUT under -D.
83         * doc/binutils.texi (ranlib): Describe -D, and also --help/-h/-H.
85 2011-11-28  Nick Clifton  <nickc@redhat.com>
87         PR binutils/13421
88         * readelf.c (arm_section_get_word): Add descriptive comments.
89         Initliase the rel_type field of the arm_sec structure.
90         (expand_prel31): Rename to arm_expand_prel31.
91         (dump_arm_unwind): Use new name.
92         Print the function name based on the function address entry.
94 2011-11-11  Andreas Schwab  <schwab@linux-m68k.org>
96         * readelf.c (process_program_headers): Fix typo printing p_memsz
97         field.
99 2011-11-01  DJ Delorie  <dj@redhat.com>
101         * readelf.c: Include elf/rl78.h
102         (guess_is_rela): Handle EM_RL78.
103         (dump_relocations): Likewise.
104         (get_machine_name): Likewise.
105         (is_32bit_abs_reloc): Likewise.
106         * NEWS: Mention addition of RL78 support.
107         * MAINTAINERS: Add myself as RL78 port maintainer.
109 2011-10-28  Ian Lance Taylor  <iant@google.com>
111         * dwarf.c (display_debug_frames): If do_debug_frames_interp,
112         DW_CFA_restore goes to DW_CFA_undefined, not DW_CFA_unreferenced.
114 2011-10-28  Walter Lee  <walt@tilera.com>
116         * NEWS: Mention addition of TILEPro and TILE-Gx support.
117         * MAINTAINERS: Add myself as TILEPro and TILE-Gx port maintainer.
119 2011-10-27  Joern Rennecke  <joern.rennecke@embecosm.com>
121         * MAINTAINERS: Add myself as EPIPHANY port maintainer.
123 2011-10-25  Mike Frysinger  <vapier@gentoo.org>
125         * Makefile.am (syslex.@OBJEXT@): Add -I$(srcdir).
126         * Makefile.in: Regen.
128 2011-10-25  Joern Rennecke  <joern.rennecke@embecosm.com>
130         * readelf.c: Include "elf/epiphany.h".
131         (guess_is_rela, dump_relocation): Handle EM_ADAPTEVA_EPIPHANY.
132         (get_machine_name, is_32bit_abs_reloc, is_32bit_pcrel_reloc): Likewise.
133         (is_16bit_abs_reloc, is_none_reloc): Likewise.
134         * po/binutils.pot: Regenerate.
136 2011-10-25  Kai Tietz  <ktietz@redhat.com>
138         * winduni.h (unicode_from_ascii_len): New prototype.
139         * winduni.c (unicode_from_ascii_len): New function.
140         * windres.h (define_stringtable): Add additional length argument.
141         * windres.c (define_stringtable): Add length argument for string.
142         * rcparse.y (res_unicode_sizedstring): New rule.
143         (res_unicode_sizedstring_concat): Likewise.
144         (string_data): Adjust rule.
146 2011-10-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
148         * dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
149         also for DW_FORM_ref_udata.
151 2011-10-24  Nick Clifton  <nickc@redhat.com>
153         * po/ja.po: Updated Japanese translation.
155 2011-10-16  H.J. Lu  <hongjiu.lu@intel.com>
157         PR binutils/13278
158         * ar.c (open_inarch): Set the target from the the first object
159         on the list only if it isn't set.
161 2011-10-13  Nick Clifton  <nickc@redhat.com>
163         Fixes to aid translation:
164         * addr2line.c (translate_address): Add comments describing context
165         of a couple of printf statements.
166         * ar.c (write_archive): Allow translation of error message.
167         * bucomm.c (endian_string): Allow translation of strings.
168         (display_target_list): Allow translation.
169         * coffdump.c (dump_coff_type): Allow translation of output.
170         (dump_coff_where): Likewise.
171         (dump_coff_symbol): Likewise.
172         (dump_coff_scope): Likewise.
173         (dump_coff_sfile): Likewise.
174         (dump_coff_section): Likewise.
175         (coff_dump): Likewise.
176         * dlltool (def_version): Allow translation of output.
177         (run): Likewise.
178         * dllwrap.c (run): Allow translation of output.
179         * dwarf.c (print_dwarf_vma): Allow translation of output.
180         (process_extended_line_op): Remove spurious translation.
181         Add translation for strings that can be translated.
182         (decode_location_exression): Allow translation of output.
183         (read_and_display_attr_value): Allow translation of output.
184         * readelf.c (slurp_rela_relocs): Add translation for error
185         messages when failing to get data.
186         (slurp_rel_relocs): Likewise.
187         (get_32bit_elf_symbols): Likewise.
188         (get_64bit_elf_symbols): Likewise.
189         (dump_ia64_vms_dynamic_relocs): Replace abbreviation with full
190         word.
191         (process_relocs): Remove spurious translation.
192         (decode_tic6x_unwind_bytecode): Likewise.
193         (process_version_section): Improve error messages.
194         (process_mips_specific): Likewise.
195         (print_gnu_note): Remove spurious translation.
196         (print_stapsdt_note): Likewise.
197         (get_ia64_vms_note_type): Likewise.
198         * sysdump.c (getCHARS): Allow translation.
199         (fillup): Allow translation of output.
200         (getone): Likewise.
201         (must): Likewise.
202         (derived_type): Likewise.
203         * doc/binutils.doc (addr2line): Extend description of command line
204         options.
205         * po/binutils.pot: Regenerate.
207 2011-10-13  Nick Clifton  <nickc@redhat.com>
209         PR binutils/13219
210         * readelf.c (GET_ELF_SYMBOLS): Add sym_count parameter.
211         (get_32bit_elf_symbols): Add num_syms_return argument.
212         Return the number of symbols loaded into the symbol table.
213         (get_64bit_elf_symbols): Likewise.
214         (process_section_headers): Use GET_ELF_SYMBOLS to initialise
215         symbol count.
216         (proces_relocs): Likewise.
217         (ia64_process_unwind): Likewise.
218         (hppa_process_unwind): Likewise.
219         (arm_process_unwind): Likewise.
220         (process_dynamic_section): Likewise.
221         (process_version_sections): Likewise.
222         (process_symbol_table): Likewise.
223         (process_section_groups): Likewise.
224         Add check before indexing into the symbol table.
225         (apply_relocations): Likewise.
227 2011-10-11  Chris  <player1@onet.eu>
229         PR binutils/13051
230         Fix a syntax error bug when compiling rc files with the VERSIONINFO resource
231         containing more than one language block inside a single StringFileInfo block.
233         * windint.h (rc_ver_stringtable): New structure definition.
234         (rc_ver_info): Use it.
235         * rcparse.y (verstringtable): New variable.
236         (verstringtables): New type.
237         (verstringtables:): New rule declaration.
238         (verblocks:): Use it.
239         * resrc.c (append_ver_stringtable): New function.
240         (append_ver_stringfileinfo): Update to use stringtables.
241         * windres.h (append_ver_stringfileinfo): Update declaration.
242         (append_ver_stringtable): New declaration.
243         * resrc.c (write_rc_versioninfo): Update to support multiple blocks.
244         * resbin.c (bin_to_res_version): Likewise.
245         (res_to_bin_versioninfo): Likewise.
247 2011-10-10  Nick Clifton  <nickc@redhat.com>
249         * po/bg.po: Updated Bulgarian translation.
250         * po/es.po: Updated Spansih translation.
251         * po/fi.po: Updated Finnish translation.
252         * po/fr.po: Updated French translation.
254 2011-10-05  DJ Delorie  <dj@redhat.com>
255             Nick Clifton  <nickc@redhat.com>
257         * readelf.c (get_machine_dlags): Add support for RX's PID mode.
259 2011-10-04  Paul Woegerer  <paul_woegerer@mentor.com>
260             Carlos O'Donell  <carlos@codesourcery.com>
262         * dwarf.c (display_debug_lines_decoded): Index directory_table with
263         directory_index from file_table entry.
265 2011-09-30  Cary Coutant  <ccoutant@google.com>
267         * binutils/dwarf.h (dwarf_section_display_enum): Add missing enum
268         constant.
270 2011-09-28  Tristan Gingold  <gingold@adacore.com>
272         * od-xcoff.c (dump_xcoff32_aout_header): Fix typo.
274 2011-09-27  Tristan Gingold  <gingold@adacore.com>
276         * od-xcoff.c (dump_xcoff32_aout_header): Remove some gettext macros.
277         (dump_xcoff32_sections_header): Likewise.
278         (dump_xcoff32_symbols, dump_xcoff32_relocs): Likewise.
279         (dump_xcoff32_lineno, dump_xcoff32_loader): Likewise.
280         (dump_xcoff32_except): Likewise.
281         (dump_xcoff32_typchk, dump_xcoff32_tbtags): Likewise.
283 2011-09-27  Tristan Gingold  <gingold@adacore.com>
285         * readelf.c (print_ia64_vms_note): Fix xgettext warnings.
287 2011-09-22  Tristan Gingold  <gingold@adacore.com>
289         * NEWS: Add marker for 2.22.
291 2011-09-21  David S. Miller  <davem@davemloft.net>
293         * MAINTAINER: Take over from Jakub Jalinek as SPARC maintainer.
295         * readelf.c (display_sparc_hwcaps): New.
296         (display_sparc_gnu_attribute): New.
297         (process_sparc_specific): New.
298         (process_arch_specific): When EM_SPARC, EM_SPARC32PLUS,
299         or EM_SPARCV9 invoke process_sparc_specific.
301 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
303         PR binutils/13196
304         * dwarf.c (display_debug_aranges): Check zero address size.
306 2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
308         PR binutils/13180
309         * objcopy.c (is_strip_section_1): New.
310         (is_strip_section): Use it.  Remove the group section if all
311         members are removed.
313 2011-09-08  Nick Clifton  <nickc@redhat.com>
315         * po/ja.po: Updated Japanese translation.
317 2011-08-26  Nick Clifton  <nickc@redhat.com>
319         * po/es.po: Updated Spanish translation.
321 2011-08-08  Marcus Comstedt  <marcus@mc.pp.se>
323         PR binutils/12964
324         * Makefile.am (embedspu): Use awk rather than sed.
325         * Makefile.in: Regenerate.
327 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
329         * dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
330         DW_FORM_data8 as location list pointers only for DWARF < 4.
332 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
334         * NEWS: Mention .debug_macro support.
335         * dwarf.c (read_and_display_attr_value): Don't print a tab
336         if attribute is 0.
337         (get_AT_name): Handle DW_AT_GNU_macros.
338         (get_line_filename_and_dirname, display_debug_macro): New
339         functions.
340         (debug_displays): Add an entry for .debug_macro and .zdebug_macro.
341         * readelf.c (process_section_headers): With do_debug_macinfo
342         handle also .debug_macro sections.
343         * dwarf.h (dwarf_section_display_enum): Add macro.
345 2011-07-24  Chao-ying Fu  <fu@mips.com>
346             Maciej W. Rozycki  <macro@codesourcery.com>
348         * readelf.c (get_machine_flags): Handle microMIPS ASE.
349         (get_mips_symbol_other): Likewise.
351 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
353         * dwarf.c (init_dwarf_regnames): Handle EM_K1OM.
355         * elfedit.c (elf_machine): Support EM_K1OM.
356         (elf_class): Likewise.
358         * readelf.c (guess_is_rela): Handle EM_K1OM.
359         (dump_relocations): Likewise.
360         (get_machine_name): Likewise.
361         (get_section_type_name): Likewise.
362         (get_elf_section_flags): Likewise.
363         (process_section_headers): Likewise.
364         (get_symbol_index_type): Likewise.
365         (is_32bit_abs_reloc): Likewise.
366         (is_32bit_pcrel_reloc): Likewise.
367         (is_64bit_abs_reloc): Likewise.
368         (is_64bit_pcrel_reloc): Likewise.
369         (is_none_reloc): Likewise.
371         * doc/binutils.texi: Mention K1OM for elfedit.
373 2011-07-11  Cary Coutant  <ccoutant@google.com>
375         PR 12983
376         * binutils/nm.c (display_file): Decompress debug sections when
377         printing line numbers.
379 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
380             Thomas Schwinge  <thomas@schwinge.name>
382         PR binutils/12913
383         * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
384         alias and ELFOSABI_HURD.  Add GNU alias.
385         * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
386         Likewise.
387         * doc/binutils.texi <elfedit>: Update accordingly.
389 2011-07-01  Nick Clifton  <nickc@redhat.com>
391         PR binutils/12325
392         * doc/binutils.texi (ar cmdline): Document --target, --version and
393         --help command line options.
395 2011-06-30  Nick Clifton  <nickc@redhat.com>
397         PR binutils/12558
398         * ar.c (main): When asked to move members in an archive that is
399         being created, ignore the move request.
401 2011-06-29  Nick Clifton  <nickc@redhat.com>
403         * readelf.c (get_section_type_name): When displaying an unknown
404         section type display the hex value first on the assumption that
405         the full message will probably be truncated into a 15 character
406         field.
408 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
410         * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
411         DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
412         Handle DW_OP_GNU_parameter_ref.
414 2011-06-16  Tom Tromey  <tromey@redhat.com>
416         * dwarf-mode.el (dwarf-do-insert-substructure): Call
417         expand-file-name.
418         (dwarf-do-refresh): Likewise.
420 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
422         * readelf.c (get_note_type): Handle NT_ARM_VFP.
424 2011-06-13  Walter Lee  <walt@tilera.com>
426         * readelf.c: Include tilepro.h and tilegx.h.
427         (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
428         (dump_relocations): Likewise.
429         (get_machine_name): Likewise.
430         (is_32bit_abs_reloc): Likewise.
431         (is_32bit_pcerel_reloc): Likewise.
432         (is_64bit_abs_reloc): Likewise.
433         (is_64bit_pcrel_reloc): Likewise.
435 2011-06-09  Tristan Gingold  <gingold@adacore.com>
437         * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
438         length.
440 2011-06-08  Nick Clifton  <nickc@redhat.com>
442         PR binutils/12855
443         * readelf.c (process_version_sections): Handle binaries containing
444         corrupt version information.
445         (process_symbol_table): Stop processing a symbol's version
446         information if it could not be read in.
448         (get_data): Add comment describing the function.
449         (process_section_headers): Set dynamic_strings_length to 0 if the
450         dynamic strings could not be read in.
451         (process_dynamic_section): Likewise.
452         (process_section_groups): Stop processing the group information if
453         the data could not be read in.
454         (hppa_processs_unwind): Assert that there is only one string table
455         in the file.
456         (arm_process_unwind): Likewise.
457         (ia64_process_unwind): Likewise.
458         Set the size of the unwind auxillary information to 0 if the data
459         could not be read.
460         (load_specific_debug_section): Handle a failure to read in the
461         section.
462         (process_mips_specific): Stop display of the PLT GOT section if it
463         could not be read in.
465 2011-06-08  Tristan Gingold  <gingold@adacore.com>
467         * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
469 2011-06-07  Cary Coutant  <ccoutant@google.com>
471         * dwarf.c: Fix conversion to TU number.
473 2011-06-02  Nick Clifton  <nickc@redhat.com>
475         * resres.c: Fix spelling typo.
476         * windint.h: Likewise.
477         * windmc.c: Likewise.
478         * windres.c: Likewise.
479         * po/POTFILES.in: Regenerate.
480         * po/binutils.pot: Regenerate.
482 2011-06-01  Daniel Jacobowitz  <drow@false.org>
484         * MAINTAINERS: Update my email address.
486 2011-05-31  Matthias Klose  <doko@ubuntu.com>
488         * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
489         * configure: Regenerate.
491 2011-05-30  Alan Modra  <amodra@gmail.com>
493         PR binutils/12820
494         * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
495         (bin_SCRIPTS): ..here.
496         (EXTRA_SCRIPTS): Define.
497         (EXTRA_DIST): Add embedspu.sh.
498         (DISTCLEANFILES): Add embedspu.
499         (embedspu): Depend on Makefile.  Replace sed "s" command with "c".
500         * Makefile.in: Regenerate.
502 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
504         * dwarf.c (loc_offsets): New variable.
505         (loc_offsets_compar): New routine.
506         (display_debug_loc): Handle loc_offsets not being in ascending order
507         and also a single .debug_loc entry being used multiple times.
509 2011-05-18  Nick Clifton  <nickc@redhat.com>
511         PR binutils/12753
512         * nm.c (filter_symbols): Treat unique symbols as global symbols.
513         * doc/binutils.texi (nm): Mention that some lowercase letters
514         actually indicate global symbols.
516 2011-05-15  Tristan Gingold  <gingold@adacore.com>
518         * od-xcoff.c: New file.
519         * objdump.h: New file.
520         * objdump.c: Include objdump.h
521         (dump_private_options, objdump_private_vectors): New variables.
522         (usage): Mention -P/--private.  Display handled options.
523         (long_options): Add -P/--private.
524         (dump_target_specific): New function.
525         (dump_bfd): Handle dump_private_options.
526         (main): Handle -P.
527         * doc/binutils.texi (objdump): Document -P/--private.
528         * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
529         New variables, compute them.
530         (od_vectors): Add vectors for private dumpers. Make them uniq.
531         (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
532         * Makefile.am (HFILES): Add objdump.h
533         (CFILES): Add od-xcoff.c
534         (OBJDUMP_PRIVATE_OFILES): New variable.
535         (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
536         (objdump_LDADD): Ditto.
537         (EXTRA_objdump_SOURCES): Define.
538         * Makefile.in: Regenerate.
539         * configure: Regenerate.
541 2011-05-10  Tristan Gingold  <gingold@adacore.com>
543         * dwarf.c (process_extended_line_op): Dump unknown records.
545 2011-05-07  Alan Modra  <amodra@gmail.com>
547         PR binutils/12632
548         * objcopy.c (copy_archive): Check bfd_openw result in unknown object
549         case.  Rewrite without goto.
551 2011-05-03  Jakub Jelinek  <jakub@redhat.com>
553         * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
554         DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
555         and DW_OP_GNU_reinterpret.
557         * MAINTAINERS: Add myself as DWARF2 maintainer.
559 2011-05-02  Alan Modra  <amodra@gmail.com>
561         PR binutils/12720
562         Revert the following change
563         Michael Snyder  <msnyder@vmware.com>
564         * ar.c (move_members): Plug memory leak.
565         (delete_members): Plug memory leak.
567 2011-04-28  Tom Tromey  <tromey@redhat.com>
569         * NEWS: Add note about --dwarf-depth, --dwarf-start, and
570         dwarf-mode.el.
571         * objdump.c (suppress_bfd_header): New global.
572         (usage): Update.
573         (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
574         (options): Add dwarf-depth and dwarf-start entries.
575         (dump_bfd): Use suppress_bfd_header.
576         (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
577         * doc/binutils.texi (objcopy): Document --dwarf-depth and
578         --dwarf-start.
579         (readelf): Likewise.
580         * dwarf-mode.el: New file.
581         * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
582         (read_and_display_attr_value): Also check debug_info_p.
583         (process_debug_info): Handle dwarf_start_die and
584         dwarf_cutoff_level.
585         * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
586         * readelf.c (usage): Update.
587         (OPTION_DWARF_DEPTH): New macro.
588         (OPTION_DWARF_START): Likewise.
589         (options): Add dwarf-depth and dwarf-start entries.
590         (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
592 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
594         * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
596 2011-04-27  Tristan Gingold  <gingold@adacore.com>
598         * dwarf.c (process_extended_line_op): Handle
599         DW_LNE_HP_source_file_correlation.
601 2011-04-27  Nick Clifton  <nickc@redhat.com>
603         * po/da.po: Updated Danish translation.
605 2011-04-21  Tom Tromey  <tromey@redhat.com>
607         * readelf.c (print_stapsdt_note): New function.
608         (process_note): Use it.
610 2011-04-21  Tom Tromey  <tromey@redhat.com>
612         * readelf.c (get_stapsdt_note_type): New function.
613         (process_note): Recognize "stapsdt" notes.
615 2011-04-21  Tom Tromey  <tromey@redhat.com>
617         * readelf.c (process_corefile_note_segment): Change header field
618         widths.
619         (process_note): Change field widths.
621 2011-04-21  Tom Tromey  <tromey@redhat.com>
623         * readelf.c (print_gnu_note): New function.
624         (process_note): Use it.
626 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
628         * MAINTAINERS: Update my email address.
630 2011-04-11  Kai Tietz  <ktietz@redhat.com>
632         * windres.c (usage): Add new --preprocessor-arg option.
633         (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
634         (option long_options): Add preprocessor-arg option.
635         (main): Handle it.
636         * doc/binutils.texi: Add documentation for --preprocessor-arg
637         option.
638         * NEWS: Add line about new --preprocessor-arg option for windres.
640 2011-04-08  John Marino  <binutils@marino.st>
642         * arlex.l: Prevent redefinition of YY_NO_UNPUT.
643         * syslex.l: Likewise.
645 2011-04-07  Paul Brook  <paul@codesourcery.com>
647         * readelf.c (arm_section_get_word): Handle C6000 relocations.
648         (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
649         decode_tic6x_unwind_bytecode, expand_prel31): New functions.
650         (decode_arm_unwind): Split out common code from ARM specific bits.
651         (dump_arm_unwind): Use expand_prel31.
652         (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
653         (process_unwind): Add SHT_C6000_UNWIND.
655 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
657         * configure.in (thumb-*-pe*): Remove.
658         * configure: Regenerate.
660 2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
662         * MAINTAINERS: Update my email address.
664 2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
666         PR binutils/12632
667         * objcopy.c (copy_unknown_object): Make the archive element
668         readable.
670 2011-04-03  David S. Miller  <davem@davemloft.net>
672         * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
673         accurately, rather than how they are represented internally.
675 2011-03-31  Tristan Gingold  <gingold@adacore.com>
677         * makefile.vms (readelf.exe): New target.
679 2011-03-31  Tristan Gingold  <gingold@adacore.com>
681         * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
683 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
685         * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
686         (dump_relocations): Likewise.
688 2011-03-31  Tristan Gingold  <gingold@adacore.com>
690         * readelf.c (get_ia64_vms_note_type): New function.
691         (print_ia64_vms_note): Ditto.
692         (process_note): Recognize VMS/ia64 specific notes.
693         Display them.
694         (process_corefile_note_segment): Decode VMS notes.
696 2011-03-30  Catherine Moore  <clm@codesourcery.com>
698         * addr2line.c (translate_addresses): Sign extend the pc
699         if sign_extend_vma is enabled.
701 2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
703         * readelf.c (process_gnu_liblist): Stop memory leak.
705 2011-03-29  Alan Modra  <amodra@gmail.com>
707         * coffdump.c: Include bfd_stdint.h
709 2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
711         * coffdump.c (coff_dump): Correct spelling error.
712         (show_usage): Replace SYSROFF by COFF.
714 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
716         * coffdump.c (dump_coff_scope): Use double typecast for pointer P
717         to allow compilation for all targets.
719 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
721         * dwarf.c (process_debug_info): Use offset_size to determine
722         the bit-size of the computation unit's offset.
723         (decode_location_expression): Use dwarf_vmatoa function to display
724         DW_OP_addr OP.
725         (process_debug_info): Use dwarf_vma type for local variables
726         length and type_offset.
728 2011-03-25  Michael Snyder  <msnyder@vmware.com>
730         * strings.c (print_strings): Plug memory leak.
731         * ar.c (move_members): Plug memory leak.
732         (delete_members): Plug memory leak.
733         (write_archive): Plug memory leak.
734         * ieee.c (ieee_add_bb11): Plug memory leak.
735         (ieee_function_type): Likewise.
736         (ieee_class_baseclass): Likewise.
737         * prdbg.c (pr_function_type): Close memory leaks.
738         (pr_method_type): Likewise.
739         (tg_class_static_member): Likewise.
740         (tg_class_method_variant): Likewise.
741         (tg_class_static_method_variant): Likewise.
742         * stabs.c (parse_stab_enum_type): Fix memory leaks.
743         (parse_stab_struct_type): Likewise.
744         (parse_stab_struct_fields): Likewise.
745         (parse_stab_one_struct_field): Likewise.
746         (parse_stab_members): Likewise.
747         (stab_demangle_qualified): Likewise.
748         * objdump.c (dump_reloc_set): Free malloced memory.
749         * bucomm.c (make_tempname): Stop memory leak.
751 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
753         Replace bfd_vma type and analog types by dwarf_vma and analogs.
754         Use dwarf specific print functions to display these type values.
755         * dwarf.h (dwarf_signed_vma): New type;
756         (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
757         (DWARF2_External_PubNames): Likewise.
758         (DWARF2_External_CompUnit): Likewise.
759         (DWARF2_External_ARange): Likewise.
760         (read_leb128): Change return type to dwarf_vma.
761         * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
762         check byte_size values.
763         (dwarf_vmatoa): Change parameter type to dwarf_vma.
764         (dwarf_svmatoa): New static function.
765         (read_leb128): Change return type to dwarf_vma.
766         (read_sleb128): New static function.
767         (struct State_Machine_Registers): Change address field type to
768         dwarf_vma.
769         (process_extended_line_op): Adapt to type changes.
770         (fetch_indirect_string): Likewise.
771         (idisplay_block): Likewise.
772         (decode_location_expression): Likewise.
773         (read_and_display_attr_value): Likewise.
774         (process_debug_info): Likewise.
775         (display_debug_lines_raw): Likewise.
776         (display_debug_lines_decoded): Likewise.
777         (SLEB macro): Use new read_sleb128 function.
779 2011-03-17  Alan Modra  <amodra@gmail.com>
781         PR 12590
782         * ar.c (ranlib_main): Init arg_index properly.
783         (usage): Describe --target.
785 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
787         * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
788         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
789         DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
790         (get_AT_name): Handle DW_AT_GNU_call_site_value,
791         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
792         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
793         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
794         DW_AT_GNU_all_source_call_sites.
795         (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
796         handling.
798 2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
800         * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
801         (decode_location_expression): Handle DW_OP_GNU_entry_value.
802         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
803         (get_AT_name): Likewise.
805 2011-03-14  Michael Snyder  <msnyder@vmware.com>
807         * objcopy.c (set_pe_subsystem): Free subsystem.
809         * wrstabs.c (stab_start_struct_type): Close memory leak.
811         * readelf.c (process_version_sections): Free symbols.
813         * nm.c (display_rel_file): Free symsizes.
815 2011-03-10  Nick Clifton  <nickc@redhat.com>
817         * readelf.c (get_machine_name): Update EM_V850 entry.
819 2011-03-03  Mike Frysinger  <vapier@gentoo.org>
821         * objdump.c (usage): Fix single typo.
822         * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
823         po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
825 2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
827         PR binutils/12523
828         * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
830 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
832         * debug.c (debug_start_source): Use filename_(n)cmp.
833         * ieee.c (ieee_finish_compilation_unit): Likewise.
834         (ieee_lineno): Likewise.
835         * nlmconv.c (main): Likewise.
836         * objcopy.c (strip_main): Likewise.
837         (copy_main): Likewise.
838         * objdump.c (show_line): Likewise.
839         (dump_reloc_set): Likewise.
840         * srconv.c (main): Likewise.
841         * wrstabs.c (stab_lineno): Likewise.
843 2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
845         * readelf.c (decode_arm_unwind): Implement decoding of remaining
846         ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
848 2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
850         * dwarf.c (read_leb128): Use bfd_vma instead of
851         long type.
852         (dwarf_vmatoa): New helper routine.
853         (process_extended_line_op): Use for adr bfd_vma
854         type and print those typed values via BFD_VMA_FMT
855         or via dwarf_vmatoa for localized prints.
856         (fetch_indirect_string): Adjust offset's type.
857         (decode_location_expression): Adjust argument types
858         and uvalue type.
859         (read_and_display_attr_value): Likewise.
860         (read_and_display_attr): Likewise.
861         (decode_location_expression): Adjust printf format.
862         (process_debug_info): Likewise.
863         (display_debug_lines_raw): Likewise.
864         (display_debug_lines_decoded): Likewise.
865         (display_debug_pubnames): Likewise.
866         (display_debug_loc): Likewise.
867         (display_debug_aranges): Likewise.
868         * dwarf.h (DWARF2_External_LineInfo,
869         DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
870         DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
871         DWARF2_Internal_CompUnit, DWARF2_External_ARange,
872         DWARF2_Internal_ARange): Added..
873         (read_leb128): Adjust return type.
875 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
877         * configure: Regenerate.
879 2011-02-08  Nick Clifton  <nickc@redhat.com>
881         PR binutils/12467
882         * readelf.c (process_program_headers): Issue a warning if there
883         are no program headers but the file header has a non-zero program
884         header offset.
885         (process_section_headers): Issue a warning if there are no section
886         headers but the file header has a non-zero section header offset.
887         (process_section_groups): Reword the no section message so that it
888         can be distinguished from the one issued by process_section_headers.
890 2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
891             Doug Evans  <dje@google.com>
893         * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
895 2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
897         * readelf.c (process_object): Free dynamic_section after use.
899 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
901         PR binutils/12408
902         * readelf.c (process_archive): Free and reset dump_sects
903         after processing each archive member.
905 2011-01-11  Andreas Schwab  <schwab@redhat.com>
907         * readelf.c (print_symbol): Handle symbol characters as unsigned.
908         Whitespace fixes.
910 2011-01-10  Nick Clifton  <nickc@redhat.com>
912         * po/da.po: Updated Danish translation.
914 2011-01-06  Vladimir Siminov  <sv@sw.ru>
916         * bucomm.c (get_file_size): Check for negative sizes and issue a
917         warning message if encountered.
919 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
921         * version.c (print_version): Update copyright to 2011.
923 For older changes see ChangeLog-2010
925 Local Variables:
926 mode: change-log
927 left-margin: 8
928 fill-column: 74
929 version-control: never
930 End: