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