1 2013-12-10 Roland McGrath <mcgrathr@google.com>
3 * Makefile.am (install-exec-local): Prefix libtool invocation with
4 $(INSTALL_PROGRAM_ENV).
5 * Makefile.in: Regenerate.
7 2013-11-22 Cory Fields <cory@coryfields.com>
9 * windres.c (define_resource): Use zero for timestamp, making
10 output deterministic. time.h include is no longer needed.
11 * resres.c (res_append_resource): Likewise.
13 2013-11-13 Martin Mitas <mity@morous.org>
15 * rescoff.c (write_coff_file): Use 64-bit alignment for resource
17 (coff_res_to_bin): Likewise.
19 2013-11-07 Doug Evans <dje@google.com>
21 Add pretty-printing of .debug_gnu_pubnames, .debug_gnu_pubtypes.
22 * dwarf.c (get_gdb_index_symbol_kind_name): New function.
23 (display_debug_pubnames_worker): Renamed from display_debug_pubnames.
24 Add support for .debug_gnu_pubnames, .debug_gnu_pubtypes.
25 (display_debug_pubnames, display_debug_pubnames_gnu): New functions.
26 (display_gdb_index): Redo printing of symbol kind.
27 (debug_displays): Add .debug_gnu_pubnames, .debug_gnu_pubtypes.
28 * dwarf.h (dwarf_section_display_enum): Add gnu_pubnames, gnu_pubtypes.
29 * readelf.c (process_section_headers): Add gnu_pubnames, gnu_pubtypes.
31 2013-11-07 Roland McGrath <mcgrathr@google.com>
33 * objdump.c (dump_dwarf): Grok bfd_mach_x86_64_nacl and
34 bfd_mach_x64_32_nacl as equivalent to bfd_mach_x86_64.
36 2013-10-30 Alan Modra <amodra@gmail.com>
38 * readelf.c (get_ppc_dynamic_type): Replace PPC_TLSOPT with PPC_OPT.
39 (get_ppc64_dynamic_type): Replace PPC64_TLSOPT with PPC64_OPT.
41 2013-10-30 Ulrich Weigand <uweigand@de.ibm.com>
43 * readelf.c (get_ppc64_symbol_other): New function.
44 (get_symbol_other): Use it for EM_PPC64.
46 2013-10-30 Alan Modra <amodra@gmail.com>
48 * readelf.c (get_machine_flags): Display ABI version for EM_PPC64.
50 2013-10-24 Nick Clifton <nickc@redhat.com>
52 * nm.c (display_rel_file): Treat bfd_error_no_symbols as
55 2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
57 * readelf.c (display_mips_gnu_attribute): Support Tag_GNU_MIPS_ABI_MSA.
58 * doc/binutils.texi: Document -Mmsa disassembler option.
60 2013-10-14 Jan-Benedict Glaw <jbglaw@lug-owl.de>
62 * readelf.c (decode_arm_unwind): Don't initialize `addr'.
64 2013-10-14 Nick Clifton <nickc@redhat.com>
66 * readelf.c (decode_arm_unwind): Initialise addr structure.
67 (process_symbol_table): Free lengths.
68 * srcconv.c (wr_sc): Free info.
70 2013-10-11 Roland McGrath <mcgrathr@google.com>
72 * winduni.c (languages): Use \345 (octal syntax) rather than
73 literal non-ASCII/non-UTF8 character in string literal.
75 * readelf.c (print_dynamic_symbol): Use array subscript syntax
76 rather than addition syntax with string literal.
78 2013-10-09 Nick Clifton <nickc@redhat.com>
81 * debug.c (debug_type_samep): Add missing break statement.
84 * objdump.c (usage): Mark as a no-return function.
85 (main): Add comment explaining why a break statement is not
88 * dwarf.c (add64): New function.
89 (read_and_display_attr_value): Add CU offset in to the value
90 displayed for a DW_AT_ref8 attribute.
92 2013-10-01 Cory Fields <cory@coryfields.com>
94 * arsup.c (ar_save): Respect the deterministic setting when
95 reading from an mri script.
96 * ar.c (main): Set the default deterministic mode when reading
99 2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
101 * dwarf.c (SAFE_BYTE_GET): Fix argument check.
103 2013-09-27 H.J. Lu <hongjiu.lu@intel.com>
105 * dwarf.c (display_debug_frames): Pass offset_size to
106 print_dwarf_vma for cie_id.
108 2013-09-20 Alan Modra <amodra@gmail.com>
110 * configure: Regenerate.
112 2013-09-18 Tristan Gingold <gingold@adacore.com>
114 * NEWS: Add marker for 2.24.
116 2013-09-18 Tristan Gingold <gingold@adacore.com>
118 * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@
120 * Makefile.in: Regenerate.
122 2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
124 * readelf.c (get_machine_flags): Handle EF_MIPS_FP64.
126 2013-09-12 Nick Clifton <nickc@redhat.com>
128 * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
130 (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
131 (print_dwarf_vma): Use dwarf_vmatoa_1.
132 (SAFE_BYTE_GET): Add check that VAL is big enough to contain
134 (process_debug_info): Use an unsigned int for the offset size.
135 (process_debug_pubnames): Likewise.
136 (display_debug_aranges): Likewise.
137 (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
139 (frame_display_row): Use print_dwarf_vma to display dwarf_vma
141 (display_debug_frames): Likewise.
143 2013-09-10 Nick Clifton <nickc@redhat.com>
145 * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
146 parsing 64-bit frames.
148 2013-08-27 Nick Clifton <nickc@redhat.com>
151 * ar.c (map_over_members): Correctly handle multiple same-name
152 entries on the command line and in the archive.
154 2013-08-23 H.J. Lu <hongjiu.lu@intel.com>
156 * doc/binutils.texi: Remove the extra space.
158 2013-08-23 Mikael Pettersson <mikpe@it.uu.se>
161 * doc/binutils.texi (ranlib -D): Correct description.
163 (nm --special-syms): Fix typo.
165 2013-08-23 Nick Clifton <nickc@redhat.com>
168 * doc/binutils.texi (ar cmdline): Update description of 'q'
172 (nm): Add description of 'I' symbol type.
174 2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
177 * od-xcoff.c: Fix typos.
179 2013-08-19 Tristan Gingold <gingold@adacore.com>
181 * nm.c (print_size_symbols): Directly get symbol size.
183 2013-08-12 Andreas Schwab <schwab@suse.de>
186 * objdump.c (disassemble_section): Return early if nothing from
187 this section needs to be disassembled.
189 2013-08-09 Nick Clifton <nickc@redhat.com>
191 * readelf.c (get_machine_flags): Handle RL78 G10 flag.
193 2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com>
194 Alexander Ivchenko <alexander.ivchenko@intel.com>
195 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
196 Sergey Lega <sergey.s.lega@intel.com>
197 Anna Tikhonova <anna.tikhonova@intel.com>
198 Ilya Tocar <ilya.tocar@intel.com>
199 Andrey Turetskiy <andrey.turetskiy@intel.com>
200 Ilya Verbin <ilya.verbin@intel.com>
201 Kirill Yukhin <kirill.yukhin@intel.com>
202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
204 * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and
205 numeration in comments.
206 (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to
209 2013-07-19 Nick Clifton <nickc@redhat.com>
212 * readelf.c (get_unwind_section_word): Whilst searching for a
213 reloc section associated with an unwind section, check the type as
214 well as the section number.
216 2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu>
218 * ar.c (usage): Fix C conformance issue.
220 2013-07-18 Nick Clifton <nickc@redhat.com>
222 * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
225 * readelf.c (process_unwind): Do not return the result of a void
228 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
230 * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
231 numbers with enum values.
233 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
235 * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.
237 2013-07-10 Tristan Gingold <gingold@adacore.com>
239 * od-xcoff.c (OPT_LDINFO): Define.
240 (options): Add ldinfo.
241 (xcoff_help): Mention ldinfo.
242 (xcoff_dump): Rename to ...
243 (xcoff_dump_obj): ... this. Add a break.
244 (dump_dumpx_core): New function.
245 (xcoff_dump_core): Likewise.
246 (xcoff_dump): Likewise.
247 * doc/binutils.texi (objdump): Mention ldinfo.
249 2013-07-09 Tristan Gingold <gingold@adacore.com>
251 * configure.com: Add new defines to match changes in configure.
253 2013-05-28 Cary Coutant <ccoutant@google.com>
255 * dwarf.c (display_debug_lines_raw): Print section offsets.
257 2013-05-15 Cary Coutant <ccoutant@google.com>
259 * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
261 (decode_location_expression): DW_OP_const2u should read 2 bytes.
262 (display_debug_lines_decoded): Adjust formatting.
263 * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
265 (byte_get_big_endian): Likewise.
266 (byte_get_signed): Likewise.
268 2013-05-09 Andrew Pinski <apinski@cavium.com>
270 * doc/binutils.texi: Document -Mvirt disassembler option.
272 2013-05-02 Nick Clifton <nickc@redhat.com>
274 * readelf.c: Add support for MSP430X architecture.
276 2013-05-02 Nick Clifton <nickc@redhat.com>
278 * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
279 sections as if they were fragmentary .debug_line sections.
280 (display_debug_lines_decoded): Likewise.
282 2013-04-29 Nick Clifton <nickc@redhat.com>
284 * dwarf.c (read_debug_line_header): New function. Reads in a
285 header in a .debug_line section.
286 (display_debug_lines_raw): Use new function. Handle fragmentary
287 .debug_line sections.
288 (display_debug_lines_decoded): Likewise.
289 * readelf.c (process_section_headers): Handle fragmenatry
290 .debug_line sections.
291 (display_debug_section): Likewise.
293 2013-04-26 Ian Lance Taylor <iant@google.com>
295 * MAINTAINERS: Add myself and Cary as gold maintainers.
297 2013-04-08 Tom Tromey <tromey@redhat.com>
299 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
301 2013-04-08 Tom Tromey <tromey@redhat.com>
303 * dwarf-mode.el: Bump version number.
304 (dwarf-mode): Remove autoload.
305 (dwarf-die-reference): Relax regexp.
307 2013-04-05 Alan Modra <amodra@gmail.com>
310 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
311 * dwarf.c (strnlen): Provide fallback decl.
312 * config.in: Regnerate.
313 * configure: Regenerate.
315 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
317 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
320 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
323 * winduni.c (codepages[]): Use UTF-16LE.
324 (wind_MultiByteToWideChar): Likewise.
325 (wind_WideCharToMultiByte): Likewise.
327 2013-03-27 Alan Modra <amodra@gmail.com>
330 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
332 2013-03-26 Nick Clifton <nickc@redhat.com>
335 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
336 space before calling byte_get.
337 (SAFE_BYTE_GET_AND_INC): New macro.
338 (SAFE_SIGNED_BYTE_GET): New macro.
339 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
340 (SAFE_BYTE_GET64): New macro.
341 (process_extened_line_op): Use new macros. Use strnlen when
343 (fetch_indirect_string): Likewise.
344 (get_FORM_name): Likewise.
345 (decode_location_expression): Likewise.
346 (read_and_display_attr_value): Likewise.
347 (process_debug_info): Likewise.
348 (display_debug_lines_raw): Likewise.
349 (display_debug_lines_decoded): Likewise.
350 (display_debug_pubnames): Likewise.
351 (display_debug_macinfo): Likewise.
352 (get_line_filename_and_dirname): Likewise.
353 (display_debug_macro): Likewise.
354 (display_loc_list): Likewise.
355 (display_loc_list_dwo): Likewise.
356 (display_debug_aranges): Likewise.
357 (display_debug_ranges): Likewise.
358 (frame_display_row): Likewise.
359 (display_debug_frames): Likewise.
361 2013-03-25 Nick Clifton <nickc@redhat.com>
364 * dwarf.c (read_leb128): Add END parameter. Do not read at or
366 (read_sleb128): Add END parameter.
367 (read_uleb128): New function.
368 (process_extended_line_op): Pass END to leb128 functions.
369 (process_abbrev_section): Likewise.
370 (decode_location_expression): Likewise.
371 (read_and_display_attr_value): Likewise.
372 (read_and_display_attr): Likewise.
373 (process_debug_info): Likewise.
374 (display_debug_lines_raw): Likewise.
375 (display_debug_lines_decoded): Likewise.
376 (display_debug_macinfo): Likewise.
377 (get_line_filename_and_dirname): Likewise.
378 (display_debug_macro): Likewise.
379 (display_loc_list_dwo): Likewise.
380 (display_debug_ranges): Likewise.
381 * dwarf.h (read_leb128): Update prototype.
382 * readelf.c (read_uleb128): Add END parameter.
383 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
384 (decode_tic6x_unwind_bytecode): Likewise.
385 (display_tag_value): New function.
386 (display_arm_attribute): Add END parameter. Pass END to
387 read_uleb128. Use display_tag_value.
388 (display_gnu_attribute): Likewise.
389 (display_power_gnu_attribute): Likewise.
390 (display_sparc_gnu_attribute): Likewise.
391 (display_mips_gnu_attribute): Likewise.
392 (display_tic6x_attribute): Likewise.
393 (process_attributes): Likewise.
394 (display_raw_attribute): New function.
396 2013-03-22 Nick Clifton <nickc@redhat.com>
399 * dwarf.c (display_debug_ranges): Add checks for reading beyond
400 the end of the section.
403 * readelf.c (apply_relocations): Catch relocations with negative
406 2013-03-15 Nick Clifton <nickc@redhat.com>
408 * addr2line.c (slurp_symtab): If canonicalization reveals that
409 there were no ordinary symbols, try loading the dynamic symbols
412 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
414 * MAINTAINERS: Add myself as Meta maintainer.
416 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
418 * readelf.c (get_note_type): Add NT_S390_TDB.
420 2013-03-07 Alan Modra <amodra@gmail.com>
422 * strings.c (get_char): Dispense with buf[]. Instead shift
423 chars into big-endian value and byte-swap later if
424 little-endian. Don't EOF check value read from object.
426 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
428 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
429 * configure: Regenerate.
431 2013-03-04 Nick Clifton <nickc@redhat.com>
433 * elfcomm.c (error): Flush stdout before emitting the error
437 2013-03-01 Cary Coutant <ccoutant@google.com>
439 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
440 (shndx_pool_used): Move to top of file.
441 (struct cu_tu_set): New type.
442 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
443 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
444 (find_cu_tu_set_v2): New function.
445 (read_and_display_attr_value): Add "this_set" parameter.
446 (read_and_display_attr): Likewise.
447 (process_debug_info): Track base offsets for DWARF package files.
448 (load_debug_info): Call load_cu_tu_indexes.
449 (get_DW_SECT_short_name): New function.
450 (process_cu_tu_index): Add support for version 2 DWARF package files.
452 2013-02-27 Alan Modra <amodra@gmail.com>
455 * readelf.c (offsetof): Define.
456 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
457 (process_corefile_note_segment): Allow notes without name or
458 desc. Combine out-of-range checks. Disallow "negative"
461 2013-02-26 Nick Clifton <nickc@redhat.com>
464 * readelf.c (process_corefile_note_segment): Prevent attempts to
465 read beyond the end of the note buffer.
467 2013-02-15 Kai Tietz <ktietz@redhat.com>
469 * objcopy.c (copy_main): Initialize context variable.
471 2013-02-15 Nick Clifton <nickc@redhat.com>
474 * ar.c (open_inarch): Fail on attempts to convert a normal archive
475 to a thin archive or vice versa.
476 * elfcomm.c (make_qualified_name): Handle corrupted thin
478 * readelf.c (process_archive): Likewise.
479 * doc/binutils.texi: Clarify documentation describing thin
482 2013-02-15 Nick Clifton <nickc@redhat.com>
485 * objcopy.c (enum change_action): Delete.
486 (struct section_list): Delete remove, copy, change_vma, change_lma
487 and set_flags fields. Add context field.
488 (find_section_list): Add a context parameter. Add support for
489 wildcard characters in section names.
490 (is_strip_section): Check for sections being both copied and
492 (copy_object): Pass context to find_section_list.
493 (setup_section): Likewise.
494 (copy_section): Likewise.
495 (copy_main): Likewise.
496 * doc/binutils: Document the new behaviour.
497 * NEWS: Mention the new feature
499 2013-02-14 Nick Clifton <nickc@redhat.com>
502 * objcopy.c (copy_object): Provide a helpful warning message when
503 adding a gnu_debuglink section to an object which already contains
506 2013-02-07 Nick Clifton <nickc@redhat.com>
508 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
509 corrupt archive uses long names but has no long name table.
511 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
512 Andrew Jenner <andrew@codesourcery.com>
514 Based on patches from Altera Corporation.
516 * readelf.c: Include elf/nios2.h.
517 (dump_relocations): Add case for EM_ALTERA_NIOS2.
518 (get_nios2_dynamic_type): New.
519 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
520 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
521 (is_16bit_abs_reloc): Likewise.
522 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
523 * NEWS: Note Altera Nios II support.
524 * MAINTAINERS: Add Nios II maintainers.
526 2013-01-29 Xi Wang <xi.wang@gmail.com>
528 * readelf.c (process_version_sections): Fix overflow checks to
529 avoid undefined behaviour.
531 2013-01-28 Doug Evans <dje@google.com>
533 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
535 2013-01-28 Robert Schiele <rschiele@gmail.com>
537 * objcopy.c (parse_flags): Add merge and strings section flags.
539 2013-01-25 Cary Coutant <ccoutant@google.com>
541 * dwarf.c (display_loc_list): Update offset for each line
543 (print_addr_index): New function.
544 (display_loc_list_dwo): Update offset for each line printed.
545 Fix problems displaying loclists in .dwo files. Add support
547 (display_debug_loc): Remove custom header for .dwo files.
548 (display_debug_addr): Adjust formatting.
550 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
552 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
554 2013-01-24 Doug Evans <dje@google.com>
556 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
558 2013-01-24 Nick Clifton <nickc@redhat.com>
560 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
562 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
564 * readelf.c: Add strings for NT_S390_LAST_BREAK and
567 2013-01-18 Nick Clifton <nickc@redhat.com>
570 * addr2line.c (translate_addresses): When pretty printing, print
571 unknown function names on the same line as unknown symbol names.
573 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
575 * objdump.c (dump_target_specific): Fix NULL pointer test.
577 2013-01-16 Alan Modra <amodra@gmail.com>
580 * stabs.c (parse_stab_members): Always set physname here to avoid
582 (parse_stab_argtypes): ..and don't duplicate the init here.
584 2013-01-10 Will Newton <will.newton@imgtec.com>
586 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
587 (dump_relocations): Add EM_METAG.
588 (get_machine_name): Correct case for Meta.
589 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
590 (is_none_reloc): Add support for Meta NONE reloc.
592 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
594 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
597 2013-01-07 Roland McGrath <mcgrathr@google.com>
599 * objcopy.c (deterministic): Make int rather than bfd_boolean,
601 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
602 (default_deterministic): New function.
603 (strip_main, copy_main): Handle -U. Call default_deterministic.
604 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
605 the default based on DEFAULT_AR_DETERMINISTIC.
606 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
607 configure options on -D.
609 * ar.c (default_deterministic): Comment fix.
611 2013-01-07 Patrice Dumas <pertusus@free.fr>
613 * doc/binutils.texi: Fix ordering of top level nodes.
614 Replace erroneous uses of @itemx with @item.
616 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
618 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
620 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
622 * MAINTAINERS: Add myself as AArch64 co-maintainer.
624 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
626 * version.c (print_version): Update copyright year to 2013.
628 For older changes see ChangeLog-2012
630 Copyright (C) 2013 Free Software Foundation, Inc.
632 Copying and distribution of this file, with or without modification,
633 are permitted in any medium without royalty provided the copyright
634 notice and this notice are preserved.
640 version-control: never