1 2013-10-11 Roland McGrath <mcgrathr@google.com>
3 * readelf.c (print_dynamic_symbol): Use array subscript syntax
4 rather than addition syntax with string literal.
6 2013-10-09 Nick Clifton <nickc@redhat.com>
9 * debug.c (debug_type_samep): Add missing break statement.
12 * objdump.c (usage): Mark as a no-return function.
13 (main): Add comment explaining why a break statement is not
16 * dwarf.c (add64): New function.
17 (read_and_display_attr_value): Add CU offset in to the value
18 displayed for a DW_AT_ref8 attribute.
20 2013-10-01 Cory Fields <cory@coryfields.com>
22 * arsup.c (ar_save): Respect the deterministic setting when
23 reading from an mri script.
24 * ar.c (main): Set the default deterministic mode when reading
27 2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29 * dwarf.c (SAFE_BYTE_GET): Fix argument check.
31 2013-09-27 H.J. Lu <hongjiu.lu@intel.com>
33 * dwarf.c (display_debug_frames): Pass offset_size to
34 print_dwarf_vma for cie_id.
36 2013-09-20 Alan Modra <amodra@gmail.com>
38 * configure: Regenerate.
40 2013-09-18 Tristan Gingold <gingold@adacore.com>
42 * NEWS: Add marker for 2.24.
44 2013-09-18 Tristan Gingold <gingold@adacore.com>
46 * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@
48 * Makefile.in: Regenerate.
50 2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
52 * readelf.c (get_machine_flags): Handle EF_MIPS_FP64.
54 2013-09-12 Nick Clifton <nickc@redhat.com>
56 * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
58 (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
59 (print_dwarf_vma): Use dwarf_vmatoa_1.
60 (SAFE_BYTE_GET): Add check that VAL is big enough to contain
62 (process_debug_info): Use an unsigned int for the offset size.
63 (process_debug_pubnames): Likewise.
64 (display_debug_aranges): Likewise.
65 (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
67 (frame_display_row): Use print_dwarf_vma to display dwarf_vma
69 (display_debug_frames): Likewise.
71 2013-09-10 Nick Clifton <nickc@redhat.com>
73 * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
74 parsing 64-bit frames.
76 2013-08-27 Nick Clifton <nickc@redhat.com>
79 * ar.c (map_over_members): Correctly handle multiple same-name
80 entries on the command line and in the archive.
82 2013-08-23 H.J. Lu <hongjiu.lu@intel.com>
84 * doc/binutils.texi: Remove the extra space.
86 2013-08-23 Mikael Pettersson <mikpe@it.uu.se>
89 * doc/binutils.texi (ranlib -D): Correct description.
91 (nm --special-syms): Fix typo.
93 2013-08-23 Nick Clifton <nickc@redhat.com>
96 * doc/binutils.texi (ar cmdline): Update description of 'q'
100 (nm): Add description of 'I' symbol type.
102 2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
105 * od-xcoff.c: Fix typos.
107 2013-08-19 Tristan Gingold <gingold@adacore.com>
109 * nm.c (print_size_symbols): Directly get symbol size.
111 2013-08-12 Andreas Schwab <schwab@suse.de>
114 * objdump.c (disassemble_section): Return early if nothing from
115 this section needs to be disassembled.
117 2013-08-09 Nick Clifton <nickc@redhat.com>
119 * readelf.c (get_machine_flags): Handle RL78 G10 flag.
121 2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com>
122 Alexander Ivchenko <alexander.ivchenko@intel.com>
123 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
124 Sergey Lega <sergey.s.lega@intel.com>
125 Anna Tikhonova <anna.tikhonova@intel.com>
126 Ilya Tocar <ilya.tocar@intel.com>
127 Andrey Turetskiy <andrey.turetskiy@intel.com>
128 Ilya Verbin <ilya.verbin@intel.com>
129 Kirill Yukhin <kirill.yukhin@intel.com>
130 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
132 * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and
133 numeration in comments.
134 (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to
137 2013-07-19 Nick Clifton <nickc@redhat.com>
140 * readelf.c (get_unwind_section_word): Whilst searching for a
141 reloc section associated with an unwind section, check the type as
142 well as the section number.
144 2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu>
146 * ar.c (usage): Fix C conformance issue.
148 2013-07-18 Nick Clifton <nickc@redhat.com>
150 * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
153 * readelf.c (process_unwind): Do not return the result of a void
156 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
158 * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
159 numbers with enum values.
161 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
163 * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.
165 2013-07-10 Tristan Gingold <gingold@adacore.com>
167 * od-xcoff.c (OPT_LDINFO): Define.
168 (options): Add ldinfo.
169 (xcoff_help): Mention ldinfo.
170 (xcoff_dump): Rename to ...
171 (xcoff_dump_obj): ... this. Add a break.
172 (dump_dumpx_core): New function.
173 (xcoff_dump_core): Likewise.
174 (xcoff_dump): Likewise.
175 * doc/binutils.texi (objdump): Mention ldinfo.
177 2013-07-09 Tristan Gingold <gingold@adacore.com>
179 * configure.com: Add new defines to match changes in configure.
181 2013-05-28 Cary Coutant <ccoutant@google.com>
183 * dwarf.c (display_debug_lines_raw): Print section offsets.
185 2013-05-15 Cary Coutant <ccoutant@google.com>
187 * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
189 (decode_location_expression): DW_OP_const2u should read 2 bytes.
190 (display_debug_lines_decoded): Adjust formatting.
191 * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
193 (byte_get_big_endian): Likewise.
194 (byte_get_signed): Likewise.
196 2013-05-09 Andrew Pinski <apinski@cavium.com>
198 * doc/binutils.texi: Document -Mvirt disassembler option.
200 2013-05-02 Nick Clifton <nickc@redhat.com>
202 * readelf.c: Add support for MSP430X architecture.
204 2013-05-02 Nick Clifton <nickc@redhat.com>
206 * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
207 sections as if they were fragmentary .debug_line sections.
208 (display_debug_lines_decoded): Likewise.
210 2013-04-29 Nick Clifton <nickc@redhat.com>
212 * dwarf.c (read_debug_line_header): New function. Reads in a
213 header in a .debug_line section.
214 (display_debug_lines_raw): Use new function. Handle fragmentary
215 .debug_line sections.
216 (display_debug_lines_decoded): Likewise.
217 * readelf.c (process_section_headers): Handle fragmenatry
218 .debug_line sections.
219 (display_debug_section): Likewise.
221 2013-04-26 Ian Lance Taylor <iant@google.com>
223 * MAINTAINERS: Add myself and Cary as gold maintainers.
225 2013-04-08 Tom Tromey <tromey@redhat.com>
227 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
229 2013-04-08 Tom Tromey <tromey@redhat.com>
231 * dwarf-mode.el: Bump version number.
232 (dwarf-mode): Remove autoload.
233 (dwarf-die-reference): Relax regexp.
235 2013-04-05 Alan Modra <amodra@gmail.com>
238 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
239 * dwarf.c (strnlen): Provide fallback decl.
240 * config.in: Regnerate.
241 * configure: Regenerate.
243 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
245 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
248 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
251 * winduni.c (codepages[]): Use UTF-16LE.
252 (wind_MultiByteToWideChar): Likewise.
253 (wind_WideCharToMultiByte): Likewise.
255 2013-03-27 Alan Modra <amodra@gmail.com>
258 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
260 2013-03-26 Nick Clifton <nickc@redhat.com>
263 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
264 space before calling byte_get.
265 (SAFE_BYTE_GET_AND_INC): New macro.
266 (SAFE_SIGNED_BYTE_GET): New macro.
267 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
268 (SAFE_BYTE_GET64): New macro.
269 (process_extened_line_op): Use new macros. Use strnlen when
271 (fetch_indirect_string): Likewise.
272 (get_FORM_name): Likewise.
273 (decode_location_expression): Likewise.
274 (read_and_display_attr_value): Likewise.
275 (process_debug_info): Likewise.
276 (display_debug_lines_raw): Likewise.
277 (display_debug_lines_decoded): Likewise.
278 (display_debug_pubnames): Likewise.
279 (display_debug_macinfo): Likewise.
280 (get_line_filename_and_dirname): Likewise.
281 (display_debug_macro): Likewise.
282 (display_loc_list): Likewise.
283 (display_loc_list_dwo): Likewise.
284 (display_debug_aranges): Likewise.
285 (display_debug_ranges): Likewise.
286 (frame_display_row): Likewise.
287 (display_debug_frames): Likewise.
289 2013-03-25 Nick Clifton <nickc@redhat.com>
292 * dwarf.c (read_leb128): Add END parameter. Do not read at or
294 (read_sleb128): Add END parameter.
295 (read_uleb128): New function.
296 (process_extended_line_op): Pass END to leb128 functions.
297 (process_abbrev_section): Likewise.
298 (decode_location_expression): Likewise.
299 (read_and_display_attr_value): Likewise.
300 (read_and_display_attr): Likewise.
301 (process_debug_info): Likewise.
302 (display_debug_lines_raw): Likewise.
303 (display_debug_lines_decoded): Likewise.
304 (display_debug_macinfo): Likewise.
305 (get_line_filename_and_dirname): Likewise.
306 (display_debug_macro): Likewise.
307 (display_loc_list_dwo): Likewise.
308 (display_debug_ranges): Likewise.
309 * dwarf.h (read_leb128): Update prototype.
310 * readelf.c (read_uleb128): Add END parameter.
311 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
312 (decode_tic6x_unwind_bytecode): Likewise.
313 (display_tag_value): New function.
314 (display_arm_attribute): Add END parameter. Pass END to
315 read_uleb128. Use display_tag_value.
316 (display_gnu_attribute): Likewise.
317 (display_power_gnu_attribute): Likewise.
318 (display_sparc_gnu_attribute): Likewise.
319 (display_mips_gnu_attribute): Likewise.
320 (display_tic6x_attribute): Likewise.
321 (process_attributes): Likewise.
322 (display_raw_attribute): New function.
324 2013-03-22 Nick Clifton <nickc@redhat.com>
327 * dwarf.c (display_debug_ranges): Add checks for reading beyond
328 the end of the section.
331 * readelf.c (apply_relocations): Catch relocations with negative
334 2013-03-15 Nick Clifton <nickc@redhat.com>
336 * addr2line.c (slurp_symtab): If canonicalization reveals that
337 there were no ordinary symbols, try loading the dynamic symbols
340 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
342 * MAINTAINERS: Add myself as Meta maintainer.
344 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
346 * readelf.c (get_note_type): Add NT_S390_TDB.
348 2013-03-07 Alan Modra <amodra@gmail.com>
350 * strings.c (get_char): Dispense with buf[]. Instead shift
351 chars into big-endian value and byte-swap later if
352 little-endian. Don't EOF check value read from object.
354 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
356 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
357 * configure: Regenerate.
359 2013-03-04 Nick Clifton <nickc@redhat.com>
361 * elfcomm.c (error): Flush stdout before emitting the error
365 2013-03-01 Cary Coutant <ccoutant@google.com>
367 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
368 (shndx_pool_used): Move to top of file.
369 (struct cu_tu_set): New type.
370 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
371 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
372 (find_cu_tu_set_v2): New function.
373 (read_and_display_attr_value): Add "this_set" parameter.
374 (read_and_display_attr): Likewise.
375 (process_debug_info): Track base offsets for DWARF package files.
376 (load_debug_info): Call load_cu_tu_indexes.
377 (get_DW_SECT_short_name): New function.
378 (process_cu_tu_index): Add support for version 2 DWARF package files.
380 2013-02-27 Alan Modra <amodra@gmail.com>
383 * readelf.c (offsetof): Define.
384 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
385 (process_corefile_note_segment): Allow notes without name or
386 desc. Combine out-of-range checks. Disallow "negative"
389 2013-02-26 Nick Clifton <nickc@redhat.com>
392 * readelf.c (process_corefile_note_segment): Prevent attempts to
393 read beyond the end of the note buffer.
395 2013-02-15 Kai Tietz <ktietz@redhat.com>
397 * objcopy.c (copy_main): Initialize context variable.
399 2013-02-15 Nick Clifton <nickc@redhat.com>
402 * ar.c (open_inarch): Fail on attempts to convert a normal archive
403 to a thin archive or vice versa.
404 * elfcomm.c (make_qualified_name): Handle corrupted thin
406 * readelf.c (process_archive): Likewise.
407 * doc/binutils.texi: Clarify documentation describing thin
410 2013-02-15 Nick Clifton <nickc@redhat.com>
413 * objcopy.c (enum change_action): Delete.
414 (struct section_list): Delete remove, copy, change_vma, change_lma
415 and set_flags fields. Add context field.
416 (find_section_list): Add a context parameter. Add support for
417 wildcard characters in section names.
418 (is_strip_section): Check for sections being both copied and
420 (copy_object): Pass context to find_section_list.
421 (setup_section): Likewise.
422 (copy_section): Likewise.
423 (copy_main): Likewise.
424 * doc/binutils: Document the new behaviour.
425 * NEWS: Mention the new feature
427 2013-02-14 Nick Clifton <nickc@redhat.com>
430 * objcopy.c (copy_object): Provide a helpful warning message when
431 adding a gnu_debuglink section to an object which already contains
434 2013-02-07 Nick Clifton <nickc@redhat.com>
436 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
437 corrupt archive uses long names but has no long name table.
439 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
440 Andrew Jenner <andrew@codesourcery.com>
442 Based on patches from Altera Corporation.
444 * readelf.c: Include elf/nios2.h.
445 (dump_relocations): Add case for EM_ALTERA_NIOS2.
446 (get_nios2_dynamic_type): New.
447 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
448 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
449 (is_16bit_abs_reloc): Likewise.
450 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
451 * NEWS: Note Altera Nios II support.
452 * MAINTAINERS: Add Nios II maintainers.
454 2013-01-29 Xi Wang <xi.wang@gmail.com>
456 * readelf.c (process_version_sections): Fix overflow checks to
457 avoid undefined behaviour.
459 2013-01-28 Doug Evans <dje@google.com>
461 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
463 2013-01-28 Robert Schiele <rschiele@gmail.com>
465 * objcopy.c (parse_flags): Add merge and strings section flags.
467 2013-01-25 Cary Coutant <ccoutant@google.com>
469 * dwarf.c (display_loc_list): Update offset for each line
471 (print_addr_index): New function.
472 (display_loc_list_dwo): Update offset for each line printed.
473 Fix problems displaying loclists in .dwo files. Add support
475 (display_debug_loc): Remove custom header for .dwo files.
476 (display_debug_addr): Adjust formatting.
478 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
480 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
482 2013-01-24 Doug Evans <dje@google.com>
484 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
486 2013-01-24 Nick Clifton <nickc@redhat.com>
488 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
490 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
492 * readelf.c: Add strings for NT_S390_LAST_BREAK and
495 2013-01-18 Nick Clifton <nickc@redhat.com>
498 * addr2line.c (translate_addresses): When pretty printing, print
499 unknown function names on the same line as unknown symbol names.
501 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
503 * objdump.c (dump_target_specific): Fix NULL pointer test.
505 2013-01-16 Alan Modra <amodra@gmail.com>
508 * stabs.c (parse_stab_members): Always set physname here to avoid
510 (parse_stab_argtypes): ..and don't duplicate the init here.
512 2013-01-10 Will Newton <will.newton@imgtec.com>
514 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
515 (dump_relocations): Add EM_METAG.
516 (get_machine_name): Correct case for Meta.
517 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
518 (is_none_reloc): Add support for Meta NONE reloc.
520 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
522 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
525 2013-01-07 Roland McGrath <mcgrathr@google.com>
527 * objcopy.c (deterministic): Make int rather than bfd_boolean,
529 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
530 (default_deterministic): New function.
531 (strip_main, copy_main): Handle -U. Call default_deterministic.
532 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
533 the default based on DEFAULT_AR_DETERMINISTIC.
534 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
535 configure options on -D.
537 * ar.c (default_deterministic): Comment fix.
539 2013-01-07 Patrice Dumas <pertusus@free.fr>
541 * doc/binutils.texi: Fix ordering of top level nodes.
542 Replace erroneous uses of @itemx with @item.
544 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
546 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
548 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
550 * MAINTAINERS: Add myself as AArch64 co-maintainer.
552 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
554 * version.c (print_version): Update copyright year to 2013.
556 For older changes see ChangeLog-2012
558 Copyright (C) 2013 Free Software Foundation, Inc.
560 Copying and distribution of this file, with or without modification,
561 are permitted in any medium without royalty provided the copyright
562 notice and this notice are preserved.
568 version-control: never