1 2013-11-07 Doug Evans <dje@google.com>
3 Add pretty-printing of .debug_gnu_pubnames, .debug_gnu_pubtypes.
4 * dwarf.c (get_gdb_index_symbol_kind_name): New function.
5 (display_debug_pubnames_worker): Renamed from display_debug_pubnames.
6 Add support for .debug_gnu_pubnames, .debug_gnu_pubtypes.
7 (display_debug_pubnames, display_debug_pubnames_gnu): New functions.
8 (display_gdb_index): Redo printing of symbol kind.
9 (debug_displays): Add .debug_gnu_pubnames, .debug_gnu_pubtypes.
10 * dwarf.h (dwarf_section_display_enum): Add gnu_pubnames, gnu_pubtypes.
11 * readelf.c (process_section_headers): Add gnu_pubnames, gnu_pubtypes.
13 2013-11-07 Roland McGrath <mcgrathr@google.com>
15 * objdump.c (dump_dwarf): Grok bfd_mach_x86_64_nacl and
16 bfd_mach_x64_32_nacl as equivalent to bfd_mach_x86_64.
18 2013-10-30 Alan Modra <amodra@gmail.com>
20 * readelf.c (get_ppc_dynamic_type): Replace PPC_TLSOPT with PPC_OPT.
21 (get_ppc64_dynamic_type): Replace PPC64_TLSOPT with PPC64_OPT.
23 2013-10-30 Ulrich Weigand <uweigand@de.ibm.com>
25 * readelf.c (get_ppc64_symbol_other): New function.
26 (get_symbol_other): Use it for EM_PPC64.
28 2013-10-30 Alan Modra <amodra@gmail.com>
30 * readelf.c (get_machine_flags): Display ABI version for EM_PPC64.
32 2013-10-24 Nick Clifton <nickc@redhat.com>
34 * nm.c (display_rel_file): Treat bfd_error_no_symbols as
37 2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
39 * readelf.c (display_mips_gnu_attribute): Support Tag_GNU_MIPS_ABI_MSA.
40 * doc/binutils.texi: Document -Mmsa disassembler option.
42 2013-10-14 Jan-Benedict Glaw <jbglaw@lug-owl.de>
44 * readelf.c (decode_arm_unwind): Don't initialize `addr'.
46 2013-10-14 Nick Clifton <nickc@redhat.com>
48 * readelf.c (decode_arm_unwind): Initialise addr structure.
49 (process_symbol_table): Free lengths.
50 * srcconv.c (wr_sc): Free info.
52 2013-10-11 Roland McGrath <mcgrathr@google.com>
54 * winduni.c (languages): Use \345 (octal syntax) rather than
55 literal non-ASCII/non-UTF8 character in string literal.
57 * readelf.c (print_dynamic_symbol): Use array subscript syntax
58 rather than addition syntax with string literal.
60 2013-10-09 Nick Clifton <nickc@redhat.com>
63 * debug.c (debug_type_samep): Add missing break statement.
66 * objdump.c (usage): Mark as a no-return function.
67 (main): Add comment explaining why a break statement is not
70 * dwarf.c (add64): New function.
71 (read_and_display_attr_value): Add CU offset in to the value
72 displayed for a DW_AT_ref8 attribute.
74 2013-10-01 Cory Fields <cory@coryfields.com>
76 * arsup.c (ar_save): Respect the deterministic setting when
77 reading from an mri script.
78 * ar.c (main): Set the default deterministic mode when reading
81 2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
83 * dwarf.c (SAFE_BYTE_GET): Fix argument check.
85 2013-09-27 H.J. Lu <hongjiu.lu@intel.com>
87 * dwarf.c (display_debug_frames): Pass offset_size to
88 print_dwarf_vma for cie_id.
90 2013-09-20 Alan Modra <amodra@gmail.com>
92 * configure: Regenerate.
94 2013-09-18 Tristan Gingold <gingold@adacore.com>
96 * NEWS: Add marker for 2.24.
98 2013-09-18 Tristan Gingold <gingold@adacore.com>
100 * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@
102 * Makefile.in: Regenerate.
104 2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
106 * readelf.c (get_machine_flags): Handle EF_MIPS_FP64.
108 2013-09-12 Nick Clifton <nickc@redhat.com>
110 * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
112 (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
113 (print_dwarf_vma): Use dwarf_vmatoa_1.
114 (SAFE_BYTE_GET): Add check that VAL is big enough to contain
116 (process_debug_info): Use an unsigned int for the offset size.
117 (process_debug_pubnames): Likewise.
118 (display_debug_aranges): Likewise.
119 (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
121 (frame_display_row): Use print_dwarf_vma to display dwarf_vma
123 (display_debug_frames): Likewise.
125 2013-09-10 Nick Clifton <nickc@redhat.com>
127 * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
128 parsing 64-bit frames.
130 2013-08-27 Nick Clifton <nickc@redhat.com>
133 * ar.c (map_over_members): Correctly handle multiple same-name
134 entries on the command line and in the archive.
136 2013-08-23 H.J. Lu <hongjiu.lu@intel.com>
138 * doc/binutils.texi: Remove the extra space.
140 2013-08-23 Mikael Pettersson <mikpe@it.uu.se>
143 * doc/binutils.texi (ranlib -D): Correct description.
145 (nm --special-syms): Fix typo.
147 2013-08-23 Nick Clifton <nickc@redhat.com>
150 * doc/binutils.texi (ar cmdline): Update description of 'q'
154 (nm): Add description of 'I' symbol type.
156 2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
159 * od-xcoff.c: Fix typos.
161 2013-08-19 Tristan Gingold <gingold@adacore.com>
163 * nm.c (print_size_symbols): Directly get symbol size.
165 2013-08-12 Andreas Schwab <schwab@suse.de>
168 * objdump.c (disassemble_section): Return early if nothing from
169 this section needs to be disassembled.
171 2013-08-09 Nick Clifton <nickc@redhat.com>
173 * readelf.c (get_machine_flags): Handle RL78 G10 flag.
175 2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com>
176 Alexander Ivchenko <alexander.ivchenko@intel.com>
177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
178 Sergey Lega <sergey.s.lega@intel.com>
179 Anna Tikhonova <anna.tikhonova@intel.com>
180 Ilya Tocar <ilya.tocar@intel.com>
181 Andrey Turetskiy <andrey.turetskiy@intel.com>
182 Ilya Verbin <ilya.verbin@intel.com>
183 Kirill Yukhin <kirill.yukhin@intel.com>
184 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
186 * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and
187 numeration in comments.
188 (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to
191 2013-07-19 Nick Clifton <nickc@redhat.com>
194 * readelf.c (get_unwind_section_word): Whilst searching for a
195 reloc section associated with an unwind section, check the type as
196 well as the section number.
198 2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu>
200 * ar.c (usage): Fix C conformance issue.
202 2013-07-18 Nick Clifton <nickc@redhat.com>
204 * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
207 * readelf.c (process_unwind): Do not return the result of a void
210 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
212 * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
213 numbers with enum values.
215 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
217 * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.
219 2013-07-10 Tristan Gingold <gingold@adacore.com>
221 * od-xcoff.c (OPT_LDINFO): Define.
222 (options): Add ldinfo.
223 (xcoff_help): Mention ldinfo.
224 (xcoff_dump): Rename to ...
225 (xcoff_dump_obj): ... this. Add a break.
226 (dump_dumpx_core): New function.
227 (xcoff_dump_core): Likewise.
228 (xcoff_dump): Likewise.
229 * doc/binutils.texi (objdump): Mention ldinfo.
231 2013-07-09 Tristan Gingold <gingold@adacore.com>
233 * configure.com: Add new defines to match changes in configure.
235 2013-05-28 Cary Coutant <ccoutant@google.com>
237 * dwarf.c (display_debug_lines_raw): Print section offsets.
239 2013-05-15 Cary Coutant <ccoutant@google.com>
241 * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
243 (decode_location_expression): DW_OP_const2u should read 2 bytes.
244 (display_debug_lines_decoded): Adjust formatting.
245 * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
247 (byte_get_big_endian): Likewise.
248 (byte_get_signed): Likewise.
250 2013-05-09 Andrew Pinski <apinski@cavium.com>
252 * doc/binutils.texi: Document -Mvirt disassembler option.
254 2013-05-02 Nick Clifton <nickc@redhat.com>
256 * readelf.c: Add support for MSP430X architecture.
258 2013-05-02 Nick Clifton <nickc@redhat.com>
260 * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
261 sections as if they were fragmentary .debug_line sections.
262 (display_debug_lines_decoded): Likewise.
264 2013-04-29 Nick Clifton <nickc@redhat.com>
266 * dwarf.c (read_debug_line_header): New function. Reads in a
267 header in a .debug_line section.
268 (display_debug_lines_raw): Use new function. Handle fragmentary
269 .debug_line sections.
270 (display_debug_lines_decoded): Likewise.
271 * readelf.c (process_section_headers): Handle fragmenatry
272 .debug_line sections.
273 (display_debug_section): Likewise.
275 2013-04-26 Ian Lance Taylor <iant@google.com>
277 * MAINTAINERS: Add myself and Cary as gold maintainers.
279 2013-04-08 Tom Tromey <tromey@redhat.com>
281 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
283 2013-04-08 Tom Tromey <tromey@redhat.com>
285 * dwarf-mode.el: Bump version number.
286 (dwarf-mode): Remove autoload.
287 (dwarf-die-reference): Relax regexp.
289 2013-04-05 Alan Modra <amodra@gmail.com>
292 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
293 * dwarf.c (strnlen): Provide fallback decl.
294 * config.in: Regnerate.
295 * configure: Regenerate.
297 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
299 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
302 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
305 * winduni.c (codepages[]): Use UTF-16LE.
306 (wind_MultiByteToWideChar): Likewise.
307 (wind_WideCharToMultiByte): Likewise.
309 2013-03-27 Alan Modra <amodra@gmail.com>
312 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
314 2013-03-26 Nick Clifton <nickc@redhat.com>
317 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
318 space before calling byte_get.
319 (SAFE_BYTE_GET_AND_INC): New macro.
320 (SAFE_SIGNED_BYTE_GET): New macro.
321 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
322 (SAFE_BYTE_GET64): New macro.
323 (process_extened_line_op): Use new macros. Use strnlen when
325 (fetch_indirect_string): Likewise.
326 (get_FORM_name): Likewise.
327 (decode_location_expression): Likewise.
328 (read_and_display_attr_value): Likewise.
329 (process_debug_info): Likewise.
330 (display_debug_lines_raw): Likewise.
331 (display_debug_lines_decoded): Likewise.
332 (display_debug_pubnames): Likewise.
333 (display_debug_macinfo): Likewise.
334 (get_line_filename_and_dirname): Likewise.
335 (display_debug_macro): Likewise.
336 (display_loc_list): Likewise.
337 (display_loc_list_dwo): Likewise.
338 (display_debug_aranges): Likewise.
339 (display_debug_ranges): Likewise.
340 (frame_display_row): Likewise.
341 (display_debug_frames): Likewise.
343 2013-03-25 Nick Clifton <nickc@redhat.com>
346 * dwarf.c (read_leb128): Add END parameter. Do not read at or
348 (read_sleb128): Add END parameter.
349 (read_uleb128): New function.
350 (process_extended_line_op): Pass END to leb128 functions.
351 (process_abbrev_section): Likewise.
352 (decode_location_expression): Likewise.
353 (read_and_display_attr_value): Likewise.
354 (read_and_display_attr): Likewise.
355 (process_debug_info): Likewise.
356 (display_debug_lines_raw): Likewise.
357 (display_debug_lines_decoded): Likewise.
358 (display_debug_macinfo): Likewise.
359 (get_line_filename_and_dirname): Likewise.
360 (display_debug_macro): Likewise.
361 (display_loc_list_dwo): Likewise.
362 (display_debug_ranges): Likewise.
363 * dwarf.h (read_leb128): Update prototype.
364 * readelf.c (read_uleb128): Add END parameter.
365 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
366 (decode_tic6x_unwind_bytecode): Likewise.
367 (display_tag_value): New function.
368 (display_arm_attribute): Add END parameter. Pass END to
369 read_uleb128. Use display_tag_value.
370 (display_gnu_attribute): Likewise.
371 (display_power_gnu_attribute): Likewise.
372 (display_sparc_gnu_attribute): Likewise.
373 (display_mips_gnu_attribute): Likewise.
374 (display_tic6x_attribute): Likewise.
375 (process_attributes): Likewise.
376 (display_raw_attribute): New function.
378 2013-03-22 Nick Clifton <nickc@redhat.com>
381 * dwarf.c (display_debug_ranges): Add checks for reading beyond
382 the end of the section.
385 * readelf.c (apply_relocations): Catch relocations with negative
388 2013-03-15 Nick Clifton <nickc@redhat.com>
390 * addr2line.c (slurp_symtab): If canonicalization reveals that
391 there were no ordinary symbols, try loading the dynamic symbols
394 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
396 * MAINTAINERS: Add myself as Meta maintainer.
398 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
400 * readelf.c (get_note_type): Add NT_S390_TDB.
402 2013-03-07 Alan Modra <amodra@gmail.com>
404 * strings.c (get_char): Dispense with buf[]. Instead shift
405 chars into big-endian value and byte-swap later if
406 little-endian. Don't EOF check value read from object.
408 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
410 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
411 * configure: Regenerate.
413 2013-03-04 Nick Clifton <nickc@redhat.com>
415 * elfcomm.c (error): Flush stdout before emitting the error
419 2013-03-01 Cary Coutant <ccoutant@google.com>
421 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
422 (shndx_pool_used): Move to top of file.
423 (struct cu_tu_set): New type.
424 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
425 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
426 (find_cu_tu_set_v2): New function.
427 (read_and_display_attr_value): Add "this_set" parameter.
428 (read_and_display_attr): Likewise.
429 (process_debug_info): Track base offsets for DWARF package files.
430 (load_debug_info): Call load_cu_tu_indexes.
431 (get_DW_SECT_short_name): New function.
432 (process_cu_tu_index): Add support for version 2 DWARF package files.
434 2013-02-27 Alan Modra <amodra@gmail.com>
437 * readelf.c (offsetof): Define.
438 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
439 (process_corefile_note_segment): Allow notes without name or
440 desc. Combine out-of-range checks. Disallow "negative"
443 2013-02-26 Nick Clifton <nickc@redhat.com>
446 * readelf.c (process_corefile_note_segment): Prevent attempts to
447 read beyond the end of the note buffer.
449 2013-02-15 Kai Tietz <ktietz@redhat.com>
451 * objcopy.c (copy_main): Initialize context variable.
453 2013-02-15 Nick Clifton <nickc@redhat.com>
456 * ar.c (open_inarch): Fail on attempts to convert a normal archive
457 to a thin archive or vice versa.
458 * elfcomm.c (make_qualified_name): Handle corrupted thin
460 * readelf.c (process_archive): Likewise.
461 * doc/binutils.texi: Clarify documentation describing thin
464 2013-02-15 Nick Clifton <nickc@redhat.com>
467 * objcopy.c (enum change_action): Delete.
468 (struct section_list): Delete remove, copy, change_vma, change_lma
469 and set_flags fields. Add context field.
470 (find_section_list): Add a context parameter. Add support for
471 wildcard characters in section names.
472 (is_strip_section): Check for sections being both copied and
474 (copy_object): Pass context to find_section_list.
475 (setup_section): Likewise.
476 (copy_section): Likewise.
477 (copy_main): Likewise.
478 * doc/binutils: Document the new behaviour.
479 * NEWS: Mention the new feature
481 2013-02-14 Nick Clifton <nickc@redhat.com>
484 * objcopy.c (copy_object): Provide a helpful warning message when
485 adding a gnu_debuglink section to an object which already contains
488 2013-02-07 Nick Clifton <nickc@redhat.com>
490 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
491 corrupt archive uses long names but has no long name table.
493 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
494 Andrew Jenner <andrew@codesourcery.com>
496 Based on patches from Altera Corporation.
498 * readelf.c: Include elf/nios2.h.
499 (dump_relocations): Add case for EM_ALTERA_NIOS2.
500 (get_nios2_dynamic_type): New.
501 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
502 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
503 (is_16bit_abs_reloc): Likewise.
504 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
505 * NEWS: Note Altera Nios II support.
506 * MAINTAINERS: Add Nios II maintainers.
508 2013-01-29 Xi Wang <xi.wang@gmail.com>
510 * readelf.c (process_version_sections): Fix overflow checks to
511 avoid undefined behaviour.
513 2013-01-28 Doug Evans <dje@google.com>
515 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
517 2013-01-28 Robert Schiele <rschiele@gmail.com>
519 * objcopy.c (parse_flags): Add merge and strings section flags.
521 2013-01-25 Cary Coutant <ccoutant@google.com>
523 * dwarf.c (display_loc_list): Update offset for each line
525 (print_addr_index): New function.
526 (display_loc_list_dwo): Update offset for each line printed.
527 Fix problems displaying loclists in .dwo files. Add support
529 (display_debug_loc): Remove custom header for .dwo files.
530 (display_debug_addr): Adjust formatting.
532 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
534 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
536 2013-01-24 Doug Evans <dje@google.com>
538 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
540 2013-01-24 Nick Clifton <nickc@redhat.com>
542 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
544 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
546 * readelf.c: Add strings for NT_S390_LAST_BREAK and
549 2013-01-18 Nick Clifton <nickc@redhat.com>
552 * addr2line.c (translate_addresses): When pretty printing, print
553 unknown function names on the same line as unknown symbol names.
555 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
557 * objdump.c (dump_target_specific): Fix NULL pointer test.
559 2013-01-16 Alan Modra <amodra@gmail.com>
562 * stabs.c (parse_stab_members): Always set physname here to avoid
564 (parse_stab_argtypes): ..and don't duplicate the init here.
566 2013-01-10 Will Newton <will.newton@imgtec.com>
568 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
569 (dump_relocations): Add EM_METAG.
570 (get_machine_name): Correct case for Meta.
571 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
572 (is_none_reloc): Add support for Meta NONE reloc.
574 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
576 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
579 2013-01-07 Roland McGrath <mcgrathr@google.com>
581 * objcopy.c (deterministic): Make int rather than bfd_boolean,
583 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
584 (default_deterministic): New function.
585 (strip_main, copy_main): Handle -U. Call default_deterministic.
586 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
587 the default based on DEFAULT_AR_DETERMINISTIC.
588 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
589 configure options on -D.
591 * ar.c (default_deterministic): Comment fix.
593 2013-01-07 Patrice Dumas <pertusus@free.fr>
595 * doc/binutils.texi: Fix ordering of top level nodes.
596 Replace erroneous uses of @itemx with @item.
598 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
600 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
602 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
604 * MAINTAINERS: Add myself as AArch64 co-maintainer.
606 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
608 * version.c (print_version): Update copyright year to 2013.
610 For older changes see ChangeLog-2012
612 Copyright (C) 2013 Free Software Foundation, Inc.
614 Copying and distribution of this file, with or without modification,
615 are permitted in any medium without royalty provided the copyright
616 notice and this notice are preserved.
622 version-control: never