1 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
4 DW_FORM_data8 as location list pointers only for DWARF < 4.
6 2011-07-26 Jakub Jelinek <jakub@redhat.com>
8 * NEWS: Mention .debug_macro support.
9 * dwarf.c (read_and_display_attr_value): Don't print a tab
11 (get_AT_name): Handle DW_AT_GNU_macros.
12 (get_line_filename_and_dirname, display_debug_macro): New
14 (debug_displays): Add an entry for .debug_macro and .zdebug_macro.
15 * readelf.c (process_section_headers): With do_debug_macinfo
16 handle also .debug_macro sections.
17 * dwarf.h (dwarf_section_display_enum): Add macro.
19 2011-07-24 Chao-ying Fu <fu@mips.com>
20 Maciej W. Rozycki <macro@codesourcery.com>
22 * readelf.c (get_machine_flags): Handle microMIPS ASE.
23 (get_mips_symbol_other): Likewise.
25 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
27 * dwarf.c (init_dwarf_regnames): Handle EM_K1OM.
29 * elfedit.c (elf_machine): Support EM_K1OM.
30 (elf_class): Likewise.
32 * readelf.c (guess_is_rela): Handle EM_K1OM.
33 (dump_relocations): Likewise.
34 (get_machine_name): Likewise.
35 (get_section_type_name): Likewise.
36 (get_elf_section_flags): Likewise.
37 (process_section_headers): Likewise.
38 (get_symbol_index_type): Likewise.
39 (is_32bit_abs_reloc): Likewise.
40 (is_32bit_pcrel_reloc): Likewise.
41 (is_64bit_abs_reloc): Likewise.
42 (is_64bit_pcrel_reloc): Likewise.
43 (is_none_reloc): Likewise.
45 * doc/binutils.texi: Mention K1OM for elfedit.
47 2011-07-11 Cary Coutant <ccoutant@google.com>
50 * binutils/nm.c (display_file): Decompress debug sections when
51 printing line numbers.
53 2011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
54 Thomas Schwinge <thomas@schwinge.name>
57 * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
58 alias and ELFOSABI_HURD. Add GNU alias.
59 * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
61 * doc/binutils.texi <elfedit>: Update accordingly.
63 2011-07-01 Nick Clifton <nickc@redhat.com>
66 * doc/binutils.texi (ar cmdline): Document --target, --version and
67 --help command line options.
69 2011-06-30 Nick Clifton <nickc@redhat.com>
72 * ar.c (main): When asked to move members in an archive that is
73 being created, ignore the move request.
75 2011-06-29 Nick Clifton <nickc@redhat.com>
77 * readelf.c (get_section_type_name): When displaying an unknown
78 section type display the hex value first on the assumption that
79 the full message will probably be truncated into a 15 character
82 2011-06-22 Jakub Jelinek <jakub@redhat.com>
84 * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
85 DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
86 Handle DW_OP_GNU_parameter_ref.
88 2011-06-16 Tom Tromey <tromey@redhat.com>
90 * dwarf-mode.el (dwarf-do-insert-substructure): Call
92 (dwarf-do-refresh): Likewise.
94 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
96 * readelf.c (get_note_type): Handle NT_ARM_VFP.
98 2011-06-13 Walter Lee <walt@tilera.com>
100 * readelf.c: Include tilepro.h and tilegx.h.
101 (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
102 (dump_relocations): Likewise.
103 (get_machine_name): Likewise.
104 (is_32bit_abs_reloc): Likewise.
105 (is_32bit_pcerel_reloc): Likewise.
106 (is_64bit_abs_reloc): Likewise.
107 (is_64bit_pcrel_reloc): Likewise.
109 2011-06-09 Tristan Gingold <gingold@adacore.com>
111 * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
114 2011-06-08 Nick Clifton <nickc@redhat.com>
117 * readelf.c (process_version_sections): Handle binaries containing
118 corrupt version information.
119 (process_symbol_table): Stop processing a symbol's version
120 information if it could not be read in.
122 (get_data): Add comment describing the function.
123 (process_section_headers): Set dynamic_strings_length to 0 if the
124 dynamic strings could not be read in.
125 (process_dynamic_section): Likewise.
126 (process_section_groups): Stop processing the group information if
127 the data could not be read in.
128 (hppa_processs_unwind): Assert that there is only one string table
130 (arm_process_unwind): Likewise.
131 (ia64_process_unwind): Likewise.
132 Set the size of the unwind auxillary information to 0 if the data
134 (load_specific_debug_section): Handle a failure to read in the
136 (process_mips_specific): Stop display of the PLT GOT section if it
137 could not be read in.
139 2011-06-08 Tristan Gingold <gingold@adacore.com>
141 * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
143 2011-06-07 Cary Coutant <ccoutant@google.com>
145 * dwarf.c: Fix conversion to TU number.
147 2011-06-02 Nick Clifton <nickc@redhat.com>
149 * resres.c: Fix spelling typo.
150 * windint.h: Likewise.
151 * windmc.c: Likewise.
152 * windres.c: Likewise.
153 * po/POTFILES.in: Regenerate.
154 * po/binutils.pot: Regenerate.
156 2011-06-01 Daniel Jacobowitz <drow@false.org>
158 * MAINTAINERS: Update my email address.
160 2011-05-31 Matthias Klose <doko@ubuntu.com>
162 * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
163 * configure: Regenerate.
165 2011-05-30 Alan Modra <amodra@gmail.com>
168 * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
169 (bin_SCRIPTS): ..here.
170 (EXTRA_SCRIPTS): Define.
171 (EXTRA_DIST): Add embedspu.sh.
172 (DISTCLEANFILES): Add embedspu.
173 (embedspu): Depend on Makefile. Replace sed "s" command with "c".
174 * Makefile.in: Regenerate.
176 2011-05-25 Jakub Jelinek <jakub@redhat.com>
178 * dwarf.c (loc_offsets): New variable.
179 (loc_offsets_compar): New routine.
180 (display_debug_loc): Handle loc_offsets not being in ascending order
181 and also a single .debug_loc entry being used multiple times.
183 2011-05-18 Nick Clifton <nickc@redhat.com>
186 * nm.c (filter_symbols): Treat unique symbols as global symbols.
187 * doc/binutils.texi (nm): Mention that some lowercase letters
188 actually indicate global symbols.
190 2011-05-15 Tristan Gingold <gingold@adacore.com>
192 * od-xcoff.c: New file.
193 * objdump.h: New file.
194 * objdump.c: Include objdump.h
195 (dump_private_options, objdump_private_vectors): New variables.
196 (usage): Mention -P/--private. Display handled options.
197 (long_options): Add -P/--private.
198 (dump_target_specific): New function.
199 (dump_bfd): Handle dump_private_options.
201 * doc/binutils.texi (objdump): Document -P/--private.
202 * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
203 New variables, compute them.
204 (od_vectors): Add vectors for private dumpers. Make them uniq.
205 (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
206 * Makefile.am (HFILES): Add objdump.h
207 (CFILES): Add od-xcoff.c
208 (OBJDUMP_PRIVATE_OFILES): New variable.
209 (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
210 (objdump_LDADD): Ditto.
211 (EXTRA_objdump_SOURCES): Define.
212 * Makefile.in: Regenerate.
213 * configure: Regenerate.
215 2011-05-10 Tristan Gingold <gingold@adacore.com>
217 * dwarf.c (process_extended_line_op): Dump unknown records.
219 2011-05-07 Alan Modra <amodra@gmail.com>
222 * objcopy.c (copy_archive): Check bfd_openw result in unknown object
223 case. Rewrite without goto.
225 2011-05-03 Jakub Jelinek <jakub@redhat.com>
227 * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
228 DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
229 and DW_OP_GNU_reinterpret.
231 * MAINTAINERS: Add myself as DWARF2 maintainer.
233 2011-05-02 Alan Modra <amodra@gmail.com>
236 Revert the following change
237 Michael Snyder <msnyder@vmware.com>
238 * ar.c (move_members): Plug memory leak.
239 (delete_members): Plug memory leak.
241 2011-04-28 Tom Tromey <tromey@redhat.com>
243 * NEWS: Add note about --dwarf-depth, --dwarf-start, and
245 * objdump.c (suppress_bfd_header): New global.
247 (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
248 (options): Add dwarf-depth and dwarf-start entries.
249 (dump_bfd): Use suppress_bfd_header.
250 (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
251 * doc/binutils.texi (objcopy): Document --dwarf-depth and
254 * dwarf-mode.el: New file.
255 * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
256 (read_and_display_attr_value): Also check debug_info_p.
257 (process_debug_info): Handle dwarf_start_die and
259 * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
260 * readelf.c (usage): Update.
261 (OPTION_DWARF_DEPTH): New macro.
262 (OPTION_DWARF_START): Likewise.
263 (options): Add dwarf-depth and dwarf-start entries.
264 (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
266 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
268 * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
270 2011-04-27 Tristan Gingold <gingold@adacore.com>
272 * dwarf.c (process_extended_line_op): Handle
273 DW_LNE_HP_source_file_correlation.
275 2011-04-27 Nick Clifton <nickc@redhat.com>
277 * po/da.po: Updated Danish translation.
279 2011-04-21 Tom Tromey <tromey@redhat.com>
281 * readelf.c (print_stapsdt_note): New function.
282 (process_note): Use it.
284 2011-04-21 Tom Tromey <tromey@redhat.com>
286 * readelf.c (get_stapsdt_note_type): New function.
287 (process_note): Recognize "stapsdt" notes.
289 2011-04-21 Tom Tromey <tromey@redhat.com>
291 * readelf.c (process_corefile_note_segment): Change header field
293 (process_note): Change field widths.
295 2011-04-21 Tom Tromey <tromey@redhat.com>
297 * readelf.c (print_gnu_note): New function.
298 (process_note): Use it.
300 2011-04-21 Jie Zhang <jzhang918@gmail.com>
302 * MAINTAINERS: Update my email address.
304 2011-04-11 Kai Tietz <ktietz@redhat.com>
306 * windres.c (usage): Add new --preprocessor-arg option.
307 (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
308 (option long_options): Add preprocessor-arg option.
310 * doc/binutils.texi: Add documentation for --preprocessor-arg
312 * NEWS: Add line about new --preprocessor-arg option for windres.
314 2011-04-08 John Marino <binutils@marino.st>
316 * arlex.l: Prevent redefinition of YY_NO_UNPUT.
317 * syslex.l: Likewise.
319 2011-04-07 Paul Brook <paul@codesourcery.com>
321 * readelf.c (arm_section_get_word): Handle C6000 relocations.
322 (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
323 decode_tic6x_unwind_bytecode, expand_prel31): New functions.
324 (decode_arm_unwind): Split out common code from ARM specific bits.
325 (dump_arm_unwind): Use expand_prel31.
326 (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
327 (process_unwind): Add SHT_C6000_UNWIND.
329 2011-04-06 Joseph Myers <joseph@codesourcery.com>
331 * configure.in (thumb-*-pe*): Remove.
332 * configure: Regenerate.
334 2011-04-05 Sterling Augustine <augustine.sterling@gmail.com>
336 * MAINTAINERS: Update my email address.
338 2011-04-03 H.J. Lu <hongjiu.lu@intel.com>
341 * objcopy.c (copy_unknown_object): Make the archive element
344 2011-04-03 David S. Miller <davem@davemloft.net>
346 * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
347 accurately, rather than how they are represented internally.
349 2011-03-31 Tristan Gingold <gingold@adacore.com>
351 * makefile.vms (readelf.exe): New target.
353 2011-03-31 Tristan Gingold <gingold@adacore.com>
355 * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
357 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
359 * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
360 (dump_relocations): Likewise.
362 2011-03-31 Tristan Gingold <gingold@adacore.com>
364 * readelf.c (get_ia64_vms_note_type): New function.
365 (print_ia64_vms_note): Ditto.
366 (process_note): Recognize VMS/ia64 specific notes.
368 (process_corefile_note_segment): Decode VMS notes.
370 2011-03-30 Catherine Moore <clm@codesourcery.com>
372 * addr2line.c (translate_addresses): Sign extend the pc
373 if sign_extend_vma is enabled.
375 2011-03-30 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
377 * readelf.c (process_gnu_liblist): Stop memory leak.
379 2011-03-29 Alan Modra <amodra@gmail.com>
381 * coffdump.c: Include bfd_stdint.h
383 2011-03-28 Pierre Muller <muller@ics.u-strasbg.fr>
385 * coffdump.c (coff_dump): Correct spelling error.
386 (show_usage): Replace SYSROFF by COFF.
388 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
390 * coffdump.c (dump_coff_scope): Use double typecast for pointer P
391 to allow compilation for all targets.
393 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
395 * dwarf.c (process_debug_info): Use offset_size to determine
396 the bit-size of the computation unit's offset.
397 (decode_location_expression): Use dwarf_vmatoa function to display
399 (process_debug_info): Use dwarf_vma type for local variables
400 length and type_offset.
402 2011-03-25 Michael Snyder <msnyder@vmware.com>
404 * strings.c (print_strings): Plug memory leak.
405 * ar.c (move_members): Plug memory leak.
406 (delete_members): Plug memory leak.
407 (write_archive): Plug memory leak.
408 * ieee.c (ieee_add_bb11): Plug memory leak.
409 (ieee_function_type): Likewise.
410 (ieee_class_baseclass): Likewise.
411 * prdbg.c (pr_function_type): Close memory leaks.
412 (pr_method_type): Likewise.
413 (tg_class_static_member): Likewise.
414 (tg_class_method_variant): Likewise.
415 (tg_class_static_method_variant): Likewise.
416 * stabs.c (parse_stab_enum_type): Fix memory leaks.
417 (parse_stab_struct_type): Likewise.
418 (parse_stab_struct_fields): Likewise.
419 (parse_stab_one_struct_field): Likewise.
420 (parse_stab_members): Likewise.
421 (stab_demangle_qualified): Likewise.
422 * objdump.c (dump_reloc_set): Free malloced memory.
423 * bucomm.c (make_tempname): Stop memory leak.
425 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
427 Replace bfd_vma type and analog types by dwarf_vma and analogs.
428 Use dwarf specific print functions to display these type values.
429 * dwarf.h (dwarf_signed_vma): New type;
430 (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
431 (DWARF2_External_PubNames): Likewise.
432 (DWARF2_External_CompUnit): Likewise.
433 (DWARF2_External_ARange): Likewise.
434 (read_leb128): Change return type to dwarf_vma.
435 * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
436 check byte_size values.
437 (dwarf_vmatoa): Change parameter type to dwarf_vma.
438 (dwarf_svmatoa): New static function.
439 (read_leb128): Change return type to dwarf_vma.
440 (read_sleb128): New static function.
441 (struct State_Machine_Registers): Change address field type to
443 (process_extended_line_op): Adapt to type changes.
444 (fetch_indirect_string): Likewise.
445 (idisplay_block): Likewise.
446 (decode_location_expression): Likewise.
447 (read_and_display_attr_value): Likewise.
448 (process_debug_info): Likewise.
449 (display_debug_lines_raw): Likewise.
450 (display_debug_lines_decoded): Likewise.
451 (SLEB macro): Use new read_sleb128 function.
453 2011-03-17 Alan Modra <amodra@gmail.com>
456 * ar.c (ranlib_main): Init arg_index properly.
457 (usage): Describe --target.
459 2011-03-16 Jakub Jelinek <jakub@redhat.com>
461 * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
462 (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
463 DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
464 (get_AT_name): Handle DW_AT_GNU_call_site_value,
465 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
466 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
467 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
468 DW_AT_GNU_all_source_call_sites.
469 (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
472 2011-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
474 * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
475 (decode_location_expression): Handle DW_OP_GNU_entry_value.
476 (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
477 (get_AT_name): Likewise.
479 2011-03-14 Michael Snyder <msnyder@vmware.com>
481 * objcopy.c (set_pe_subsystem): Free subsystem.
483 * wrstabs.c (stab_start_struct_type): Close memory leak.
485 * readelf.c (process_version_sections): Free symbols.
487 * nm.c (display_rel_file): Free symsizes.
489 2011-03-10 Nick Clifton <nickc@redhat.com>
491 * readelf.c (get_machine_name): Update EM_V850 entry.
493 2011-03-03 Mike Frysinger <vapier@gentoo.org>
495 * objdump.c (usage): Fix single typo.
496 * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
497 po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
499 2011-03-01 Akos Pasztory <akos.pasztory@gmail.com>
502 * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
504 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
506 * debug.c (debug_start_source): Use filename_(n)cmp.
507 * ieee.c (ieee_finish_compilation_unit): Likewise.
508 (ieee_lineno): Likewise.
509 * nlmconv.c (main): Likewise.
510 * objcopy.c (strip_main): Likewise.
511 (copy_main): Likewise.
512 * objdump.c (show_line): Likewise.
513 (dump_reloc_set): Likewise.
514 * srconv.c (main): Likewise.
515 * wrstabs.c (stab_lineno): Likewise.
517 2011-02-24 Zachary T Welch <zwelch@codesourcery.com>
519 * readelf.c (decode_arm_unwind): Implement decoding of remaining
520 ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
522 2011-02-23 Kai Tietz <kai.tietz@onevision.com>
524 * dwarf.c (read_leb128): Use bfd_vma instead of
526 (dwarf_vmatoa): New helper routine.
527 (process_extended_line_op): Use for adr bfd_vma
528 type and print those typed values via BFD_VMA_FMT
529 or via dwarf_vmatoa for localized prints.
530 (fetch_indirect_string): Adjust offset's type.
531 (decode_location_expression): Adjust argument types
533 (read_and_display_attr_value): Likewise.
534 (read_and_display_attr): Likewise.
535 (decode_location_expression): Adjust printf format.
536 (process_debug_info): Likewise.
537 (display_debug_lines_raw): Likewise.
538 (display_debug_lines_decoded): Likewise.
539 (display_debug_pubnames): Likewise.
540 (display_debug_loc): Likewise.
541 (display_debug_aranges): Likewise.
542 * dwarf.h (DWARF2_External_LineInfo,
543 DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
544 DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
545 DWARF2_Internal_CompUnit, DWARF2_External_ARange,
546 DWARF2_Internal_ARange): Added..
547 (read_leb128): Adjust return type.
549 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
551 * configure: Regenerate.
553 2011-02-08 Nick Clifton <nickc@redhat.com>
556 * readelf.c (process_program_headers): Issue a warning if there
557 are no program headers but the file header has a non-zero program
559 (process_section_headers): Issue a warning if there are no section
560 headers but the file header has a non-zero section header offset.
561 (process_section_groups): Reword the no section message so that it
562 can be distinguished from the one issued by process_section_headers.
564 2011-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
565 Doug Evans <dje@google.com>
567 * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
569 2011-01-19 Maciej W. Rozycki <macro@codesourcery.com>
571 * readelf.c (process_object): Free dynamic_section after use.
573 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
576 * readelf.c (process_archive): Free and reset dump_sects
577 after processing each archive member.
579 2011-01-11 Andreas Schwab <schwab@redhat.com>
581 * readelf.c (print_symbol): Handle symbol characters as unsigned.
584 2011-01-10 Nick Clifton <nickc@redhat.com>
586 * po/da.po: Updated Danish translation.
588 2011-01-06 Vladimir Siminov <sv@sw.ru>
590 * bucomm.c (get_file_size): Check for negative sizes and issue a
591 warning message if encountered.
593 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
595 * version.c (print_version): Update copyright to 2011.
597 For older changes see ChangeLog-2010
603 version-control: never