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