* readelf.c (get_section_type_name): When displaying an unknown
[binutils.git] / binutils / ChangeLog
blob69140c277022cecf0afa3329fa7d984e24fbf399
1 2011-06-29  Nick Clifton  <nickc@redhat.com>
3         * readelf.c (get_section_type_name): When displaying an unknown
4         section type display the hex value first on the assumption that
5         the full message will probably be truncated into a 15 character
6         field.
8 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10         * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
11         DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
12         Handle DW_OP_GNU_parameter_ref.
14 2011-06-16  Tom Tromey  <tromey@redhat.com>
16         * dwarf-mode.el (dwarf-do-insert-substructure): Call
17         expand-file-name.
18         (dwarf-do-refresh): Likewise.
20 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
22         * readelf.c (get_note_type): Handle NT_ARM_VFP.
24 2011-06-13  Walter Lee  <walt@tilera.com>
26         * readelf.c: Include tilepro.h and tilegx.h.
27         (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
28         (dump_relocations): Likewise.
29         (get_machine_name): Likewise.
30         (is_32bit_abs_reloc): Likewise.
31         (is_32bit_pcerel_reloc): Likewise.
32         (is_64bit_abs_reloc): Likewise.
33         (is_64bit_pcrel_reloc): Likewise.
35 2011-06-09  Tristan Gingold  <gingold@adacore.com>
37         * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
38         length.
40 2011-06-08  Nick Clifton  <nickc@redhat.com>
42         PR binutils/12855
43         * readelf.c (process_version_sections): Handle binaries containing
44         corrupt version information.
45         (process_symbol_table): Stop processing a symbol's version
46         information if it could not be read in.
48         (get_data): Add comment describing the function.
49         (process_section_headers): Set dynamic_strings_length to 0 if the
50         dynamic strings could not be read in.
51         (process_dynamic_section): Likewise.
52         (process_section_groups): Stop processing the group information if
53         the data could not be read in.
54         (hppa_processs_unwind): Assert that there is only one string table
55         in the file.
56         (arm_process_unwind): Likewise.
57         (ia64_process_unwind): Likewise.
58         Set the size of the unwind auxillary information to 0 if the data
59         could not be read.
60         (load_specific_debug_section): Handle a failure to read in the
61         section.
62         (process_mips_specific): Stop display of the PLT GOT section if it
63         could not be read in.
65 2011-06-08  Tristan Gingold  <gingold@adacore.com>
67         * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
69 2011-06-07  Cary Coutant  <ccoutant@google.com>
71         * dwarf.c: Fix conversion to TU number.
73 2011-06-02  Nick Clifton  <nickc@redhat.com>
75         * resres.c: Fix spelling typo.
76         * windint.h: Likewise.
77         * windmc.c: Likewise.
78         * windres.c: Likewise.
79         * po/POTFILES.in: Regenerate.
80         * po/binutils.pot: Regenerate.
82 2011-06-01  Daniel Jacobowitz  <drow@false.org>
84         * MAINTAINERS: Update my email address.
86 2011-05-31  Matthias Klose  <doko@ubuntu.com>
88         * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
89         * configure: Regenerate.
91 2011-05-30  Alan Modra  <amodra@gmail.com>
93         PR binutils/12820
94         * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
95         (bin_SCRIPTS): ..here.
96         (EXTRA_SCRIPTS): Define.
97         (EXTRA_DIST): Add embedspu.sh.
98         (DISTCLEANFILES): Add embedspu.
99         (embedspu): Depend on Makefile.  Replace sed "s" command with "c".
100         * Makefile.in: Regenerate.
102 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
104         * dwarf.c (loc_offsets): New variable.
105         (loc_offsets_compar): New routine.
106         (display_debug_loc): Handle loc_offsets not being in ascending order
107         and also a single .debug_loc entry being used multiple times.
109 2011-05-18  Nick Clifton  <nickc@redhat.com>
111         PR binutils/12753
112         * nm.c (filter_symbols): Treat unique symbols as global symbols.
113         * doc/binutils.texi (nm): Mention that some lowercase letters
114         actually indicate global symbols.
116 2011-05-15  Tristan Gingold  <gingold@adacore.com>
118         * od-xcoff.c: New file.
119         * objdump.h: New file.
120         * objdump.c: Include objdump.h
121         (dump_private_options, objdump_private_vectors): New variables.
122         (usage): Mention -P/--private.  Display handled options.
123         (long_options): Add -P/--private.
124         (dump_target_specific): New function.
125         (dump_bfd): Handle dump_private_options.
126         (main): Handle -P.
127         * doc/binutils.texi (objdump): Document -P/--private.
128         * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
129         New variables, compute them.
130         (od_vectors): Add vectors for private dumpers. Make them uniq.
131         (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
132         * Makefile.am (HFILES): Add objdump.h
133         (CFILES): Add od-xcoff.c
134         (OBJDUMP_PRIVATE_OFILES): New variable.
135         (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
136         (objdump_LDADD): Ditto.
137         (EXTRA_objdump_SOURCES): Define.
138         * Makefile.in: Regenerate.
139         * configure: Regenerate.
141 2011-05-10  Tristan Gingold  <gingold@adacore.com>
143         * dwarf.c (process_extended_line_op): Dump unknown records.
145 2011-05-07  Alan Modra  <amodra@gmail.com>
147         PR binutils/12632
148         * objcopy.c (copy_archive): Check bfd_openw result in unknown object
149         case.  Rewrite without goto.
151 2011-05-03  Jakub Jelinek  <jakub@redhat.com>
153         * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
154         DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
155         and DW_OP_GNU_reinterpret.
157         * MAINTAINERS: Add myself as DWARF2 maintainer.
159 2011-05-02  Alan Modra  <amodra@gmail.com>
161         PR binutils/12720
162         Revert the following change
163         Michael Snyder  <msnyder@vmware.com>
164         * ar.c (move_members): Plug memory leak.
165         (delete_members): Plug memory leak.
167 2011-04-28  Tom Tromey  <tromey@redhat.com>
169         * NEWS: Add note about --dwarf-depth, --dwarf-start, and
170         dwarf-mode.el.
171         * objdump.c (suppress_bfd_header): New global.
172         (usage): Update.
173         (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
174         (options): Add dwarf-depth and dwarf-start entries.
175         (dump_bfd): Use suppress_bfd_header.
176         (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
177         * doc/binutils.texi (objcopy): Document --dwarf-depth and
178         --dwarf-start.
179         (readelf): Likewise.
180         * dwarf-mode.el: New file.
181         * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
182         (read_and_display_attr_value): Also check debug_info_p.
183         (process_debug_info): Handle dwarf_start_die and
184         dwarf_cutoff_level.
185         * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
186         * readelf.c (usage): Update.
187         (OPTION_DWARF_DEPTH): New macro.
188         (OPTION_DWARF_START): Likewise.
189         (options): Add dwarf-depth and dwarf-start entries.
190         (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
192 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
194         * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
196 2011-04-27  Tristan Gingold  <gingold@adacore.com>
198         * dwarf.c (process_extended_line_op): Handle
199         DW_LNE_HP_source_file_correlation.
201 2011-04-27  Nick Clifton  <nickc@redhat.com>
203         * po/da.po: Updated Danish translation.
205 2011-04-21  Tom Tromey  <tromey@redhat.com>
207         * readelf.c (print_stapsdt_note): New function.
208         (process_note): Use it.
210 2011-04-21  Tom Tromey  <tromey@redhat.com>
212         * readelf.c (get_stapsdt_note_type): New function.
213         (process_note): Recognize "stapsdt" notes.
215 2011-04-21  Tom Tromey  <tromey@redhat.com>
217         * readelf.c (process_corefile_note_segment): Change header field
218         widths.
219         (process_note): Change field widths.
221 2011-04-21  Tom Tromey  <tromey@redhat.com>
223         * readelf.c (print_gnu_note): New function.
224         (process_note): Use it.
226 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
228         * MAINTAINERS: Update my email address.
230 2011-04-11  Kai Tietz  <ktietz@redhat.com>
232         * windres.c (usage): Add new --preprocessor-arg option.
233         (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
234         (option long_options): Add preprocessor-arg option.
235         (main): Handle it.
236         * doc/binutils.texi: Add documentation for --preprocessor-arg
237         option.
238         * NEWS: Add line about new --preprocessor-arg option for windres.
240 2011-04-08  John Marino  <binutils@marino.st>
242         * arlex.l: Prevent redefinition of YY_NO_UNPUT.
243         * syslex.l: Likewise.
245 2011-04-07  Paul Brook  <paul@codesourcery.com>
247         * readelf.c (arm_section_get_word): Handle C6000 relocations.
248         (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
249         decode_tic6x_unwind_bytecode, expand_prel31): New functions.
250         (decode_arm_unwind): Split out common code from ARM specific bits.
251         (dump_arm_unwind): Use expand_prel31.
252         (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
253         (process_unwind): Add SHT_C6000_UNWIND.
255 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
257         * configure.in (thumb-*-pe*): Remove.
258         * configure: Regenerate.
260 2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
262         * MAINTAINERS: Update my email address.
264 2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
266         PR binutils/12632
267         * objcopy.c (copy_unknown_object): Make the archive element
268         readable.
270 2011-04-03  David S. Miller  <davem@davemloft.net>
272         * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
273         accurately, rather than how they are represented internally.
275 2011-03-31  Tristan Gingold  <gingold@adacore.com>
277         * makefile.vms (readelf.exe): New target.
279 2011-03-31  Tristan Gingold  <gingold@adacore.com>
281         * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
283 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
285         * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
286         (dump_relocations): Likewise.
288 2011-03-31  Tristan Gingold  <gingold@adacore.com>
290         * readelf.c (get_ia64_vms_note_type): New function.
291         (print_ia64_vms_note): Ditto.
292         (process_note): Recognize VMS/ia64 specific notes.
293         Display them.
294         (process_corefile_note_segment): Decode VMS notes.
296 2011-03-30  Catherine Moore  <clm@codesourcery.com>
298         * addr2line.c (translate_addresses): Sign extend the pc
299         if sign_extend_vma is enabled.
301 2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
303         * readelf.c (process_gnu_liblist): Stop memory leak.
305 2011-03-29  Alan Modra  <amodra@gmail.com>
307         * coffdump.c: Include bfd_stdint.h
309 2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
311         * coffdump.c (coff_dump): Correct spelling error.
312         (show_usage): Replace SYSROFF by COFF.
314 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
316         * coffdump.c (dump_coff_scope): Use double typecast for pointer P
317         to allow compilation for all targets.
319 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
321         * dwarf.c (process_debug_info): Use offset_size to determine
322         the bit-size of the computation unit's offset.
323         (decode_location_expression): Use dwarf_vmatoa function to display
324         DW_OP_addr OP.
325         (process_debug_info): Use dwarf_vma type for local variables
326         length and type_offset.
328 2011-03-25  Michael Snyder  <msnyder@vmware.com>
330         * strings.c (print_strings): Plug memory leak.
331         * ar.c (move_members): Plug memory leak.
332         (delete_members): Plug memory leak.
333         (write_archive): Plug memory leak.
334         * ieee.c (ieee_add_bb11): Plug memory leak.
335         (ieee_function_type): Likewise.
336         (ieee_class_baseclass): Likewise.
337         * prdbg.c (pr_function_type): Close memory leaks.
338         (pr_method_type): Likewise.
339         (tg_class_static_member): Likewise.
340         (tg_class_method_variant): Likewise.
341         (tg_class_static_method_variant): Likewise.
342         * stabs.c (parse_stab_enum_type): Fix memory leaks.
343         (parse_stab_struct_type): Likewise.
344         (parse_stab_struct_fields): Likewise.
345         (parse_stab_one_struct_field): Likewise.
346         (parse_stab_members): Likewise.
347         (stab_demangle_qualified): Likewise.
348         * objdump.c (dump_reloc_set): Free malloced memory.
349         * bucomm.c (make_tempname): Stop memory leak.
351 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
353         Replace bfd_vma type and analog types by dwarf_vma and analogs.
354         Use dwarf specific print functions to display these type values.
355         * dwarf.h (dwarf_signed_vma): New type;
356         (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
357         (DWARF2_External_PubNames): Likewise.
358         (DWARF2_External_CompUnit): Likewise.
359         (DWARF2_External_ARange): Likewise.
360         (read_leb128): Change return type to dwarf_vma.
361         * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
362         check byte_size values.
363         (dwarf_vmatoa): Change parameter type to dwarf_vma.
364         (dwarf_svmatoa): New static function.
365         (read_leb128): Change return type to dwarf_vma.
366         (read_sleb128): New static function.
367         (struct State_Machine_Registers): Change address field type to
368         dwarf_vma.
369         (process_extended_line_op): Adapt to type changes.
370         (fetch_indirect_string): Likewise.
371         (idisplay_block): Likewise.
372         (decode_location_expression): Likewise.
373         (read_and_display_attr_value): Likewise.
374         (process_debug_info): Likewise.
375         (display_debug_lines_raw): Likewise.
376         (display_debug_lines_decoded): Likewise.
377         (SLEB macro): Use new read_sleb128 function.
379 2011-03-17  Alan Modra  <amodra@gmail.com>
381         PR 12590
382         * ar.c (ranlib_main): Init arg_index properly.
383         (usage): Describe --target.
385 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
387         * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
388         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
389         DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
390         (get_AT_name): Handle DW_AT_GNU_call_site_value,
391         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
392         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
393         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
394         DW_AT_GNU_all_source_call_sites.
395         (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
396         handling.
398 2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
400         * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
401         (decode_location_expression): Handle DW_OP_GNU_entry_value.
402         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
403         (get_AT_name): Likewise.
405 2011-03-14  Michael Snyder  <msnyder@vmware.com>
407         * objcopy.c (set_pe_subsystem): Free subsystem.
409         * wrstabs.c (stab_start_struct_type): Close memory leak.
411         * readelf.c (process_version_sections): Free symbols.
413         * nm.c (display_rel_file): Free symsizes.
415 2011-03-10  Nick Clifton  <nickc@redhat.com>
417         * readelf.c (get_machine_name): Update EM_V850 entry.
419 2011-03-03  Mike Frysinger  <vapier@gentoo.org>
421         * objdump.c (usage): Fix single typo.
422         * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
423         po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
425 2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
427         PR binutils/12523
428         * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
430 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
432         * debug.c (debug_start_source): Use filename_(n)cmp.
433         * ieee.c (ieee_finish_compilation_unit): Likewise.
434         (ieee_lineno): Likewise.
435         * nlmconv.c (main): Likewise.
436         * objcopy.c (strip_main): Likewise.
437         (copy_main): Likewise.
438         * objdump.c (show_line): Likewise.
439         (dump_reloc_set): Likewise.
440         * srconv.c (main): Likewise.
441         * wrstabs.c (stab_lineno): Likewise.
443 2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
445         * readelf.c (decode_arm_unwind): Implement decoding of remaining
446         ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
448 2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
450         * dwarf.c (read_leb128): Use bfd_vma instead of
451         long type.
452         (dwarf_vmatoa): New helper routine.
453         (process_extended_line_op): Use for adr bfd_vma
454         type and print those typed values via BFD_VMA_FMT
455         or via dwarf_vmatoa for localized prints.
456         (fetch_indirect_string): Adjust offset's type.
457         (decode_location_expression): Adjust argument types
458         and uvalue type.
459         (read_and_display_attr_value): Likewise.
460         (read_and_display_attr): Likewise.
461         (decode_location_expression): Adjust printf format.
462         (process_debug_info): Likewise.
463         (display_debug_lines_raw): Likewise.
464         (display_debug_lines_decoded): Likewise.
465         (display_debug_pubnames): Likewise.
466         (display_debug_loc): Likewise.
467         (display_debug_aranges): Likewise.
468         * dwarf.h (DWARF2_External_LineInfo,
469         DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
470         DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
471         DWARF2_Internal_CompUnit, DWARF2_External_ARange,
472         DWARF2_Internal_ARange): Added..
473         (read_leb128): Adjust return type.
475 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
477         * configure: Regenerate.
479 2011-02-08  Nick Clifton  <nickc@redhat.com>
481         PR binutils/12467
482         * readelf.c (process_program_headers): Issue a warning if there
483         are no program headers but the file header has a non-zero program
484         header offset.
485         (process_section_headers): Issue a warning if there are no section
486         headers but the file header has a non-zero section header offset.
487         (process_section_groups): Reword the no section message so that it
488         can be distinguished from the one issued by process_section_headers.
490 2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
491             Doug Evans  <dje@google.com>
493         * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
495 2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
497         * readelf.c (process_object): Free dynamic_section after use.
499 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
501         PR binutils/12408
502         * readelf.c (process_archive): Free and reset dump_sects
503         after processing each archive member.
505 2011-01-11  Andreas Schwab  <schwab@redhat.com>
507         * readelf.c (print_symbol): Handle symbol characters as unsigned.
508         Whitespace fixes.
510 2011-01-10  Nick Clifton  <nickc@redhat.com>
512         * po/da.po: Updated Danish translation.
514 2011-01-06  Vladimir Siminov  <sv@sw.ru>
516         * bucomm.c (get_file_size): Check for negative sizes and issue a
517         warning message if encountered.
519 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
521         * version.c (print_version): Update copyright to 2011.
523 For older changes see ChangeLog-2010
525 Local Variables:
526 mode: change-log
527 left-margin: 8
528 fill-column: 74
529 version-control: never
530 End: