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