1 2013-10-11 Roland McGrath <mcgrathr@google.com>
3 * winduni.c (languages): Use \345 (octal syntax) rather than
4 literal non-ASCII/non-UTF8 character in string literal.
6 * readelf.c (print_dynamic_symbol): Use array subscript syntax
7 rather than addition syntax with string literal.
9 2013-10-09 Nick Clifton <nickc@redhat.com>
12 * debug.c (debug_type_samep): Add missing break statement.
15 * objdump.c (usage): Mark as a no-return function.
16 (main): Add comment explaining why a break statement is not
19 * dwarf.c (add64): New function.
20 (read_and_display_attr_value): Add CU offset in to the value
21 displayed for a DW_AT_ref8 attribute.
23 2013-10-01 Cory Fields <cory@coryfields.com>
25 * arsup.c (ar_save): Respect the deterministic setting when
26 reading from an mri script.
27 * ar.c (main): Set the default deterministic mode when reading
30 2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32 * dwarf.c (SAFE_BYTE_GET): Fix argument check.
34 2013-09-27 H.J. Lu <hongjiu.lu@intel.com>
36 * dwarf.c (display_debug_frames): Pass offset_size to
37 print_dwarf_vma for cie_id.
39 2013-09-20 Alan Modra <amodra@gmail.com>
41 * configure: Regenerate.
43 2013-09-18 Tristan Gingold <gingold@adacore.com>
45 * NEWS: Add marker for 2.24.
47 2013-09-18 Tristan Gingold <gingold@adacore.com>
49 * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@
51 * Makefile.in: Regenerate.
53 2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
55 * readelf.c (get_machine_flags): Handle EF_MIPS_FP64.
57 2013-09-12 Nick Clifton <nickc@redhat.com>
59 * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
61 (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
62 (print_dwarf_vma): Use dwarf_vmatoa_1.
63 (SAFE_BYTE_GET): Add check that VAL is big enough to contain
65 (process_debug_info): Use an unsigned int for the offset size.
66 (process_debug_pubnames): Likewise.
67 (display_debug_aranges): Likewise.
68 (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
70 (frame_display_row): Use print_dwarf_vma to display dwarf_vma
72 (display_debug_frames): Likewise.
74 2013-09-10 Nick Clifton <nickc@redhat.com>
76 * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
77 parsing 64-bit frames.
79 2013-08-27 Nick Clifton <nickc@redhat.com>
82 * ar.c (map_over_members): Correctly handle multiple same-name
83 entries on the command line and in the archive.
85 2013-08-23 H.J. Lu <hongjiu.lu@intel.com>
87 * doc/binutils.texi: Remove the extra space.
89 2013-08-23 Mikael Pettersson <mikpe@it.uu.se>
92 * doc/binutils.texi (ranlib -D): Correct description.
94 (nm --special-syms): Fix typo.
96 2013-08-23 Nick Clifton <nickc@redhat.com>
99 * doc/binutils.texi (ar cmdline): Update description of 'q'
103 (nm): Add description of 'I' symbol type.
105 2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
108 * od-xcoff.c: Fix typos.
110 2013-08-19 Tristan Gingold <gingold@adacore.com>
112 * nm.c (print_size_symbols): Directly get symbol size.
114 2013-08-12 Andreas Schwab <schwab@suse.de>
117 * objdump.c (disassemble_section): Return early if nothing from
118 this section needs to be disassembled.
120 2013-08-09 Nick Clifton <nickc@redhat.com>
122 * readelf.c (get_machine_flags): Handle RL78 G10 flag.
124 2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com>
125 Alexander Ivchenko <alexander.ivchenko@intel.com>
126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
127 Sergey Lega <sergey.s.lega@intel.com>
128 Anna Tikhonova <anna.tikhonova@intel.com>
129 Ilya Tocar <ilya.tocar@intel.com>
130 Andrey Turetskiy <andrey.turetskiy@intel.com>
131 Ilya Verbin <ilya.verbin@intel.com>
132 Kirill Yukhin <kirill.yukhin@intel.com>
133 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
135 * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and
136 numeration in comments.
137 (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to
140 2013-07-19 Nick Clifton <nickc@redhat.com>
143 * readelf.c (get_unwind_section_word): Whilst searching for a
144 reloc section associated with an unwind section, check the type as
145 well as the section number.
147 2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu>
149 * ar.c (usage): Fix C conformance issue.
151 2013-07-18 Nick Clifton <nickc@redhat.com>
153 * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
156 * readelf.c (process_unwind): Do not return the result of a void
159 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
161 * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
162 numbers with enum values.
164 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
166 * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.
168 2013-07-10 Tristan Gingold <gingold@adacore.com>
170 * od-xcoff.c (OPT_LDINFO): Define.
171 (options): Add ldinfo.
172 (xcoff_help): Mention ldinfo.
173 (xcoff_dump): Rename to ...
174 (xcoff_dump_obj): ... this. Add a break.
175 (dump_dumpx_core): New function.
176 (xcoff_dump_core): Likewise.
177 (xcoff_dump): Likewise.
178 * doc/binutils.texi (objdump): Mention ldinfo.
180 2013-07-09 Tristan Gingold <gingold@adacore.com>
182 * configure.com: Add new defines to match changes in configure.
184 2013-05-28 Cary Coutant <ccoutant@google.com>
186 * dwarf.c (display_debug_lines_raw): Print section offsets.
188 2013-05-15 Cary Coutant <ccoutant@google.com>
190 * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
192 (decode_location_expression): DW_OP_const2u should read 2 bytes.
193 (display_debug_lines_decoded): Adjust formatting.
194 * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
196 (byte_get_big_endian): Likewise.
197 (byte_get_signed): Likewise.
199 2013-05-09 Andrew Pinski <apinski@cavium.com>
201 * doc/binutils.texi: Document -Mvirt disassembler option.
203 2013-05-02 Nick Clifton <nickc@redhat.com>
205 * readelf.c: Add support for MSP430X architecture.
207 2013-05-02 Nick Clifton <nickc@redhat.com>
209 * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
210 sections as if they were fragmentary .debug_line sections.
211 (display_debug_lines_decoded): Likewise.
213 2013-04-29 Nick Clifton <nickc@redhat.com>
215 * dwarf.c (read_debug_line_header): New function. Reads in a
216 header in a .debug_line section.
217 (display_debug_lines_raw): Use new function. Handle fragmentary
218 .debug_line sections.
219 (display_debug_lines_decoded): Likewise.
220 * readelf.c (process_section_headers): Handle fragmenatry
221 .debug_line sections.
222 (display_debug_section): Likewise.
224 2013-04-26 Ian Lance Taylor <iant@google.com>
226 * MAINTAINERS: Add myself and Cary as gold maintainers.
228 2013-04-08 Tom Tromey <tromey@redhat.com>
230 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
232 2013-04-08 Tom Tromey <tromey@redhat.com>
234 * dwarf-mode.el: Bump version number.
235 (dwarf-mode): Remove autoload.
236 (dwarf-die-reference): Relax regexp.
238 2013-04-05 Alan Modra <amodra@gmail.com>
241 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
242 * dwarf.c (strnlen): Provide fallback decl.
243 * config.in: Regnerate.
244 * configure: Regenerate.
246 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
248 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
251 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
254 * winduni.c (codepages[]): Use UTF-16LE.
255 (wind_MultiByteToWideChar): Likewise.
256 (wind_WideCharToMultiByte): Likewise.
258 2013-03-27 Alan Modra <amodra@gmail.com>
261 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
263 2013-03-26 Nick Clifton <nickc@redhat.com>
266 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
267 space before calling byte_get.
268 (SAFE_BYTE_GET_AND_INC): New macro.
269 (SAFE_SIGNED_BYTE_GET): New macro.
270 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
271 (SAFE_BYTE_GET64): New macro.
272 (process_extened_line_op): Use new macros. Use strnlen when
274 (fetch_indirect_string): Likewise.
275 (get_FORM_name): Likewise.
276 (decode_location_expression): Likewise.
277 (read_and_display_attr_value): Likewise.
278 (process_debug_info): Likewise.
279 (display_debug_lines_raw): Likewise.
280 (display_debug_lines_decoded): Likewise.
281 (display_debug_pubnames): Likewise.
282 (display_debug_macinfo): Likewise.
283 (get_line_filename_and_dirname): Likewise.
284 (display_debug_macro): Likewise.
285 (display_loc_list): Likewise.
286 (display_loc_list_dwo): Likewise.
287 (display_debug_aranges): Likewise.
288 (display_debug_ranges): Likewise.
289 (frame_display_row): Likewise.
290 (display_debug_frames): Likewise.
292 2013-03-25 Nick Clifton <nickc@redhat.com>
295 * dwarf.c (read_leb128): Add END parameter. Do not read at or
297 (read_sleb128): Add END parameter.
298 (read_uleb128): New function.
299 (process_extended_line_op): Pass END to leb128 functions.
300 (process_abbrev_section): Likewise.
301 (decode_location_expression): Likewise.
302 (read_and_display_attr_value): Likewise.
303 (read_and_display_attr): Likewise.
304 (process_debug_info): Likewise.
305 (display_debug_lines_raw): Likewise.
306 (display_debug_lines_decoded): Likewise.
307 (display_debug_macinfo): Likewise.
308 (get_line_filename_and_dirname): Likewise.
309 (display_debug_macro): Likewise.
310 (display_loc_list_dwo): Likewise.
311 (display_debug_ranges): Likewise.
312 * dwarf.h (read_leb128): Update prototype.
313 * readelf.c (read_uleb128): Add END parameter.
314 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
315 (decode_tic6x_unwind_bytecode): Likewise.
316 (display_tag_value): New function.
317 (display_arm_attribute): Add END parameter. Pass END to
318 read_uleb128. Use display_tag_value.
319 (display_gnu_attribute): Likewise.
320 (display_power_gnu_attribute): Likewise.
321 (display_sparc_gnu_attribute): Likewise.
322 (display_mips_gnu_attribute): Likewise.
323 (display_tic6x_attribute): Likewise.
324 (process_attributes): Likewise.
325 (display_raw_attribute): New function.
327 2013-03-22 Nick Clifton <nickc@redhat.com>
330 * dwarf.c (display_debug_ranges): Add checks for reading beyond
331 the end of the section.
334 * readelf.c (apply_relocations): Catch relocations with negative
337 2013-03-15 Nick Clifton <nickc@redhat.com>
339 * addr2line.c (slurp_symtab): If canonicalization reveals that
340 there were no ordinary symbols, try loading the dynamic symbols
343 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
345 * MAINTAINERS: Add myself as Meta maintainer.
347 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
349 * readelf.c (get_note_type): Add NT_S390_TDB.
351 2013-03-07 Alan Modra <amodra@gmail.com>
353 * strings.c (get_char): Dispense with buf[]. Instead shift
354 chars into big-endian value and byte-swap later if
355 little-endian. Don't EOF check value read from object.
357 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
359 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
360 * configure: Regenerate.
362 2013-03-04 Nick Clifton <nickc@redhat.com>
364 * elfcomm.c (error): Flush stdout before emitting the error
368 2013-03-01 Cary Coutant <ccoutant@google.com>
370 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
371 (shndx_pool_used): Move to top of file.
372 (struct cu_tu_set): New type.
373 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
374 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
375 (find_cu_tu_set_v2): New function.
376 (read_and_display_attr_value): Add "this_set" parameter.
377 (read_and_display_attr): Likewise.
378 (process_debug_info): Track base offsets for DWARF package files.
379 (load_debug_info): Call load_cu_tu_indexes.
380 (get_DW_SECT_short_name): New function.
381 (process_cu_tu_index): Add support for version 2 DWARF package files.
383 2013-02-27 Alan Modra <amodra@gmail.com>
386 * readelf.c (offsetof): Define.
387 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
388 (process_corefile_note_segment): Allow notes without name or
389 desc. Combine out-of-range checks. Disallow "negative"
392 2013-02-26 Nick Clifton <nickc@redhat.com>
395 * readelf.c (process_corefile_note_segment): Prevent attempts to
396 read beyond the end of the note buffer.
398 2013-02-15 Kai Tietz <ktietz@redhat.com>
400 * objcopy.c (copy_main): Initialize context variable.
402 2013-02-15 Nick Clifton <nickc@redhat.com>
405 * ar.c (open_inarch): Fail on attempts to convert a normal archive
406 to a thin archive or vice versa.
407 * elfcomm.c (make_qualified_name): Handle corrupted thin
409 * readelf.c (process_archive): Likewise.
410 * doc/binutils.texi: Clarify documentation describing thin
413 2013-02-15 Nick Clifton <nickc@redhat.com>
416 * objcopy.c (enum change_action): Delete.
417 (struct section_list): Delete remove, copy, change_vma, change_lma
418 and set_flags fields. Add context field.
419 (find_section_list): Add a context parameter. Add support for
420 wildcard characters in section names.
421 (is_strip_section): Check for sections being both copied and
423 (copy_object): Pass context to find_section_list.
424 (setup_section): Likewise.
425 (copy_section): Likewise.
426 (copy_main): Likewise.
427 * doc/binutils: Document the new behaviour.
428 * NEWS: Mention the new feature
430 2013-02-14 Nick Clifton <nickc@redhat.com>
433 * objcopy.c (copy_object): Provide a helpful warning message when
434 adding a gnu_debuglink section to an object which already contains
437 2013-02-07 Nick Clifton <nickc@redhat.com>
439 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
440 corrupt archive uses long names but has no long name table.
442 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
443 Andrew Jenner <andrew@codesourcery.com>
445 Based on patches from Altera Corporation.
447 * readelf.c: Include elf/nios2.h.
448 (dump_relocations): Add case for EM_ALTERA_NIOS2.
449 (get_nios2_dynamic_type): New.
450 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
451 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
452 (is_16bit_abs_reloc): Likewise.
453 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
454 * NEWS: Note Altera Nios II support.
455 * MAINTAINERS: Add Nios II maintainers.
457 2013-01-29 Xi Wang <xi.wang@gmail.com>
459 * readelf.c (process_version_sections): Fix overflow checks to
460 avoid undefined behaviour.
462 2013-01-28 Doug Evans <dje@google.com>
464 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
466 2013-01-28 Robert Schiele <rschiele@gmail.com>
468 * objcopy.c (parse_flags): Add merge and strings section flags.
470 2013-01-25 Cary Coutant <ccoutant@google.com>
472 * dwarf.c (display_loc_list): Update offset for each line
474 (print_addr_index): New function.
475 (display_loc_list_dwo): Update offset for each line printed.
476 Fix problems displaying loclists in .dwo files. Add support
478 (display_debug_loc): Remove custom header for .dwo files.
479 (display_debug_addr): Adjust formatting.
481 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
483 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
485 2013-01-24 Doug Evans <dje@google.com>
487 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
489 2013-01-24 Nick Clifton <nickc@redhat.com>
491 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
493 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
495 * readelf.c: Add strings for NT_S390_LAST_BREAK and
498 2013-01-18 Nick Clifton <nickc@redhat.com>
501 * addr2line.c (translate_addresses): When pretty printing, print
502 unknown function names on the same line as unknown symbol names.
504 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
506 * objdump.c (dump_target_specific): Fix NULL pointer test.
508 2013-01-16 Alan Modra <amodra@gmail.com>
511 * stabs.c (parse_stab_members): Always set physname here to avoid
513 (parse_stab_argtypes): ..and don't duplicate the init here.
515 2013-01-10 Will Newton <will.newton@imgtec.com>
517 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
518 (dump_relocations): Add EM_METAG.
519 (get_machine_name): Correct case for Meta.
520 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
521 (is_none_reloc): Add support for Meta NONE reloc.
523 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
525 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
528 2013-01-07 Roland McGrath <mcgrathr@google.com>
530 * objcopy.c (deterministic): Make int rather than bfd_boolean,
532 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
533 (default_deterministic): New function.
534 (strip_main, copy_main): Handle -U. Call default_deterministic.
535 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
536 the default based on DEFAULT_AR_DETERMINISTIC.
537 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
538 configure options on -D.
540 * ar.c (default_deterministic): Comment fix.
542 2013-01-07 Patrice Dumas <pertusus@free.fr>
544 * doc/binutils.texi: Fix ordering of top level nodes.
545 Replace erroneous uses of @itemx with @item.
547 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
549 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
551 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
553 * MAINTAINERS: Add myself as AArch64 co-maintainer.
555 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
557 * version.c (print_version): Update copyright year to 2013.
559 For older changes see ChangeLog-2012
561 Copyright (C) 2013 Free Software Foundation, Inc.
563 Copying and distribution of this file, with or without modification,
564 are permitted in any medium without royalty provided the copyright
565 notice and this notice are preserved.
571 version-control: never