1 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
4 * readelf.c (process_notes_at): Add an argument for note
5 alignment. If note alignment is less than 4, use 4 byte
6 alignment. Otherwise, skip notes if alignment isn't 4 nor
8 (process_corefile_note_segments): Pass segment alignment to
10 (process_note_sections): Pass section alignment to
12 (process_object): Call load_separate_debug_file only if
13 e_shstrndx != SHN_UNDEF.
15 2017-11-27 Nick Clifton <nickc@redhat.com>
18 * readelf.c (dump_section_as_bytes): Check for a NULL string
20 (process_notes_at): Compute the alignment to use if displaying
23 2017-11-26 H.J. Lu <hongjiu.lu@intel.com>
25 * dwarf.c (load_separate_debug_info): Rename argument name from
28 2017-11-24 H.J. Lu <hongjiu.lu@intel.com>
31 * readelf.c (process_notes_at): Use ELF_NOTE_DESC_OFFSET to get
32 the offset of the note descriptor. Use ELF_NOTE_NEXT_OFFSET to
33 get the offset of the next note entry.
35 2017-11-23 Pavel I. Kryukov <kryukov@frtk.ru>
38 * readelf.c (process_archive): Use memset to initiaise
39 thin_filedata structure.
41 2017-11-21 H.J. Lu <hongjiu.lu@intel.com>
44 * testsuite/binutils-all/x86-64/objects.exp: New file.
45 * testsuite/binutils-all/x86-64/pr22451.o.bz2: Likewise.
47 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
49 * testsuite/binutils-all/arc/objdump.exp: Update pattern matching
52 2017-11-21 Nick Clifton <nickc@redhat.com>
54 * dwarf.c (dwo_name, dwo_dir, dwo_id, dwo_id_len): New variables.
55 (read_and_display_attr_value): Record dwo variables if requested.
56 (display_augmentation_data): Rename to display_data and make
58 (load_dwo_file): New function. Loads a separate dwarf object
60 (load_separate_debug_file): Add reporting and loading of separate
62 * readelf.c (process_section_headers): Add do_debug_links to list
63 of flags requiring a debug dump.
64 (display_debug_section): Tidy up code.
65 * doc/debug.options.texi: Add note that dwo links will also be
67 * testsuite/binutils-all/debuglink.s: Tidy code.
68 * testsuite/binutils-all/dwo.s: New test file.
69 * testsuite/binutils-all/readelf.wk2: New file - expected output
71 * testsuite/binutils-all/readelf.exp: Run the new test.
73 2017-11-18 Alan Modra <amodra@gmail.com>
76 * nm.c (sort_symbols_by_size): Don't attempt to access
77 section symbol internal_elf_sym.
78 (print_symbol): Likewise. Don't call bfd_get_symbol_version_string
80 * objdump.c (compare_symbols): Don't attempt to access
81 section symbol internal_elf_sym.
82 (objdump_print_symname): Don't call bfd_get_symbol_version_string
85 2017-11-17 Jim Wilson <jimw@sifive.com>
87 * readelf.c (elf/riscv.h): Alphabetize include.
88 (is_32bit_inplace_add_reloc, is_32bit_inplace_sub_reloc)
89 (is_64bit_inplace_add_reloc, is_64bit_inplace_sub_reloc)
90 (is_16bit_inplace_add_reloc, is_16bit_inplace_sub_reloc)
91 (is_8bit_inplace_add_reloc, is_8bit_inplace_sub_reloc): New.
92 (apply_relocations): New locals reloc_inplace and reloc_subtract.
93 Call the new functions and set the new locals. Call byte_get if
94 reloc_inplace. Subtract sym->st_value if reloc_subtract.
96 2017-11-17 Nick Clifton <nickc@redhat.com>
99 * ar.c (write_archive): Free the temporary file name.
101 2017-11-17 Nick Clifton <nickc@redhat.com>
103 * readelf.c (process_archive): Include member name in the
104 file_name of the filedata structure.
106 2017-11-15 Alan Modra <amodra@gmail.com>
109 * objcopy.c (copy_main): Free tmpname.
111 2017-11-15 Nick Clifton <nickc@redhat.com>
114 * dwarf.h (enum dwarf_section_display_enum): Add gnu_debuglink,
115 gnu_debugaltlink and separate_debug_str.
116 (struct dwarf_section): Add filename field.
117 Add prototypes for load_separate_debug_file, close_debug_file and
119 * dwarf.c (do_debug_links): New.
120 (do_follow_links): New.
121 (separate_debug_file, separate_debug_filename): New.
122 (fetch_alt_indirect_string): New function. Retrieves a string
123 from the debug string table in the separate debug info file.
124 (read_and_display_attr_value): Use it with DW_FORM_GNU_strp_alt.
125 (load_debug_section_with_follow): New function. Like
126 load_debug_section, but if the first attempt fails, then tries
127 again in the separate debug info file.
128 (introduce): New function.
129 (process_debug_info): Use load_debug_section_with_follow and
131 (load_debug_info): Likewise.
132 (display_debug_lines_raw): Likewise.
133 (display_debug_lines_decoded): Likewise.
134 (display_debug_macinfo): Likewise.
135 (display_debug_macro): Likewise.
136 (display_debug_abbrev): Likewise.
137 (display_debug_loc): Likewise.
138 (display_debug_str): Likewise.
139 (display_debug_aranges): Likewise.
140 (display_debug_addr); Likewise.
141 (display_debug_frames): Likewise.
142 (display_gdb_index): Likewise.
143 (process_cu_tu_index): Likewise.
144 (load_cu_tu_indexes): Likewise.
145 (display_debug_links): New function. Displays the contents of a
146 .gnu_debuglink or .gnu_debugaltlink section.
147 (calc_gnu_debuglink_ctc32):New function. Calculates a CRC32
149 (check_gnu_debuglink): New function. Checks the CRC of a
150 potential separate debug info file.
151 (parse_gnu_debuglink): New function. Reads a CRC value out of a
152 .gnu_debuglink section.
153 (check_gnu_debugaltlink): New function.
154 (parse_gnu_debugaltlink): New function. Reads the build-id value
155 out of a .gnu_debugaltlink section.
156 (load_separate_debug_info): New function. Finds and loads a
157 separate debug info file.
158 (load_separate_debug_file): New function. Attempts to find and
159 follow a link to a separate debug info file.
160 (free_debug_memory): Free the separate debug info file
162 (opts_table): Add "follow-links" and "links".
163 (dwarf_select_sections_by_letters): Add "k" and "K".
164 (debug_displays): Reformat. Add .gnu-debuglink and
166 Add an extra entry for .debug_str in a separate debug info file.
167 * doc/binutils.texi: Move description of debug dump features
168 common to both readelf and objdump into...
169 * objdump.c (usage): Add -Wk and -WK.
170 (load_specific_debug_section): Initialise the filename field in
171 the dwarf_section structure.
172 (close_debug_file): New function.
173 (open_debug_file): New function.
174 (dump_dwarf): Load and dump the separate debug info sections.
175 * readelf.c (struct filedata): New structure. Contains various
176 variables that used to be global:
177 (current_file_size, string_table, string_table_length, elf_header)
178 (section_headers, program_headers, dump_sects, num_dump_sects):
179 Move into filedata structure.
180 (cmdline): New global variable. Contains list of sections to dump
181 by number, as specified on the command line.
182 Add filedata parameter to most functions.
183 (load_debug_section): Load the string table if it has not already
185 (close_file): New function.
186 (close_debug_file): New function.
187 (open_file): New function.
188 (open_debug_file): New function.
189 (process_object): Process sections in any separate debug info files.
190 * doc/debug.options.texi: New file. Add description of =links and
191 =follow-links options.
192 * NEWS: Mention the new feature.
193 * elfcomm.c: Have the byte get functions take a const pointer.
194 * elfcomm.h: Update prototypes.
195 * testsuite/binutils-all/dw5.W: Update expected output.
196 * testsuite/binutils-all/objdump.WL: Update expected output.
197 * testsuite/binutils-all/objdump.exp: Add test of -WK and -Wk.
198 * testsuite/binutils-all/readelf.exp: Add test of -wK and -wk.
199 * testsuite/binutils-all/readelf.k: New file.
200 * testsuite/binutils-all/objdump.Wk: New file.
201 * testsuite/binutils-all/objdump.WK2: New file.
202 * testsuite/binutils-all/linkdebug.s: New file.
203 * testsuite/binutils-all/debuglink.s: New file.
205 2017-11-10 Jim Wilson <jimw@sifive.com>
207 * testsuite/binutils-all/objdump.exp: Expect the debug_ranges test to
210 2017-11-07 Jim Wilson <jimw@sifive.com>
212 * MAINTAINERS (RISC-V): Fix typo in my email address.
214 2017-11-07 Palmer Dabbelt <palmer@sifive.com>
216 * MAINTAINERS (RISC-V): Add Jim Wilson as a maintainer.
217 Clean up Andrew's entry (remove trailing space, add tabs).
218 Change Palmer's email address, and clean up entry (add tabs).
220 2017-11-07 Alan Modra <amodra@gmail.com>
222 * dwarf.c (read_uleb128): Properly pluralize messages.
223 (display_debug_lines_raw, display_debug_loc): Likewise.
224 (display_debug_names, process_cu_tu_index): Likewise.
225 * od-macho.c (dump_code_signature_superblob): Likewise.
226 * readelf.c (process_program_headers): Likewise.
227 (process_section_header, process_relocs): Likewise.
228 (hppa_process_unwind, arm_process_unwind): Likewise.
229 (process_dynamic_section, process_version_sections): Likewise.
230 (process_symbol_table, process_syminfo): Likewise.
231 (apply_relocations, process_mips_specific): Likewise.
232 (process_gnu_liblist, process_notes_at): Likewise.
233 (process_archive): Likewise.
234 * testsuite/binutils-all/dw2-1.W,
235 * testsuite/binutils-all/dw2-3.W,
236 * testsuite/binutils-all/dw2-3gabi.W,
237 * testsuite/binutils-all/dw5.S,
238 * testsuite/binutils-all/dw5.W,
239 * testsuite/binutils-all/i386/compressed-1a.d,
240 * testsuite/binutils-all/libdw2-compressedgabi.out,
241 * testsuite/binutils-all/objdump.W,
242 * testsuite/binutils-all/readelf.r,
243 * testsuite/binutils-all/readelf.r-64,
244 * testsuite/binutils-all/x86-64/compressed-1a.d: Update
245 for pluralization fixes.
247 2017-11-07 Alan Modra <amodra@gmail.com>
249 * sysdep.h (textdomain, bindtextdomain): Use safer "do nothing".
250 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
252 2017-11-03 Claudiu Zissulescu <claziss@synopsys.com>
254 * doc/binutils.texi (ARC): Update disassembler options.
255 * testsuite/binutils-all/arc/hexprint.s: New file.
256 * testsuite/binutils-all/arc/objdump.exp: Test hex printing
259 2017-11-03 Mingi Cho <mgcho.minic@gmail.com>
260 Nick Clifton <nickc@redhat.com>
263 * dwarf.c (read_cie): Use bfd_size_type for
264 augmentation_data_len.
265 (display_augmentation_data): New function.
266 (display_debug_frames): Use it.
267 Check for integer overflow when testing augmentation_data_len.
269 2017-11-02 Mingi Cho <mgcho.minic@gmail.com>
272 * readelf.c (print_gnu_property_note): Improve overflow checks so
273 that they will work on a 32-bit host.
275 2017-11-01 James Bowman <james.bowman@ftdichip.com>
277 * readelf.c (is_16bit_abs_reloc): Add entry for FT32.
279 2017-10-31 Nick Clifton <nickc@redhat.com>
281 * readelf.c (process_relocs): Tell users if no static relocs were
282 found, but if they had added --use-dynamic to the command line
283 then relocs would have been displayed.
285 2017-10-28 Alan Modra <amodra@gmail.com>
288 * readelf.c (process_archive_index_and_symbols): Ensure ar_size
289 field is zero terminated for strtoul.
290 (setup_archive, get_archive_member_name): Likewise.
292 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
294 * dwarf.c (struct Frame_Chunk) <cfa_reg>: Change type to
296 (display_debug_frames): Read CFA reg as an unsigned number.
298 2017-10-25 Alan Modra <amodra@gmail.com>
300 * nm.c (filter_symbols): Match "__gnu_lto_slim" optionally prefixed
303 2017-10-18 Eric Botcazou <ebotcazou@adacore.com>
305 * MAINTAINERS: Add myself as Visium maintainer.
307 2017-10-18 Nick Clifton <nickc@redhat.com>
309 * README-how-to-make-a-release: A note about checking file and
310 directory permissions.
312 * MAINTAINERS: Move Svein Seldal to Past Maintainers section.
314 2017-10-18 Alan Modra <amodra@gmail.com>
317 * readelf.c (print_core_note): Ensure "count" sanity check
318 calculation doesn't overflow.
319 (process_notes_at): Perform note namesz and descsz checks
320 using unsigned comparisons against data remaining. Catch
321 alignment overflow of namesz and descsz too. Don't allocate a
322 temp for terminating "name" when there is space available
325 2017-10-17 Tom Tromey <tom@tromey.com>
327 * MAINTAINERS: Add myself as dwarf-mode.el maintainer.
329 2017-10-11 Peeter Joot <peeter.joot@lzlabs.com>
330 Nick Clifton <nickc@redhat.com>
332 * dwarf.c (read_and_display_attr_value): Handle DW_AT_endianity,
333 DW_END_default, DW_END_big, DW_END_little, DW_ATE_UCS,
334 DW_ATE_ASCII, DW_CC_pass_by_reference, DW_CC_pass_by_value,
335 DW_CC_GNU_renesas_sh, DW_CC_GNU_borland_fastcall_i386,
336 DW_AT_decimal_sign, DW_AT_defaulted, DW_AT_discr_list.
337 (get_TAG_name): Report user generated tag values.
338 * testsuite/binutils-all/dwarf-attributes.S: New test.
339 * testsuite/binutils-all/dwarf-attributes.W. Expected output from
341 * testsuite/binutils-all/readelf.exp: Run the new test.
343 2017-10-10 Tom Tromey <tom@tromey.com>
345 * dwarf-mode.el: Bump to version 1.4.
347 2017-10-10 Tom Tromey <tom@tromey.com>
349 * dwarf-mode.el (dwarf--process, dwarf--deletion-region): New
351 (dwarf--check-running, dwarf--sentinel, dwarf--invoke)
352 (dwarf--filter): New functions.
353 (dwarf-do-insert-substructure, dwarf-do-refresh): Call
354 dwarf--check-running, dwarf--invoke.
355 (dwarf-browse): Initialize new variables.
357 2017-10-10 Tom Tromey <tom@tromey.com>
359 * dwarf-mode.el: Set lexical-binding.
361 2017-10-10 Tom Tromey <tom@tromey.com>
363 * dwarf-mode.el (dwarf-mode-map): New defvar.
365 2017-10-10 Tom Tromey <tromey@sourceware.org>
368 * dwarf.c (process_debug_info): Skip any comp unit that ends
369 before dwarf_start_die.
371 2017-10-06 Alan Modra <amodra@gmail.com>
373 * dwarf.c (process_debug_info): Consolidate header length checks.
374 (display_debug_pubnames_worker): Use "start" to read header.
375 Properly check header length and report errors earlier.
376 Simplify loop printing pubnames.
377 (get_line_filename_and_dirname): Catch small negative "length"
379 (display_debug_aranges): Likewise. Report header errors
380 earlier using standardized message.
381 (display_debug_names): Likewise.
383 2017-10-05 Joseph Myers <joseph@codesourcery.com>
385 * readelf.c (decode_arm_unwind): Initialize res to TRUE.
387 2017-10-05 Nick Clifton <nickc@redhat.com>
390 * objcopy.c (strip_main): Add 'M' character to short options list
391 when calling getopt_long.
393 2017-10-05 Nick Clifton <nickc@redhat.com>
396 * readelf.c (dump_relocations): Do not truncate reloc names when
397 displaying output in wide mode.
399 2017-10-05 Nick Clifton <nickc@redhat.com>
401 * README-how-to-make-a-release: Merge steps 3, 4 and 5, and insert
402 the git tag operation at the correct location.
404 2017-10-05 Alan Modra <amodra@gmail.com>
407 * dwarf.c (read_cie): Don't compare "start" and "end" pointers
408 after adding a possibly wild length to "start", compare the length
409 to the difference of the pointers instead. Remove now redundant
410 "negative" length test.
412 2017-10-05 Tristan Gingold <tgingold@free.fr>
414 * MAINTAINERS: Update email address. Redirect release maintainer
415 to global maitainers.
417 2017-10-01 Alan Modra <amodra@gmail.com>
421 * objdump.c (load_specific_debug_section): Introduce a temp to
422 stop bfd_get_full_section_contents NULLing out section->start.
424 2017-10-01 Alan Modra <amodra@gmail.com>
427 * objdump.c (load_specific_debug_section): Allocate an extra byte
428 for a terminating NUL.
430 2017-09-30 Alan Modra <amodra@gmail.com>
433 * objdump.c: Formatting.
434 (show_line): Reset prev_line when function name changes.
436 2017-09-27 Nick Clifton <nickc@redhat.com>
439 * dwarf.c (process_debug_info): Add a check for a negative
442 2017-09-27 Alan Modra <amodra@gmail.com>
445 * readelf.c (process_symbol_table): Check that DT_HASH symbol
446 chains are only visited once, and report an error if not. Display
447 invalid symbol index if chain is out of range. Use the same logic
448 when calculating histograms rather than the PR 17531 fix. Delete
449 bogus check that chained index is less than number of buckets.
451 2017-09-26 Nick Clifton <nickc@redhat.com>
454 * dwarf.c (get_line_filename_and_dirname): Add extra checks for
457 2017-09-26 Nick Clifton <nickc@redhat.com>
459 * README-how-to-make-a-release: New file.
461 2017-09-26 Alan Modra <amodra@gmail.com>
464 * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string.
465 (READ_SLEB): Likewise.
466 * readelf.c (bfd_vmatoa): New function.
467 (get_data, get_dynamic_data): Use it for printing error messages.
469 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
472 * nm.c (display_rel_file): Free memory returned from
473 bfd_get_synthetic_symtab.
475 2017-09-22 Alexandre Oliva <aoliva@redhat.com>
477 * dwarf.h (debug_info): Add loc_views and num_loc_views.
478 * dwarf.c (vm1): New constant.
479 (print_dwarf_view): New function.
480 (read_and_display_attr_value): Support DW_AT_GNU_locviews.
481 (process_debug_info): Keep num_loc_offsets and num_loc_views
483 (display_view_pair_list): New function.
484 (display_loc_list_dwo): Take vstart_ptr; update it. Dump
485 location view pairs before the range they apply to, when a
486 viewlist augments the loc list.
487 (display_loc_list): Likewise. Check view numbers in range
489 (display_loclists_list): Likewise. Handle view pair entries,
490 and warn on trailing ones.
491 (loc_views): New variable.
492 (loc_offsets_compar): Compare loc_views if loc_offsets are the
494 (display_debug_loc): Check and sort loc_views too. Accept
495 loc_view as expected_start. Skip if lists and views are the
496 same. Dump locview list separately in order, and pass the
497 locview list base to each list dump function. Warn and skip
498 overlap and hole checking if we find loclists and locviews to
500 * testsuite/binutils-all/locview-1.s: New.
501 * testsuite/binutils-all/readelf.locview-1: New.
502 * testsuite/binutils-all/locview-2.s: New.
503 * testsuite/binutils-all/readelf.locview-2: New.
504 * testsuite/binutils-all/readelf.exp: Run new tests. Fix
505 option spelling in pr18374 fail message. XFAIL dw5 test on
508 2017-09-22 Alan Modra <amodra@gmail.com>
510 * testsuite/binutils-all/readelf.exp: Don't perror and exit on
511 bintest.s assembly failure. Report tests unresolved instead.
512 Likewise for version note test, pr18374, decompress, and dw5
514 (readelf_test): Set testname to include both option and binary
515 file name. Use for pass/fail.
517 2017-09-21 Maciej W. Rozycki <macro@imgtec.com>
519 * readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
521 2017-09-05 Nick Clifton <nickc@redhat.com>
524 * readelf.c (process_mips_specific): Add checks for a NULL data
527 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
528 Edmar Wienskoski <edmar.wienskoski@nxp.com
530 * readelf.c (get_elf_section_flags): Add VLE.
531 (process_section_headers): Add VLE key to details.
533 2017-08-25 Alan Modra <amodra@gmail.com>
536 * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
537 vd_aux and vda_next for sanity. Delete "end". Correct overflow
539 (process_version_sections <SHT_GNU_verneed>): Correct overflow
540 check. Don't report invalid vna_next on overflow. Do report
541 invalid vna_next on size less than aux info.
543 2017-08-23 Alan Modra <amodra@gmail.com>
546 * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
547 for invalid vn_next field before adding to idx. Use unsigned
548 long for index vars. Move index checks.
549 <SHT_GNU_verdef>: Likewise for vd_next.
551 2017-08-17 Nick Clifton <nickc@redhat.com>
553 * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
554 and decoding of version2 GNU build attribute notes.
555 * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
557 * testsuite/binutils-all/note-3-64.d: New test driver.
558 * testsuite/binutils-all/note-3-32.d: New test driver.
559 * testsuite/binutils-all/objcopy.exp: Run the new test.
560 * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
562 2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
564 * readelf.c (get_note_type): Handle PPC note types available
567 2017-08-12 Alan Modra <amodra@gmail.com>
569 * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
572 2017-08-08 Nick Clifton <nickc@redhat.com>
575 * prdbg.c (pr_int_type): Increase size of local string buffer.
576 (pr_float_type): Likewise.
577 (pr_bool_type): Likewise.
579 2017-08-02 Nick Clifton <nickc@redhat.com>
582 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
585 2017-08-02 Nick Clifton <nickc@redhat.com>
587 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
589 2017-08-02 Alan Modra <amodra@gmail.com>
591 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
593 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
594 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
596 2017-08-01 Nick Clifton <nickc@redhat.com>
598 * po/sv.po: Updated Swedish translation.
600 2017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
603 * winduni.c (codepages): Use cp1252 for codepage 0.
605 2017-07-25 Nick Clifton <nickc@redhat.com>
608 * readelf.c (dump_section_as_strings): Do not fail if the section
610 (dump_section_as_bytes): Likewise.
612 2017-07-24 Nick Clifton <nickc@redhat.com>
615 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
616 string whilst concatenating symbol names.
618 2017-07-21 Nick Clifton <nickc@redhat.com>
620 * po/fr.po: Updated French translation.
622 2017-07-21 Simon Marchi <simon.marchi@ericsson.com>
624 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
626 (load_debug_info): Remove assignments to those two variables.
628 2017-07-21 Alexandre Oliva <aoliva@redhat.com>
630 * dwarf.c (struct State_Machine_Registers): Add view field.
631 (reset_state_machine): Reset view.
632 (process_extended_line_op): Reset view when appropriate.
633 (display_debug_lines_raw): Increment or reset view when appropriate.
634 Print nonzero views. Support print view resets, disabled by default.
635 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
636 enabling printing of end_sequence.
637 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
638 * testsuite/binutils-all/dw2-3.W: Likewise.
639 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
640 * testsuite/binutils-all/dw5.W: Add end sequence lines.
641 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
642 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
643 * testsuite/binutils-all/objdump.W: Likewise.
644 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
645 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
647 2017-07-19 Tristan Gingold <gingold@adacore.com>
649 * nm.c (show_stats): Remove variable.
650 (long_options): Remove --stats option.
651 (main): Remove handling of --stats.
653 2017-07-18 Nick Clifton <nickc@redhat.com>
656 * coffgrok.c: Fix spelling typos.
657 * readelf.c: Likewise.
659 * testsuite/binutils-all/objcopy.exp: Likewise.
661 2017-07-18 Nick Clifton <nickc@redhat.com>
663 * po/sv.po: Updated Swedish translation.
665 2017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
667 * dwarf.c (display_debug_names): Initialize hash_prev.
669 2017-07-17 Nick Clifton <nickc@redhat.com>
672 * ar.c (main): Skip check for no files on the command line when
675 2017-07-13 H.J. Lu <hongjiu.lu@intel.com>
677 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
680 2017-07-12 Alan Modra <amodra@gmail.com>
682 * po/bg.po: Update from translationproject.org/latest/binutils/.
683 * po/ca.po: Likewise.
684 * po/da.po: Likewise.
685 * po/es.po: Likewise.
686 * po/fi.po: Likewise.
687 * po/fr.po: Likewise.
688 * po/hr.po: Likewise.
689 * po/id.po: Likewise.
690 * po/it.po: Likewise.
691 * po/ja.po: Likewise.
692 * po/ro.po: Likewise.
693 * po/ru.po: Likewise.
694 * po/sk.po: Likewise.
695 * po/sr.po: Likewise.
696 * po/sv.po: Likewise.
697 * po/tr.po: Likewise.
698 * po/uk.po: Likewise.
699 * po/vi.po: Likewise.
700 * po/zh_CN.po: Likewise.
701 * po/zh_TW.po: Likewise.
703 2017-07-12 Nick Clifton <nickc@redhat.com>
705 Fix compile time warnings using gcc 7.1.1.
706 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
708 * srconv.c (walk_tree_type): Initialise the spare field of the
711 2017-07-11 Andreas Schwab <schwab@suse.de>
713 * readelf.c (process_note): Print newline after description data
715 (print_core_note): Print newline if nothing was printed in wide
718 2017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
720 * dwarf.c (display_formatted_table): Fix error message typo.
722 2017-07-07 John Baldwin <jhb@FreeBSD.org>
724 * readelf.c (get_freebsd_elfcore_note_type): Handle
725 NT_FREEBSD_PTLWPINFO.
727 2017-07-05 H.J. Lu <hongjiu.lu@intel.com>
729 * dwarf.c (display_debug_names): Replace index with xindex.
731 2017-07-04 Tristan Gingold <gingold@adacore.com>
733 * configure: Regenerate.
735 2017-07-04 Tristan Gingold <gingold@adacore.com>
737 * NEWS: Add marker for 2.29.
739 2017-07-03 Tristan Gingold <gingold@adacore.com>
741 * po/binutils.pot: Regenerate.
743 2017-07-03 Alan Modra <amodra@gmail.com>
745 * strings.c (filename_and_size_t): Delete.
746 (strings_a_section): Don't check section size against file size.
747 Use bdf_malloc_and_get_section. Report an error on failures.
748 Replace arg param with filename and got_a_section param.
749 (got_a_section): Move to..
750 (strings_object_file): ..an auto var here. Iterate over sections
751 rather than calling bfd_map_over_sections. Adjust strings_a_section
754 2017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
756 * dwarf.c: Include assert.h.
757 (MAX, MIN, get_IDX_name, display_debug_names): New.
758 (debug_displays): Add .debug_names.
759 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
760 * readelf.c (process_section_headers): Add ".debug_names".
762 2017-07-01 Alan Modra <amodra@gmail.com>
765 * objdump.c (strtab): Make var a bfd_byte*.
766 (disassemble_section): Don't limit malloc size. Instead, use
767 bfd_malloc_and_get_section.
768 (read_section_stabs): Use bfd_malloc_and_get_section. Return
770 (find_stabs_section): Remove now unnecessary cast.
771 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
772 contents on error return.
773 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
775 2017-06-30 Nick Clifton <nickc@redhat.com>
778 * objdump.c (disassemble_section): Move check for an overlarge
779 section to just before the allocation of memory. Do not check
780 section size against file size, but instead use an arbitrary 2Gb
781 limit. Issue a warning message if the section is too big.
783 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
785 * NEWS: Mention microMIPS XPA support.
787 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
789 * NEWS: Mention microMIPS Release 5 ISA support.
791 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
793 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
794 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
795 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
796 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
797 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
798 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
800 2017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
802 * testsuite/binutils-all/arc/double_store.s: New file.
803 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
805 (do_objfile): New function.
806 (check_assembly): Likewise.
808 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
810 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
812 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
814 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
815 comparing against bfd_get_file_size return.
817 2017-06-28 Nick Clifton <nickc@redhat.com>
819 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
820 * readelf.c (print_gnu_build_attribute_name): Likewise.
822 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
823 Matthew Fortune <matthew.fortune@imgtec.com>
825 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
826 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
827 * NEWS: Mention Imagination interAptiv MR2 processor support.
829 2017-06-26 Nick Clifton <nickc@redhat.com>
832 * objdump.c (disassemble_section): Skip any section that is bigger
833 than the entire file.
835 2017-06-26 Nick Clifton <nickc@redhat.com>
838 * bucomm.c (get_file_size): Explicitly warn if the file is a
841 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
843 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
845 2017-06-23 Nick Clifton <nickc@redhat.com>
848 * strings.c (strings_file): Warn about attempts to run strings on
851 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
853 * readelf.c (decode_x86_feature): Decode
854 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
855 * testsuite/binutils-all/i386/shstk.d: New file.
856 * testsuite/binutils-all/i386/shstk.s: Likewise.
857 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
858 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
859 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
861 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
863 * readelf.c (decode_x86_feature): New.
864 (print_gnu_property_note): Call decode_x86_feature on
865 GNU_PROPERTY_X86_FEATURE_1_AND.
866 * testsuite/binutils-all/i386/empty.d: New file.
867 * testsuite/binutils-all/i386/empty.s: Likewise.
868 * testsuite/binutils-all/i386/ibt.d: Likewise.
869 * testsuite/binutils-all/i386/ibt.s: Likewise.
870 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
871 * testsuite/binutils-all/x86-64/empty.d: Likewise.
872 * testsuite/binutils-all/x86-64/empty.s: Likewise.
873 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
874 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
875 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
877 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
879 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
880 (READ_SLEB): Likewise.
882 2017-06-21 Nick Clifton <nickc@redhat.com>
885 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
886 reading a value that is too big for the containing variable.
887 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
888 Replace uses of LEB and SLEB with appropriate new macro.
889 (display_debug_frames): Use an unsigned int for the 'reg'
890 variable. Use a signed long for the 'l' variable.
892 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
894 * readelf.c (get_s390_segment_type): Add support for the new
895 segment type PT_S390_PGSTE.
896 (get_segment_type): Call get_s390_segment_type.
898 2017-06-19 Nick Clifton <nickc@redhat.com>
901 * objdump.c (disassemble_bytes): Check that there is sufficient
902 data available before attempting to display it.
904 2017-06-06 Simon Marchi <simon.marchi@ericsson.com>
906 * sysinfo.y: Free memory allocated by token NAME.
908 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
910 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
912 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
915 * objdump.c (dump_relocs_in_section): Replace get_file_size
916 with bfd_get_file_size to get archive element size.
917 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
919 (test_objdump_h): Likewise.
920 (test_objdump_t): Likewise.
921 (test_objdump_r): Likewise.
922 (test_objdump_s): Likewise.
923 Add objdump tests on archive.
925 2017-05-24 Yao Qi <yao.qi@linaro.org>
927 * objdump.c (disassemble_data): Caller update.
929 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
931 * objcopy.c (merge_gnu_build_notes): Remove workaround that
932 prevented deleting relocations in duplicated notes in mips64 and
935 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
937 * testsuite/binutils-all/mips/mips-note-2.d: New test.
938 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
939 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
940 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
941 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
942 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
943 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
946 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
948 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
951 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
953 * NEWS: Mention the SPARC M8 support.
955 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
957 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
960 2017-05-18 Alan Modra <amodra@gmail.com>
962 * strings.c: Don't compare boolean values against TRUE or FALSE.
964 2017-05-15 Jeff Law <law@redhat.com>
966 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
968 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
970 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
972 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
973 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
974 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
976 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
978 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
980 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
981 * NEWS: Mention MIPS16e2 ASE support.
983 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
985 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
986 and SDBBP disassembly.
988 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
990 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
991 `copyfile' variables.
993 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
995 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
996 (get_arc_section_type_name): New function.
997 (get_section_type_name): Use the above function.
998 (display_arc_attribute): New function.
999 (process_arc_specific): Likewise.
1000 (process_arch_specific): Handle ARC specific information.
1002 2017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1004 * MAINTAINERS (SH): Remove myself as SH maintainer.
1006 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
1008 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
1009 long when comparing with sec->reloc_count.
1011 2017-05-02 Nick Clifton <nickc@redhat.com>
1013 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
1014 more internal relocs than external relocs.
1016 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
1018 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
1019 disassembly of PC-relative LA and LW synthetic instructions.
1021 2017-05-02 Nick Clifton <nickc@redhat.com>
1024 * objdump.c (dump_relocs_in_section): Check for an excessive
1025 number of relocs before attempting to dump them.
1027 2017-05-01 Alan Modra <amodra@gmail.com>
1029 * objcopy.c (merge_gnu_build_notes): Correct code deleting
1032 2017-04-28 Nick Clifton <nickc@redhat.com>
1035 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
1038 2017-04-28 Nick Clifton <nickc@redhat.com>
1041 * readelf.c (process_version_sections): Check for underflow when
1042 computing the start address of the auxillary version data.
1044 2017-04-28 Nick Clifton <nickc@redhat.com>
1047 * dwarf.c (process_extended_line_op): Do not assume that the
1048 string extracted from the section is NUL terminated.
1049 (fetch_indirect_string): If the string retrieved from the section
1050 is not NUL terminated, return an error message.
1051 (fetch_indirect_line_string): Likewise.
1052 (fetch_indexed_string): Likewise.
1054 2017-04-26 Nick Clifton <nickc@redhat.com>
1057 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
1058 * ar.c (main): Fail with usage() invocation if no file names are
1061 2017-04-26 Nick Clifton <nickc@redhat.com>
1063 * readelf.c (process_section_headers): Warn about overlarge
1065 (print_gnu_build_attribute_name): Print the number of unrecognised
1066 note types. Fix formatting in the presence of errors.
1067 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
1068 (testsuite/binutils-all/note-2-64.s): Likewise.
1070 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1072 * readelf.c (process_mips_specific): Add static GOT support.
1074 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1076 * readelf.c (process_mips_specific): Remove error reporting from
1079 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1081 * readelf.c (process_mips_specific): Remove null GOT data check.
1083 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1085 * testsuite/binutils-all/mips/mips16-alias.d: New test.
1086 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
1087 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
1088 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
1090 2017-04-23 Alan Modra <amodra@gmail.com>
1093 * ar.c (main): Check -a, -b, -i and -N args are given.
1095 2017-04-23 Alan Modra <amodra@gmail.com>
1098 * ar.c (main): Check that an archive file is given after options.
1100 2017-04-23 Alan Modra <amodra@gmail.com>
1103 * objdump.c (disassemble_section): Check bfd_get_section_contents
1106 2017-04-23 Alan Modra <amodra@gmail.com>
1109 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
1112 2017-04-21 Nick Clifton <nickc@redhat.com>
1115 * readelf.c (print_gnu_build_attribute_name): Check for an
1116 overlarge name field.
1118 2017-04-13 Nick Clifton <nickc@redhat.com>
1121 * readelf.c (process_dynamic_section): Detect over large section
1122 offsets in the DT_SYMTAB entry.
1124 2017-04-13 Nick Clifton <nickc@redhat.com>
1127 * readelf.c (process_mips_specific): Catch an unfeasible memory
1128 allocation before it happens and print a suitable error message.
1130 2017-04-13 Nick Clifton <nickc@redhat.com>
1132 * objcopy.c: Add --no-merge-notes option to disable note merging.
1133 Add --[no-]merge-notes option to strip, and enable it by default.
1134 (num_bytes): New function.
1135 (merge_gnu_build_notes): Add code to merge stack size notes.
1136 * binutils.texi: Update strip and objcopy documentation.
1137 * readelf.c (print_gnu_build_attribute_name): Use defined
1138 constants for note types.
1140 2017-04-10 John Delsignor <john.delsignore@roguewave.com>
1143 * dwarf.c (display_gdb_index): Correct test for a corrupt address
1146 2017-04-05 Jiong Wang <jiong.wang@arm.com>
1148 * objcopy.c (struct redefine_node): Delete the field "next".
1149 (redefine_sym_list): Deleted.
1150 (redefine_specific_htab): New hash table.
1151 (redefine_specific_reverse_htab): Likewise.
1152 (eq_string_redefnode): New function.
1153 (htab_hash_redefnode): Likewise.
1154 (create_symbol2redef_htab): Likewise.
1155 (add_specific_symbol_node): Likewise.
1156 (create_symbol_htabs): Create redefine_specific_htab and
1157 redefine_specific_reverse_htab.
1158 (lookup_sym_redefinition): Use hash table instead of list.
1159 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
1160 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
1163 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1165 * NEWS: Mention support for ELF SHF_GNU_MBIND and
1167 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
1168 (get_elf_section_flags): Handle SHF_GNU_MBIND.
1169 (process_section_headers): Likewise.
1170 * testsuite/binutils-all/mbind1.s: New file.
1171 * testsuite/binutils-all/objcopy.exp: Run readelf test on
1174 2017-04-03 Nick Clifton <nickc@redhat.com>
1177 * readelf.c (get_program_headers): Check for there being too many
1178 program headers before attempting to allocate space for them.
1180 2017-04-03 Nick Clifton <nickc@redhat.com>
1183 * readelf.c (process_mips_specific): Check for an out of range GOT
1184 entry before reading the module pointer.
1186 2017-04-03 Nick Clifton <nickc@redhat.com>
1189 * readelf.c (get_unwind_section_word): Fix snafu checking for
1190 invalid word offsets in ARM unwind information.
1192 2017-03-31 Pip Cet <pipcet@gmail.com>
1194 * NEWS: Use "WebAssembly" consistently.
1195 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
1197 2017-03-30 Pip Cet <pipcet@gmail.com>
1199 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
1200 (guess_is_rela): Likewise.
1201 (dump_relocations): Likewise.
1202 (is_32bit_abs_reloc): Likewise.
1203 (is_none_reloc_): Likewise.
1204 * NEWS: Mention the new support.
1205 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
1207 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
1208 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
1209 * testsuite/binutils-all/wasm32: New directory.
1210 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
1211 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
1212 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
1213 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
1214 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
1215 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
1216 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
1217 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
1218 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
1219 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
1220 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
1221 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
1222 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
1223 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
1224 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
1226 2017-03-29 Alan Modra <amodra@gmail.com>
1228 * doc/binutils.texi (objdump): Document PowerPC -M options.
1230 2017-03-21 Andi Kleen <ak@linux.intel.com>
1232 * objdump.c (unwind_inlines): Add.
1233 (option_values): Add OPTION_INLINES.
1234 (show_line): Unwind inlines if requested.
1235 (main): Parse OPTION_INLINES.
1236 (usage): Document --inlines.
1237 * doc/binutils.texi: Document --inlines.
1240 2017-03-21 Nick Clifton <nickc@redhat.com>
1242 * readelf.c (print_gnu_build_attribute_name): Allow stack
1243 protection notes to contain numeric values. Use a colon rather
1244 than a space to separate a string name from its values. Decode
1245 the numeric value of a stack protection note.
1246 * objcopy.c (merge_gnu_build_notes): Allow version notes to
1247 contain extra text after the protocol version number.
1249 2017-03-20 Mark Wielaard <mark@klomp.org>
1251 * readelf.c (process_program_headers): Move dynamic_addr check
1252 after .dynamic section cross check.
1254 2017-03-17 Nick Clifton <nickc@redhat.com>
1256 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
1257 printing the value for a build note with an ascii name.
1259 2017-03-16 Nick Clifton <nickc@redhat.com>
1261 * readelf.c (print_gnu_build_attribute_name): Add support for
1262 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
1264 2017-03-14 Nick Clifton <nickc@redhat.com>
1266 * readelf.c (print_gnu_build_attribute_description): Move symbol
1268 (print_symbol_for_build_attribute): New function. ...here.
1269 Add to find the best symbol to associate with an OPEN note.
1270 Add code to cache the symbol table and string table, so that they
1271 are not loaded every time a note is displayed.
1272 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
1273 * testsuite/binutils-all/note-2-64.s: Likewise.
1274 * testsuite/binutils-all/note-2-32.d: Update expected note output.
1275 * testsuite/binutils-all/note-2-64.d: Likewise.
1277 2017-03-13 Alan Modra <amodra@gmail.com>
1278 Taeung Song <treeze.taeung@gmail.com>
1280 * objdump.c (update_source_path): Add abfd param. Add struct
1281 stat var. Pass to try_print_file_open. Warn if source is more
1283 (try_print_file_open, slurp_file): Add struct stat param to
1285 (show_line): Call update_source_path with bfd.
1287 2017-03-10 Chia-Hao Lo <fcamel@gmail.com>
1290 * objdump.c (main): Set do_wide with --wide.
1292 2017-03-10 Nick Clifton <nickc@redhat.com>
1294 * readelf.c (get_machine_name): Rearrange switch table in order of
1295 increasing machine number. Add missing entries.
1297 2017-03-08 H.J. Lu <hongjiu.lu@intel.com>
1300 * readelf.c (decode_x86_isa): Change argument to unsigned int.
1301 (print_gnu_property_note): Retrieve property type and datasz as
1302 4-byte integer. Consolidate property datasz check. Check
1303 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
1304 * testsuite/binutils-all/i386/pr21231a.d: New file.
1305 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
1306 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
1307 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
1308 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
1309 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
1310 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
1311 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
1313 2017-03-06 Nick Clifton <nickc@redhat.com>
1315 * readelf.c (print_gnu_build_attribute_name): Read byte values
1316 from the name string as unsigned bytes.
1317 (process_notes_at): Use memcpy to copy an unterminated name
1320 2017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
1322 * configure.ac (AC_CHECK_DECLS): Add asprintf.
1323 * config.in: Regenerate.
1324 * configure: Regenerate.
1326 2017-03-02 Nick Clifton <nickc@redhat.com>
1328 * readelf.c (print_gnu_build_attribute_description): Use global
1329 symbols for OPEN attributes if at all possible.
1330 * objcopy.c (is_merged_note_section): Support build note sections
1331 without the SHF_GNU_BUILD_NOTE section flag set.
1333 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1335 * dwarf.c (debug_displays_assert): New static assertion.
1337 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1339 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
1341 2017-03-01 Nick Clifton <nickc@redhat.com>
1343 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
1344 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
1345 (decode_x86_isa): New function.
1346 (print_gnu_property_note): New function.
1347 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
1348 (print_gnu_build_attribute_description): New function.
1349 (print_gnu_build_attribute_name): New function.
1350 (process_note): Add support for GNU_BUILD_NOTEs.
1351 * objcopy.c (--merge-notes): New command line option.
1352 (copy_options): Add merge-notes.
1353 (copy_usage): Likewise.
1354 (is_merge_note_section): New function.
1355 (merge_gnu_build_notes): New function.
1356 (copy_object): Merge note sections if asked to do so.
1357 (skip_section): Add skip_copy parameter. Add support for skipping
1358 merged note sections.
1359 (copy_relocations_in_section): Update call to skip_section.
1360 (copy_section): Likewise.
1361 (copy_main): Add support for merge-notes option.
1362 * doc/binutils.texi: Document the new option to objcopy.
1363 * NEWS: Mention the new feature.
1364 * testsuite/binutils-all/note-2-32.d: New test. Checks note
1365 merging on 32-bit targets.
1366 * testsuite/binutils-all/note-2-32.s: New test source file.
1367 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
1368 but for 64-bit targets.
1369 * testsuite/binutils-all/note-2-64.s: New test source file.
1370 * testsuite/binutils-all/objcopy.exp: Run the new test.
1372 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
1374 * objdump.c (main): Use remove_whitespace_and_extra_commas.
1376 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1378 Fix compilation with GCC 4.4.7.
1379 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
1380 Initialize begin and end.
1382 2017-02-25 Alan Modra <amodra@gmail.com>
1384 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
1385 Support hpux .comm variant.
1386 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
1387 dw5 test for hppa64-hpux.
1389 2017-02-24 Nick Clifton <nickc@redhat.com>
1391 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
1392 (do_reloc, do_sections, do_section_groups, do_section_details,
1393 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
1394 (do_version, do_histogram, do_debugging, do_arch, do_notes,
1395 (do_archive_index, is_32bit_elf, decompress_dumps): Use
1397 (parse_args): Treat the do_* variables as booleans.
1398 (print_vma): Return an unsigned int.
1399 (print_symbol): Change width parameter to signed int.
1400 (is_ia64_vms): Change return type to bfd_boolean.
1401 (guess_is_rela): Likewise.
1402 (slurp_rela_relocs): Likewise.
1403 (slurp_rel_relocs): Likewise.
1404 (dump_relocations): Likewise.
1405 (process_file_header): Likewise.
1406 (get_program_headers): Likewise.
1407 (process_program_headers): Likewise.
1408 (process_section_headers): Likewise.
1409 (process_section_groups): Likewise.
1410 (dump_ia64_vms_dynamic_fixups): Likewise.
1411 (dump_ia64_vms_dynamic_relocs): Likewise.
1412 (process_ia64_vms_dynamic_relocs): Likewise.
1413 (process_relocs): Likewise.
1414 (dump_ia64_unwind): Likewise.
1415 (ia64_process_unwind): Likewise.
1416 (dump_hppa_unwind): Likewise.
1417 (slurp_hppa_unwind_table): Likewise.
1418 (hppa_process_unwind): Likewise.
1419 (decode_arm_unwind_bytecode): Likewise.
1420 (decode_tic6x_unwind_bytecode): Likewise.
1421 (decode_arm_unwind): Likewise.
1422 (dump_arm_unwind): Likewise.
1423 (arm_process_unwind): Likewise.
1424 (process_unwind): Likewise.
1425 (get_32bit_dynamic_section): Likewise.
1426 (get_64bit_dynamic_section): Likewise.
1427 (process_dynamic_section): Likewise.
1428 (process_version_sections): Likewise.
1429 (process_symbol_table): Likewise.
1430 (process_syminfo): Likewise.
1431 (apply_relocations): Likewise.
1432 (disassemble_section): Likewise.
1433 (dump_section_as_strings): Likewise.
1434 (dump_section_as_bytes): Likewise.
1435 (load_specific_debug_section): Likewise.
1436 (load_debug_section): Likewise.
1437 (display_debug_section): Likewise.
1438 (process_section_contents): Likewise.
1439 (process_attributes): Likewise.
1440 (process_nds32_specific): Likewise.
1441 (process_gnu_liblist): Likewise.
1442 (print_core_note): Likewise.
1443 (print_gnu_note): Likewise.
1444 (print_v850_note): Likewise.
1445 (process_netbsd_elf_note): Likewise.
1446 (print_stapsdt_note): Likewise.
1447 (print_ia64_vms_note): Likewise.
1448 (process_note): Likewise.
1449 (process_notes_at): Likewise.
1450 (process_corefile_note_segments): Likewise.
1451 (process_v850_notes): Likewise.
1452 (process_note_sections): Likewise.
1453 (process_notes): Likewise.
1454 (process_arch_specific): Likewise.
1455 (get_file_header): Likewise.
1456 (process_object): Likewise.
1457 (process_archive): Likewise.
1458 (process_file): Likewise.
1459 (section_subset): Make static.
1460 (get_mips_reg_size): Return a signed integer.
1461 (process_object): Reverse the logic of the return value.
1462 (process_archive): Likewise.
1463 (process_file): Likewise.
1464 (process_program_headers): Fix snafu - if the program headers are
1465 not available then this is not a cause to fail.
1466 (process_corefile_note_segments): Likewise.
1468 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1470 * readelf.c (get_ver_flags): Tidy the formatting of the string
1473 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1475 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
1477 <SHT_GNU_verneed>: Likewise.
1479 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1481 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
1482 the number of entries processed by the section size. Don't
1483 break out of the loop if `ent.vd_next' is 0.
1485 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 * testsuite/binutils-all/dw5.S: New file.
1488 * testsuite/binutils-all/dw5.W: New file.
1489 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
1491 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1493 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
1495 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1497 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
1500 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1502 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
1503 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
1504 and DW_OP_reinterpret.
1505 (read_and_display_attr_value): Support DW_AT_call_value,
1506 DW_AT_call_data_value, DW_AT_call_target and
1507 DW_AT_call_target_clobbered.
1509 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1511 * dwarf.c (fetch_indirect_line_string): New function.
1512 (abbrev_attr): New field implicit_const.
1513 (add_abbrev_attr): New parameter implicit_const.
1514 (process_abbrev_section): Support DW_FORM_implicit_const.
1515 (decode_location_expression): Support DW_OP_entry_value.
1516 (read_and_display_attr_value): Add parameter implicit_const. Support
1517 DW_FORM_line_strp and DW_FORM_implicit_const.
1518 (read_and_display_attr): Add parameter implicit_const.
1519 (process_debug_info): Support line_str and DWARF-5.
1520 (read_debug_line_header): Support DWARF-5.
1521 (display_formatted_table): New function.
1522 (display_debug_lines_raw): New parameter file. Support DWARF-5.
1523 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
1524 (display_debug_lines): Pass file parameter.
1525 (display_debug_macro): Update read_and_display_attr_value caller.
1526 (display_debug_abbrev): Support DW_FORM_implicit_const.
1527 (display_loclists_list): New function.
1528 (display_loc_list): Support .debug_loclists.
1529 (display_debug_ranges_list): New function from display_debug_ranges.
1530 (display_debug_rnglists_list): New function.
1531 (display_debug_ranges): Support .debug_rnglists.
1532 (debug_displays): Add .debug_line_str, .debug_loclists and
1534 * dwarf.h: Include dwarf2.h
1535 (DWARF2_Internal_LineInfo): Add li_offset_size.
1536 (DWARF2_Internal_CompUnit): Add cu_unit_type.
1537 (enum dwarf_section_display_enum): Add line_str.
1538 * readelf.c (process_section_headers): Add rnglists and loclists.
1540 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1542 * dwarf.c (display_block): Add parameter delimiter.
1543 (decode_location_expression): Update display_block callers.
1544 (read_and_display_attr_value): Add parameter delimiter.
1545 (read_and_display_attr, display_debug_macro): Update
1546 read_and_display_attr_value caller.
1548 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
1552 (display_loc_list_dwo): Use dwarf_vma for offset.
1553 (display_debug_loc): Use dwarf_vma for offset, base_address.
1554 (struct range_entry, range_entry_compar): Use dwarf_vma for
1556 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
1559 2017-02-23 Nick Clifton <nickc@redhat.com>
1561 * readelf.c (display_tag_value): Use an explicit signed type for
1563 (display_gnu_attributes): Use an unsigned integer type for
1565 (display_power_gnu_attribute): Likewise.
1566 (display_s390_gnu_attribute): Likewise.
1567 (display_sparc_hwcaps): Likewise.
1568 (display_sparc_hwcaps2): Likewise.
1569 (display_sparc_gnu_attribute): Likewise.
1570 (display_mips_gnu_attribute): Likewise.
1571 (display_tic6x_attribute): Likewise.
1572 (display_raw_attribute): Likewise.
1573 (process_attributes): Likewise.
1574 (process_arm_specific): Delete redundant function.
1575 (process_power_specific): Likewise.
1576 (process_s390_specific): Likewise.
1577 (process_sparc_specific): Likewise.
1578 (process_tic6x_specific): Likewise.
1579 (process_msp430x_specific): Likewise.
1580 (display_public_gnu_attributes): New function. Displays known
1581 information about an unknown gnu attribute.
1582 (display_generic_attribute): New function. Calls
1583 display_tag_value for non-nul tags.
1584 (process_arch_specific): Call process_attributes even for
1585 architectures not known to specifically support gnu attributes.
1587 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 * dwarf.c (decode_location_expression): Display also OP.
1591 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1593 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1594 new line between the heading and the first version definition
1597 2017-02-20 Nick Clifton <nickc@redhat.com>
1600 * dwarf.c (cu_tu_indexes_read): Move into...
1601 (load_cu_tu_indexes): ... here. Change the variable into
1602 tri-state. Change the function into boolean, returning
1603 false if the indicies could not be loaded.
1604 (find_cu_tu_set): Return NULL if the indicies could not be
1607 2017-02-17 Nick Clifton <nickc@redhat.com>
1610 * readelf.c (find_section_in_set): Test for invalid section
1613 2017-02-17 Nick Clifton <nickc@redhat.com>
1615 * readelf.c (get_section_type_name): Add decoding of GNU section
1618 2017-02-15 Nick Clifton <nickc@redhat.com>
1620 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1621 Maintainers section.
1623 2017-02-14 Nick Clifton <nickc@redhat.com>
1626 * readelf.c (dump_section_as_strings): Reset the start address if
1627 no decompression is perfromed.
1628 (dump_section_as_bytes): Likewise.
1630 2017-02-14 Nick Clifton <nickc@redhat.com>
1633 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1636 2017-02-14 Nick Clifton <nickc@redhat.com>
1639 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1641 (parse_number): Exit early if passed an empty string.
1643 2017-02-14 Nick Clifton <nickc@redhat.com>
1646 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1647 being within a given range.
1648 (target_specific_reloc_handling): Use macro to test for underflow
1649 as well as overflow of reloc offset.
1651 2017-02-13 Nick Clifton <nickc@redhat.com>
1654 * nm.c (file_symbol): Add test of string length before testing
1657 2017-02-13 Nick Clifton <nickc@redhat.com>
1660 * readelf.c (dump_section_as_bytes): Handle the case where
1661 uncompress_section_contents returns false.
1662 (dump_section_as_bytes, load_specific_debug_section): Likewise.
1664 2017-02-13 Nick Clifton <nickc@redhat.com>
1667 * readelf.c (get_compression_header): Add size parameter. Check
1668 size against sizeof compression header before attempting to
1670 (process_section_headers): Pass size to get_compression_header.
1671 (dump_section_as_strings): Likewise.
1672 (dump_section_as_bytes): Likewise.
1673 (load_specific_debug_section): Likewise.
1675 2017-02-13 Nick Clifton <nickc@redhat.com>
1678 * readelf.c (process_version_sections): Include size of auxillary
1679 version information when checking for buffer overflow.
1681 2017-02-13 Nick Clifton <nickc@redhat.com>
1684 * readelf.c (process_section_contents): Fix off by one error
1685 reporting un-dumped sections.
1687 2017-02-13 Nick Clifton <nickc@redhat.com>
1690 * readelf.c (target_specific_reloc_handling): Add num_syms
1691 parameter. Check for symbol table overflow before accessing
1692 symbol value. If reloc pointer is NULL, discard all saved state.
1693 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1694 Call target_specific_reloc_handling with a NULL reloc pointer
1695 after processing all of the relocs.
1697 2017-02-13 Nick Clifton <nickc@redhat.com>
1700 * readelf.c (target_specific_reloc_handling): Add end parameter.
1701 Check for buffer overflow before writing relocated values.
1702 (apply_relocations): Pass end to target_specific_reloc_handling.
1704 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1705 Nick Clifton <nickc@redhat.com>
1708 * doc/binutils.texi (ar): Extend documentation of the --plugin
1709 option. Include a description of where the plugins should be
1713 2017-01-23 Nick Clifton <nickc@redhat.com>
1715 * MAINTAINERS: Add Bernd to Past Maintainers section.
1716 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
1719 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1721 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1723 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1725 * objdump.c (dump_section_header): Extract max section name length
1726 from data parameter, use this when formatting output.
1727 (find_longest_section_name): New function.
1728 (dump_headers): Calculate longest section name when in wide mode,
1729 reformat to unify printing of header line.
1731 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1734 * arlex.l: Support processing with flex 2.6.3.
1735 * deflex.l: Likewise.
1737 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1739 * resbin.c: Optional dialog control data immediately follows
1740 the control description without alignment.
1741 * testsuite/binutils-all/windres/controldata.rc: New test.
1743 * testsuite/binutils-all/windres/controldata.rsd: New test.
1745 2017-01-12 Nick Clifton <nickc@redhat.com>
1748 * NEWS: Mention the new feature.
1749 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1750 New proc to test the location of separate debug info files using
1751 the build-id method.
1753 2017-01-10 Nick Clifton <nickc@redhat.com>
1756 * stabs.c (parse_stab_members): Fix thinko checking for g++
1757 version 1 stabs information.
1759 2017-01-09 Nick Clifton <nickc@redhat.com>
1761 * objdump.c (display_file): Add new parameter 'last_file'. If
1762 last_file is true, do not call bfd_close at the end of the
1764 (main): Set the value of the last_file parameter when calling
1767 2017-01-09 Alan Modra <amodra@gmail.com>
1769 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1772 2017-01-06 Nick Clifton <nickc@redhat.com>
1774 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1776 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1779 * syslex.l (option): Add noyywrap
1782 2017-01-02 Alan Modra <amodra@gmail.com>
1784 Update year range in copyright notice of all files.
1786 For older changes see ChangeLog-2016
1788 Copyright (C) 2017 Free Software Foundation, Inc.
1790 Copying and distribution of this file, with or without modification,
1791 are permitted in any medium without royalty provided the copyright
1792 notice and this notice are preserved.
1798 version-control: never