1 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
4 * dwarf.c (display_debug_aranges): Check zero address size.
6 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
9 * objcopy.c (is_strip_section_1): New.
10 (is_strip_section): Use it. Remove the group section if all
13 2011-09-08 Nick Clifton <nickc@redhat.com>
15 * po/ja.po: Updated Japanese translation.
17 2011-08-26 Nick Clifton <nickc@redhat.com>
19 * po/es.po: Updated Spanish translation.
21 2011-08-08 Marcus Comstedt <marcus@mc.pp.se>
24 * Makefile.am (embedspu): Use awk rather than sed.
25 * Makefile.in: Regenerate.
27 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
29 * dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
30 DW_FORM_data8 as location list pointers only for DWARF < 4.
32 2011-07-26 Jakub Jelinek <jakub@redhat.com>
34 * NEWS: Mention .debug_macro support.
35 * dwarf.c (read_and_display_attr_value): Don't print a tab
37 (get_AT_name): Handle DW_AT_GNU_macros.
38 (get_line_filename_and_dirname, display_debug_macro): New
40 (debug_displays): Add an entry for .debug_macro and .zdebug_macro.
41 * readelf.c (process_section_headers): With do_debug_macinfo
42 handle also .debug_macro sections.
43 * dwarf.h (dwarf_section_display_enum): Add macro.
45 2011-07-24 Chao-ying Fu <fu@mips.com>
46 Maciej W. Rozycki <macro@codesourcery.com>
48 * readelf.c (get_machine_flags): Handle microMIPS ASE.
49 (get_mips_symbol_other): Likewise.
51 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
53 * dwarf.c (init_dwarf_regnames): Handle EM_K1OM.
55 * elfedit.c (elf_machine): Support EM_K1OM.
56 (elf_class): Likewise.
58 * readelf.c (guess_is_rela): Handle EM_K1OM.
59 (dump_relocations): Likewise.
60 (get_machine_name): Likewise.
61 (get_section_type_name): Likewise.
62 (get_elf_section_flags): Likewise.
63 (process_section_headers): Likewise.
64 (get_symbol_index_type): Likewise.
65 (is_32bit_abs_reloc): Likewise.
66 (is_32bit_pcrel_reloc): Likewise.
67 (is_64bit_abs_reloc): Likewise.
68 (is_64bit_pcrel_reloc): Likewise.
69 (is_none_reloc): Likewise.
71 * doc/binutils.texi: Mention K1OM for elfedit.
73 2011-07-11 Cary Coutant <ccoutant@google.com>
76 * binutils/nm.c (display_file): Decompress debug sections when
77 printing line numbers.
79 2011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
80 Thomas Schwinge <thomas@schwinge.name>
83 * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
84 alias and ELFOSABI_HURD. Add GNU alias.
85 * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
87 * doc/binutils.texi <elfedit>: Update accordingly.
89 2011-07-01 Nick Clifton <nickc@redhat.com>
92 * doc/binutils.texi (ar cmdline): Document --target, --version and
93 --help command line options.
95 2011-06-30 Nick Clifton <nickc@redhat.com>
98 * ar.c (main): When asked to move members in an archive that is
99 being created, ignore the move request.
101 2011-06-29 Nick Clifton <nickc@redhat.com>
103 * readelf.c (get_section_type_name): When displaying an unknown
104 section type display the hex value first on the assumption that
105 the full message will probably be truncated into a 15 character
108 2011-06-22 Jakub Jelinek <jakub@redhat.com>
110 * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
111 DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
112 Handle DW_OP_GNU_parameter_ref.
114 2011-06-16 Tom Tromey <tromey@redhat.com>
116 * dwarf-mode.el (dwarf-do-insert-substructure): Call
118 (dwarf-do-refresh): Likewise.
120 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
122 * readelf.c (get_note_type): Handle NT_ARM_VFP.
124 2011-06-13 Walter Lee <walt@tilera.com>
126 * readelf.c: Include tilepro.h and tilegx.h.
127 (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
128 (dump_relocations): Likewise.
129 (get_machine_name): Likewise.
130 (is_32bit_abs_reloc): Likewise.
131 (is_32bit_pcerel_reloc): Likewise.
132 (is_64bit_abs_reloc): Likewise.
133 (is_64bit_pcrel_reloc): Likewise.
135 2011-06-09 Tristan Gingold <gingold@adacore.com>
137 * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
140 2011-06-08 Nick Clifton <nickc@redhat.com>
143 * readelf.c (process_version_sections): Handle binaries containing
144 corrupt version information.
145 (process_symbol_table): Stop processing a symbol's version
146 information if it could not be read in.
148 (get_data): Add comment describing the function.
149 (process_section_headers): Set dynamic_strings_length to 0 if the
150 dynamic strings could not be read in.
151 (process_dynamic_section): Likewise.
152 (process_section_groups): Stop processing the group information if
153 the data could not be read in.
154 (hppa_processs_unwind): Assert that there is only one string table
156 (arm_process_unwind): Likewise.
157 (ia64_process_unwind): Likewise.
158 Set the size of the unwind auxillary information to 0 if the data
160 (load_specific_debug_section): Handle a failure to read in the
162 (process_mips_specific): Stop display of the PLT GOT section if it
163 could not be read in.
165 2011-06-08 Tristan Gingold <gingold@adacore.com>
167 * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
169 2011-06-07 Cary Coutant <ccoutant@google.com>
171 * dwarf.c: Fix conversion to TU number.
173 2011-06-02 Nick Clifton <nickc@redhat.com>
175 * resres.c: Fix spelling typo.
176 * windint.h: Likewise.
177 * windmc.c: Likewise.
178 * windres.c: Likewise.
179 * po/POTFILES.in: Regenerate.
180 * po/binutils.pot: Regenerate.
182 2011-06-01 Daniel Jacobowitz <drow@false.org>
184 * MAINTAINERS: Update my email address.
186 2011-05-31 Matthias Klose <doko@ubuntu.com>
188 * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
189 * configure: Regenerate.
191 2011-05-30 Alan Modra <amodra@gmail.com>
194 * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
195 (bin_SCRIPTS): ..here.
196 (EXTRA_SCRIPTS): Define.
197 (EXTRA_DIST): Add embedspu.sh.
198 (DISTCLEANFILES): Add embedspu.
199 (embedspu): Depend on Makefile. Replace sed "s" command with "c".
200 * Makefile.in: Regenerate.
202 2011-05-25 Jakub Jelinek <jakub@redhat.com>
204 * dwarf.c (loc_offsets): New variable.
205 (loc_offsets_compar): New routine.
206 (display_debug_loc): Handle loc_offsets not being in ascending order
207 and also a single .debug_loc entry being used multiple times.
209 2011-05-18 Nick Clifton <nickc@redhat.com>
212 * nm.c (filter_symbols): Treat unique symbols as global symbols.
213 * doc/binutils.texi (nm): Mention that some lowercase letters
214 actually indicate global symbols.
216 2011-05-15 Tristan Gingold <gingold@adacore.com>
218 * od-xcoff.c: New file.
219 * objdump.h: New file.
220 * objdump.c: Include objdump.h
221 (dump_private_options, objdump_private_vectors): New variables.
222 (usage): Mention -P/--private. Display handled options.
223 (long_options): Add -P/--private.
224 (dump_target_specific): New function.
225 (dump_bfd): Handle dump_private_options.
227 * doc/binutils.texi (objdump): Document -P/--private.
228 * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
229 New variables, compute them.
230 (od_vectors): Add vectors for private dumpers. Make them uniq.
231 (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
232 * Makefile.am (HFILES): Add objdump.h
233 (CFILES): Add od-xcoff.c
234 (OBJDUMP_PRIVATE_OFILES): New variable.
235 (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
236 (objdump_LDADD): Ditto.
237 (EXTRA_objdump_SOURCES): Define.
238 * Makefile.in: Regenerate.
239 * configure: Regenerate.
241 2011-05-10 Tristan Gingold <gingold@adacore.com>
243 * dwarf.c (process_extended_line_op): Dump unknown records.
245 2011-05-07 Alan Modra <amodra@gmail.com>
248 * objcopy.c (copy_archive): Check bfd_openw result in unknown object
249 case. Rewrite without goto.
251 2011-05-03 Jakub Jelinek <jakub@redhat.com>
253 * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
254 DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
255 and DW_OP_GNU_reinterpret.
257 * MAINTAINERS: Add myself as DWARF2 maintainer.
259 2011-05-02 Alan Modra <amodra@gmail.com>
262 Revert the following change
263 Michael Snyder <msnyder@vmware.com>
264 * ar.c (move_members): Plug memory leak.
265 (delete_members): Plug memory leak.
267 2011-04-28 Tom Tromey <tromey@redhat.com>
269 * NEWS: Add note about --dwarf-depth, --dwarf-start, and
271 * objdump.c (suppress_bfd_header): New global.
273 (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
274 (options): Add dwarf-depth and dwarf-start entries.
275 (dump_bfd): Use suppress_bfd_header.
276 (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
277 * doc/binutils.texi (objcopy): Document --dwarf-depth and
280 * dwarf-mode.el: New file.
281 * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
282 (read_and_display_attr_value): Also check debug_info_p.
283 (process_debug_info): Handle dwarf_start_die and
285 * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
286 * readelf.c (usage): Update.
287 (OPTION_DWARF_DEPTH): New macro.
288 (OPTION_DWARF_START): Likewise.
289 (options): Add dwarf-depth and dwarf-start entries.
290 (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
292 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
294 * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
296 2011-04-27 Tristan Gingold <gingold@adacore.com>
298 * dwarf.c (process_extended_line_op): Handle
299 DW_LNE_HP_source_file_correlation.
301 2011-04-27 Nick Clifton <nickc@redhat.com>
303 * po/da.po: Updated Danish translation.
305 2011-04-21 Tom Tromey <tromey@redhat.com>
307 * readelf.c (print_stapsdt_note): New function.
308 (process_note): Use it.
310 2011-04-21 Tom Tromey <tromey@redhat.com>
312 * readelf.c (get_stapsdt_note_type): New function.
313 (process_note): Recognize "stapsdt" notes.
315 2011-04-21 Tom Tromey <tromey@redhat.com>
317 * readelf.c (process_corefile_note_segment): Change header field
319 (process_note): Change field widths.
321 2011-04-21 Tom Tromey <tromey@redhat.com>
323 * readelf.c (print_gnu_note): New function.
324 (process_note): Use it.
326 2011-04-21 Jie Zhang <jzhang918@gmail.com>
328 * MAINTAINERS: Update my email address.
330 2011-04-11 Kai Tietz <ktietz@redhat.com>
332 * windres.c (usage): Add new --preprocessor-arg option.
333 (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
334 (option long_options): Add preprocessor-arg option.
336 * doc/binutils.texi: Add documentation for --preprocessor-arg
338 * NEWS: Add line about new --preprocessor-arg option for windres.
340 2011-04-08 John Marino <binutils@marino.st>
342 * arlex.l: Prevent redefinition of YY_NO_UNPUT.
343 * syslex.l: Likewise.
345 2011-04-07 Paul Brook <paul@codesourcery.com>
347 * readelf.c (arm_section_get_word): Handle C6000 relocations.
348 (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
349 decode_tic6x_unwind_bytecode, expand_prel31): New functions.
350 (decode_arm_unwind): Split out common code from ARM specific bits.
351 (dump_arm_unwind): Use expand_prel31.
352 (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
353 (process_unwind): Add SHT_C6000_UNWIND.
355 2011-04-06 Joseph Myers <joseph@codesourcery.com>
357 * configure.in (thumb-*-pe*): Remove.
358 * configure: Regenerate.
360 2011-04-05 Sterling Augustine <augustine.sterling@gmail.com>
362 * MAINTAINERS: Update my email address.
364 2011-04-03 H.J. Lu <hongjiu.lu@intel.com>
367 * objcopy.c (copy_unknown_object): Make the archive element
370 2011-04-03 David S. Miller <davem@davemloft.net>
372 * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
373 accurately, rather than how they are represented internally.
375 2011-03-31 Tristan Gingold <gingold@adacore.com>
377 * makefile.vms (readelf.exe): New target.
379 2011-03-31 Tristan Gingold <gingold@adacore.com>
381 * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
383 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
385 * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
386 (dump_relocations): Likewise.
388 2011-03-31 Tristan Gingold <gingold@adacore.com>
390 * readelf.c (get_ia64_vms_note_type): New function.
391 (print_ia64_vms_note): Ditto.
392 (process_note): Recognize VMS/ia64 specific notes.
394 (process_corefile_note_segment): Decode VMS notes.
396 2011-03-30 Catherine Moore <clm@codesourcery.com>
398 * addr2line.c (translate_addresses): Sign extend the pc
399 if sign_extend_vma is enabled.
401 2011-03-30 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
403 * readelf.c (process_gnu_liblist): Stop memory leak.
405 2011-03-29 Alan Modra <amodra@gmail.com>
407 * coffdump.c: Include bfd_stdint.h
409 2011-03-28 Pierre Muller <muller@ics.u-strasbg.fr>
411 * coffdump.c (coff_dump): Correct spelling error.
412 (show_usage): Replace SYSROFF by COFF.
414 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
416 * coffdump.c (dump_coff_scope): Use double typecast for pointer P
417 to allow compilation for all targets.
419 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
421 * dwarf.c (process_debug_info): Use offset_size to determine
422 the bit-size of the computation unit's offset.
423 (decode_location_expression): Use dwarf_vmatoa function to display
425 (process_debug_info): Use dwarf_vma type for local variables
426 length and type_offset.
428 2011-03-25 Michael Snyder <msnyder@vmware.com>
430 * strings.c (print_strings): Plug memory leak.
431 * ar.c (move_members): Plug memory leak.
432 (delete_members): Plug memory leak.
433 (write_archive): Plug memory leak.
434 * ieee.c (ieee_add_bb11): Plug memory leak.
435 (ieee_function_type): Likewise.
436 (ieee_class_baseclass): Likewise.
437 * prdbg.c (pr_function_type): Close memory leaks.
438 (pr_method_type): Likewise.
439 (tg_class_static_member): Likewise.
440 (tg_class_method_variant): Likewise.
441 (tg_class_static_method_variant): Likewise.
442 * stabs.c (parse_stab_enum_type): Fix memory leaks.
443 (parse_stab_struct_type): Likewise.
444 (parse_stab_struct_fields): Likewise.
445 (parse_stab_one_struct_field): Likewise.
446 (parse_stab_members): Likewise.
447 (stab_demangle_qualified): Likewise.
448 * objdump.c (dump_reloc_set): Free malloced memory.
449 * bucomm.c (make_tempname): Stop memory leak.
451 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
453 Replace bfd_vma type and analog types by dwarf_vma and analogs.
454 Use dwarf specific print functions to display these type values.
455 * dwarf.h (dwarf_signed_vma): New type;
456 (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
457 (DWARF2_External_PubNames): Likewise.
458 (DWARF2_External_CompUnit): Likewise.
459 (DWARF2_External_ARange): Likewise.
460 (read_leb128): Change return type to dwarf_vma.
461 * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
462 check byte_size values.
463 (dwarf_vmatoa): Change parameter type to dwarf_vma.
464 (dwarf_svmatoa): New static function.
465 (read_leb128): Change return type to dwarf_vma.
466 (read_sleb128): New static function.
467 (struct State_Machine_Registers): Change address field type to
469 (process_extended_line_op): Adapt to type changes.
470 (fetch_indirect_string): Likewise.
471 (idisplay_block): Likewise.
472 (decode_location_expression): Likewise.
473 (read_and_display_attr_value): Likewise.
474 (process_debug_info): Likewise.
475 (display_debug_lines_raw): Likewise.
476 (display_debug_lines_decoded): Likewise.
477 (SLEB macro): Use new read_sleb128 function.
479 2011-03-17 Alan Modra <amodra@gmail.com>
482 * ar.c (ranlib_main): Init arg_index properly.
483 (usage): Describe --target.
485 2011-03-16 Jakub Jelinek <jakub@redhat.com>
487 * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
488 (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
489 DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
490 (get_AT_name): Handle DW_AT_GNU_call_site_value,
491 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
492 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
493 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
494 DW_AT_GNU_all_source_call_sites.
495 (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
498 2011-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
500 * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
501 (decode_location_expression): Handle DW_OP_GNU_entry_value.
502 (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
503 (get_AT_name): Likewise.
505 2011-03-14 Michael Snyder <msnyder@vmware.com>
507 * objcopy.c (set_pe_subsystem): Free subsystem.
509 * wrstabs.c (stab_start_struct_type): Close memory leak.
511 * readelf.c (process_version_sections): Free symbols.
513 * nm.c (display_rel_file): Free symsizes.
515 2011-03-10 Nick Clifton <nickc@redhat.com>
517 * readelf.c (get_machine_name): Update EM_V850 entry.
519 2011-03-03 Mike Frysinger <vapier@gentoo.org>
521 * objdump.c (usage): Fix single typo.
522 * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
523 po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
525 2011-03-01 Akos Pasztory <akos.pasztory@gmail.com>
528 * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
530 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
532 * debug.c (debug_start_source): Use filename_(n)cmp.
533 * ieee.c (ieee_finish_compilation_unit): Likewise.
534 (ieee_lineno): Likewise.
535 * nlmconv.c (main): Likewise.
536 * objcopy.c (strip_main): Likewise.
537 (copy_main): Likewise.
538 * objdump.c (show_line): Likewise.
539 (dump_reloc_set): Likewise.
540 * srconv.c (main): Likewise.
541 * wrstabs.c (stab_lineno): Likewise.
543 2011-02-24 Zachary T Welch <zwelch@codesourcery.com>
545 * readelf.c (decode_arm_unwind): Implement decoding of remaining
546 ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
548 2011-02-23 Kai Tietz <kai.tietz@onevision.com>
550 * dwarf.c (read_leb128): Use bfd_vma instead of
552 (dwarf_vmatoa): New helper routine.
553 (process_extended_line_op): Use for adr bfd_vma
554 type and print those typed values via BFD_VMA_FMT
555 or via dwarf_vmatoa for localized prints.
556 (fetch_indirect_string): Adjust offset's type.
557 (decode_location_expression): Adjust argument types
559 (read_and_display_attr_value): Likewise.
560 (read_and_display_attr): Likewise.
561 (decode_location_expression): Adjust printf format.
562 (process_debug_info): Likewise.
563 (display_debug_lines_raw): Likewise.
564 (display_debug_lines_decoded): Likewise.
565 (display_debug_pubnames): Likewise.
566 (display_debug_loc): Likewise.
567 (display_debug_aranges): Likewise.
568 * dwarf.h (DWARF2_External_LineInfo,
569 DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
570 DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
571 DWARF2_Internal_CompUnit, DWARF2_External_ARange,
572 DWARF2_Internal_ARange): Added..
573 (read_leb128): Adjust return type.
575 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
577 * configure: Regenerate.
579 2011-02-08 Nick Clifton <nickc@redhat.com>
582 * readelf.c (process_program_headers): Issue a warning if there
583 are no program headers but the file header has a non-zero program
585 (process_section_headers): Issue a warning if there are no section
586 headers but the file header has a non-zero section header offset.
587 (process_section_groups): Reword the no section message so that it
588 can be distinguished from the one issued by process_section_headers.
590 2011-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
591 Doug Evans <dje@google.com>
593 * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
595 2011-01-19 Maciej W. Rozycki <macro@codesourcery.com>
597 * readelf.c (process_object): Free dynamic_section after use.
599 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
602 * readelf.c (process_archive): Free and reset dump_sects
603 after processing each archive member.
605 2011-01-11 Andreas Schwab <schwab@redhat.com>
607 * readelf.c (print_symbol): Handle symbol characters as unsigned.
610 2011-01-10 Nick Clifton <nickc@redhat.com>
612 * po/da.po: Updated Danish translation.
614 2011-01-06 Vladimir Siminov <sv@sw.ru>
616 * bucomm.c (get_file_size): Check for negative sizes and issue a
617 warning message if encountered.
619 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
621 * version.c (print_version): Update copyright to 2011.
623 For older changes see ChangeLog-2010
629 version-control: never