1 2017-11-21 Nick Clifton <nickc@redhat.com>
3 * dwarf.c (dwo_name, dwo_dir, dwo_id, dwo_id_len): New variables.
4 (read_and_display_attr_value): Record dwo variables if requested.
5 (display_augmentation_data): Rename to display_data and make
7 (load_dwo_file): New function. Loads a separate dwarf object
9 (load_separate_debug_file): Add reporting and loading of separate
11 * readelf.c (process_section_headers): Add do_debug_links to list
12 of flags requiring a debug dump.
13 (display_debug_section): Tidy up code.
14 * doc/debug.options.texi: Add note that dwo links will also be
16 * testsuite/binutils-all/debuglink.s: Tidy code.
17 * testsuite/binutils-all/dwo.s: New test file.
18 * testsuite/binutils-all/readelf.wk2: New file - expected output
20 * testsuite/binutils-all/readelf.exp: Run the new test.
22 2017-11-18 Alan Modra <amodra@gmail.com>
25 * nm.c (sort_symbols_by_size): Don't attempt to access
26 section symbol internal_elf_sym.
27 (print_symbol): Likewise. Don't call bfd_get_symbol_version_string
29 * objdump.c (compare_symbols): Don't attempt to access
30 section symbol internal_elf_sym.
31 (objdump_print_symname): Don't call bfd_get_symbol_version_string
34 2017-11-17 Jim Wilson <jimw@sifive.com>
36 * readelf.c (elf/riscv.h): Alphabetize include.
37 (is_32bit_inplace_add_reloc, is_32bit_inplace_sub_reloc)
38 (is_64bit_inplace_add_reloc, is_64bit_inplace_sub_reloc)
39 (is_16bit_inplace_add_reloc, is_16bit_inplace_sub_reloc)
40 (is_8bit_inplace_add_reloc, is_8bit_inplace_sub_reloc): New.
41 (apply_relocations): New locals reloc_inplace and reloc_subtract.
42 Call the new functions and set the new locals. Call byte_get if
43 reloc_inplace. Subtract sym->st_value if reloc_subtract.
45 2017-11-17 Nick Clifton <nickc@redhat.com>
48 * ar.c (write_archive): Free the temporary file name.
50 2017-11-17 Nick Clifton <nickc@redhat.com>
52 * readelf.c (process_archive): Include member name in the
53 file_name of the filedata structure.
55 2017-11-15 Alan Modra <amodra@gmail.com>
58 * objcopy.c (copy_main): Free tmpname.
60 2017-11-15 Nick Clifton <nickc@redhat.com>
63 * dwarf.h (enum dwarf_section_display_enum): Add gnu_debuglink,
64 gnu_debugaltlink and separate_debug_str.
65 (struct dwarf_section): Add filename field.
66 Add prototypes for load_separate_debug_file, close_debug_file and
68 * dwarf.c (do_debug_links): New.
69 (do_follow_links): New.
70 (separate_debug_file, separate_debug_filename): New.
71 (fetch_alt_indirect_string): New function. Retrieves a string
72 from the debug string table in the separate debug info file.
73 (read_and_display_attr_value): Use it with DW_FORM_GNU_strp_alt.
74 (load_debug_section_with_follow): New function. Like
75 load_debug_section, but if the first attempt fails, then tries
76 again in the separate debug info file.
77 (introduce): New function.
78 (process_debug_info): Use load_debug_section_with_follow and
80 (load_debug_info): Likewise.
81 (display_debug_lines_raw): Likewise.
82 (display_debug_lines_decoded): Likewise.
83 (display_debug_macinfo): Likewise.
84 (display_debug_macro): Likewise.
85 (display_debug_abbrev): Likewise.
86 (display_debug_loc): Likewise.
87 (display_debug_str): Likewise.
88 (display_debug_aranges): Likewise.
89 (display_debug_addr); Likewise.
90 (display_debug_frames): Likewise.
91 (display_gdb_index): Likewise.
92 (process_cu_tu_index): Likewise.
93 (load_cu_tu_indexes): Likewise.
94 (display_debug_links): New function. Displays the contents of a
95 .gnu_debuglink or .gnu_debugaltlink section.
96 (calc_gnu_debuglink_ctc32):New function. Calculates a CRC32
98 (check_gnu_debuglink): New function. Checks the CRC of a
99 potential separate debug info file.
100 (parse_gnu_debuglink): New function. Reads a CRC value out of a
101 .gnu_debuglink section.
102 (check_gnu_debugaltlink): New function.
103 (parse_gnu_debugaltlink): New function. Reads the build-id value
104 out of a .gnu_debugaltlink section.
105 (load_separate_debug_info): New function. Finds and loads a
106 separate debug info file.
107 (load_separate_debug_file): New function. Attempts to find and
108 follow a link to a separate debug info file.
109 (free_debug_memory): Free the separate debug info file
111 (opts_table): Add "follow-links" and "links".
112 (dwarf_select_sections_by_letters): Add "k" and "K".
113 (debug_displays): Reformat. Add .gnu-debuglink and
115 Add an extra entry for .debug_str in a separate debug info file.
116 * doc/binutils.texi: Move description of debug dump features
117 common to both readelf and objdump into...
118 * objdump.c (usage): Add -Wk and -WK.
119 (load_specific_debug_section): Initialise the filename field in
120 the dwarf_section structure.
121 (close_debug_file): New function.
122 (open_debug_file): New function.
123 (dump_dwarf): Load and dump the separate debug info sections.
124 * readelf.c (struct filedata): New structure. Contains various
125 variables that used to be global:
126 (current_file_size, string_table, string_table_length, elf_header)
127 (section_headers, program_headers, dump_sects, num_dump_sects):
128 Move into filedata structure.
129 (cmdline): New global variable. Contains list of sections to dump
130 by number, as specified on the command line.
131 Add filedata parameter to most functions.
132 (load_debug_section): Load the string table if it has not already
134 (close_file): New function.
135 (close_debug_file): New function.
136 (open_file): New function.
137 (open_debug_file): New function.
138 (process_object): Process sections in any separate debug info files.
139 * doc/debug.options.texi: New file. Add description of =links and
140 =follow-links options.
141 * NEWS: Mention the new feature.
142 * elfcomm.c: Have the byte get functions take a const pointer.
143 * elfcomm.h: Update prototypes.
144 * testsuite/binutils-all/dw5.W: Update expected output.
145 * testsuite/binutils-all/objdump.WL: Update expected output.
146 * testsuite/binutils-all/objdump.exp: Add test of -WK and -Wk.
147 * testsuite/binutils-all/readelf.exp: Add test of -wK and -wk.
148 * testsuite/binutils-all/readelf.k: New file.
149 * testsuite/binutils-all/objdump.Wk: New file.
150 * testsuite/binutils-all/objdump.WK2: New file.
151 * testsuite/binutils-all/linkdebug.s: New file.
152 * testsuite/binutils-all/debuglink.s: New file.
154 2017-11-10 Jim Wilson <jimw@sifive.com>
156 * testsuite/binutils-all/objdump.exp: Expect the debug_ranges test to
159 2017-11-07 Jim Wilson <jimw@sifive.com>
161 * MAINTAINERS (RISC-V): Fix typo in my email address.
163 2017-11-07 Palmer Dabbelt <palmer@sifive.com>
165 * MAINTAINERS (RISC-V): Add Jim Wilson as a maintainer.
166 Clean up Andrew's entry (remove trailing space, add tabs).
167 Change Palmer's email address, and clean up entry (add tabs).
169 2017-11-07 Alan Modra <amodra@gmail.com>
171 * dwarf.c (read_uleb128): Properly pluralize messages.
172 (display_debug_lines_raw, display_debug_loc): Likewise.
173 (display_debug_names, process_cu_tu_index): Likewise.
174 * od-macho.c (dump_code_signature_superblob): Likewise.
175 * readelf.c (process_program_headers): Likewise.
176 (process_section_header, process_relocs): Likewise.
177 (hppa_process_unwind, arm_process_unwind): Likewise.
178 (process_dynamic_section, process_version_sections): Likewise.
179 (process_symbol_table, process_syminfo): Likewise.
180 (apply_relocations, process_mips_specific): Likewise.
181 (process_gnu_liblist, process_notes_at): Likewise.
182 (process_archive): Likewise.
183 * testsuite/binutils-all/dw2-1.W,
184 * testsuite/binutils-all/dw2-3.W,
185 * testsuite/binutils-all/dw2-3gabi.W,
186 * testsuite/binutils-all/dw5.S,
187 * testsuite/binutils-all/dw5.W,
188 * testsuite/binutils-all/i386/compressed-1a.d,
189 * testsuite/binutils-all/libdw2-compressedgabi.out,
190 * testsuite/binutils-all/objdump.W,
191 * testsuite/binutils-all/readelf.r,
192 * testsuite/binutils-all/readelf.r-64,
193 * testsuite/binutils-all/x86-64/compressed-1a.d: Update
194 for pluralization fixes.
196 2017-11-07 Alan Modra <amodra@gmail.com>
198 * sysdep.h (textdomain, bindtextdomain): Use safer "do nothing".
199 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
201 2017-11-03 Claudiu Zissulescu <claziss@synopsys.com>
203 * doc/binutils.texi (ARC): Update disassembler options.
204 * testsuite/binutils-all/arc/hexprint.s: New file.
205 * testsuite/binutils-all/arc/objdump.exp: Test hex printing
208 2017-11-03 Mingi Cho <mgcho.minic@gmail.com>
209 Nick Clifton <nickc@redhat.com>
212 * dwarf.c (read_cie): Use bfd_size_type for
213 augmentation_data_len.
214 (display_augmentation_data): New function.
215 (display_debug_frames): Use it.
216 Check for integer overflow when testing augmentation_data_len.
218 2017-11-02 Mingi Cho <mgcho.minic@gmail.com>
221 * readelf.c (print_gnu_property_note): Improve overflow checks so
222 that they will work on a 32-bit host.
224 2017-11-01 James Bowman <james.bowman@ftdichip.com>
226 * readelf.c (is_16bit_abs_reloc): Add entry for FT32.
228 2017-10-31 Nick Clifton <nickc@redhat.com>
230 * readelf.c (process_relocs): Tell users if no static relocs were
231 found, but if they had added --use-dynamic to the command line
232 then relocs would have been displayed.
234 2017-10-28 Alan Modra <amodra@gmail.com>
237 * readelf.c (process_archive_index_and_symbols): Ensure ar_size
238 field is zero terminated for strtoul.
239 (setup_archive, get_archive_member_name): Likewise.
241 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
243 * dwarf.c (struct Frame_Chunk) <cfa_reg>: Change type to
245 (display_debug_frames): Read CFA reg as an unsigned number.
247 2017-10-25 Alan Modra <amodra@gmail.com>
249 * nm.c (filter_symbols): Match "__gnu_lto_slim" optionally prefixed
252 2017-10-18 Eric Botcazou <ebotcazou@adacore.com>
254 * MAINTAINERS: Add myself as Visium maintainer.
256 2017-10-18 Nick Clifton <nickc@redhat.com>
258 * README-how-to-make-a-release: A note about checking file and
259 directory permissions.
261 * MAINTAINERS: Move Svein Seldal to Past Maintainers section.
263 2017-10-18 Alan Modra <amodra@gmail.com>
266 * readelf.c (print_core_note): Ensure "count" sanity check
267 calculation doesn't overflow.
268 (process_notes_at): Perform note namesz and descsz checks
269 using unsigned comparisons against data remaining. Catch
270 alignment overflow of namesz and descsz too. Don't allocate a
271 temp for terminating "name" when there is space available
274 2017-10-17 Tom Tromey <tom@tromey.com>
276 * MAINTAINERS: Add myself as dwarf-mode.el maintainer.
278 2017-10-11 Peeter Joot <peeter.joot@lzlabs.com>
279 Nick Clifton <nickc@redhat.com>
281 * dwarf.c (read_and_display_attr_value): Handle DW_AT_endianity,
282 DW_END_default, DW_END_big, DW_END_little, DW_ATE_UCS,
283 DW_ATE_ASCII, DW_CC_pass_by_reference, DW_CC_pass_by_value,
284 DW_CC_GNU_renesas_sh, DW_CC_GNU_borland_fastcall_i386,
285 DW_AT_decimal_sign, DW_AT_defaulted, DW_AT_discr_list.
286 (get_TAG_name): Report user generated tag values.
287 * testsuite/binutils-all/dwarf-attributes.S: New test.
288 * testsuite/binutils-all/dwarf-attributes.W. Expected output from
290 * testsuite/binutils-all/readelf.exp: Run the new test.
292 2017-10-10 Tom Tromey <tom@tromey.com>
294 * dwarf-mode.el: Bump to version 1.4.
296 2017-10-10 Tom Tromey <tom@tromey.com>
298 * dwarf-mode.el (dwarf--process, dwarf--deletion-region): New
300 (dwarf--check-running, dwarf--sentinel, dwarf--invoke)
301 (dwarf--filter): New functions.
302 (dwarf-do-insert-substructure, dwarf-do-refresh): Call
303 dwarf--check-running, dwarf--invoke.
304 (dwarf-browse): Initialize new variables.
306 2017-10-10 Tom Tromey <tom@tromey.com>
308 * dwarf-mode.el: Set lexical-binding.
310 2017-10-10 Tom Tromey <tom@tromey.com>
312 * dwarf-mode.el (dwarf-mode-map): New defvar.
314 2017-10-10 Tom Tromey <tromey@sourceware.org>
317 * dwarf.c (process_debug_info): Skip any comp unit that ends
318 before dwarf_start_die.
320 2017-10-06 Alan Modra <amodra@gmail.com>
322 * dwarf.c (process_debug_info): Consolidate header length checks.
323 (display_debug_pubnames_worker): Use "start" to read header.
324 Properly check header length and report errors earlier.
325 Simplify loop printing pubnames.
326 (get_line_filename_and_dirname): Catch small negative "length"
328 (display_debug_aranges): Likewise. Report header errors
329 earlier using standardized message.
330 (display_debug_names): Likewise.
332 2017-10-05 Joseph Myers <joseph@codesourcery.com>
334 * readelf.c (decode_arm_unwind): Initialize res to TRUE.
336 2017-10-05 Nick Clifton <nickc@redhat.com>
339 * objcopy.c (strip_main): Add 'M' character to short options list
340 when calling getopt_long.
342 2017-10-05 Nick Clifton <nickc@redhat.com>
345 * readelf.c (dump_relocations): Do not truncate reloc names when
346 displaying output in wide mode.
348 2017-10-05 Nick Clifton <nickc@redhat.com>
350 * README-how-to-make-a-release: Merge steps 3, 4 and 5, and insert
351 the git tag operation at the correct location.
353 2017-10-05 Alan Modra <amodra@gmail.com>
356 * dwarf.c (read_cie): Don't compare "start" and "end" pointers
357 after adding a possibly wild length to "start", compare the length
358 to the difference of the pointers instead. Remove now redundant
359 "negative" length test.
361 2017-10-05 Tristan Gingold <tgingold@free.fr>
363 * MAINTAINERS: Update email address. Redirect release maintainer
364 to global maitainers.
366 2017-10-01 Alan Modra <amodra@gmail.com>
370 * objdump.c (load_specific_debug_section): Introduce a temp to
371 stop bfd_get_full_section_contents NULLing out section->start.
373 2017-10-01 Alan Modra <amodra@gmail.com>
376 * objdump.c (load_specific_debug_section): Allocate an extra byte
377 for a terminating NUL.
379 2017-09-30 Alan Modra <amodra@gmail.com>
382 * objdump.c: Formatting.
383 (show_line): Reset prev_line when function name changes.
385 2017-09-27 Nick Clifton <nickc@redhat.com>
388 * dwarf.c (process_debug_info): Add a check for a negative
391 2017-09-27 Alan Modra <amodra@gmail.com>
394 * readelf.c (process_symbol_table): Check that DT_HASH symbol
395 chains are only visited once, and report an error if not. Display
396 invalid symbol index if chain is out of range. Use the same logic
397 when calculating histograms rather than the PR 17531 fix. Delete
398 bogus check that chained index is less than number of buckets.
400 2017-09-26 Nick Clifton <nickc@redhat.com>
403 * dwarf.c (get_line_filename_and_dirname): Add extra checks for
406 2017-09-26 Nick Clifton <nickc@redhat.com>
408 * README-how-to-make-a-release: New file.
410 2017-09-26 Alan Modra <amodra@gmail.com>
413 * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string.
414 (READ_SLEB): Likewise.
415 * readelf.c (bfd_vmatoa): New function.
416 (get_data, get_dynamic_data): Use it for printing error messages.
418 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
421 * nm.c (display_rel_file): Free memory returned from
422 bfd_get_synthetic_symtab.
424 2017-09-22 Alexandre Oliva <aoliva@redhat.com>
426 * dwarf.h (debug_info): Add loc_views and num_loc_views.
427 * dwarf.c (vm1): New constant.
428 (print_dwarf_view): New function.
429 (read_and_display_attr_value): Support DW_AT_GNU_locviews.
430 (process_debug_info): Keep num_loc_offsets and num_loc_views
432 (display_view_pair_list): New function.
433 (display_loc_list_dwo): Take vstart_ptr; update it. Dump
434 location view pairs before the range they apply to, when a
435 viewlist augments the loc list.
436 (display_loc_list): Likewise. Check view numbers in range
438 (display_loclists_list): Likewise. Handle view pair entries,
439 and warn on trailing ones.
440 (loc_views): New variable.
441 (loc_offsets_compar): Compare loc_views if loc_offsets are the
443 (display_debug_loc): Check and sort loc_views too. Accept
444 loc_view as expected_start. Skip if lists and views are the
445 same. Dump locview list separately in order, and pass the
446 locview list base to each list dump function. Warn and skip
447 overlap and hole checking if we find loclists and locviews to
449 * testsuite/binutils-all/locview-1.s: New.
450 * testsuite/binutils-all/readelf.locview-1: New.
451 * testsuite/binutils-all/locview-2.s: New.
452 * testsuite/binutils-all/readelf.locview-2: New.
453 * testsuite/binutils-all/readelf.exp: Run new tests. Fix
454 option spelling in pr18374 fail message. XFAIL dw5 test on
457 2017-09-22 Alan Modra <amodra@gmail.com>
459 * testsuite/binutils-all/readelf.exp: Don't perror and exit on
460 bintest.s assembly failure. Report tests unresolved instead.
461 Likewise for version note test, pr18374, decompress, and dw5
463 (readelf_test): Set testname to include both option and binary
464 file name. Use for pass/fail.
466 2017-09-21 Maciej W. Rozycki <macro@imgtec.com>
468 * readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
470 2017-09-05 Nick Clifton <nickc@redhat.com>
473 * readelf.c (process_mips_specific): Add checks for a NULL data
476 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
477 Edmar Wienskoski <edmar.wienskoski@nxp.com
479 * readelf.c (get_elf_section_flags): Add VLE.
480 (process_section_headers): Add VLE key to details.
482 2017-08-25 Alan Modra <amodra@gmail.com>
485 * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
486 vd_aux and vda_next for sanity. Delete "end". Correct overflow
488 (process_version_sections <SHT_GNU_verneed>): Correct overflow
489 check. Don't report invalid vna_next on overflow. Do report
490 invalid vna_next on size less than aux info.
492 2017-08-23 Alan Modra <amodra@gmail.com>
495 * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
496 for invalid vn_next field before adding to idx. Use unsigned
497 long for index vars. Move index checks.
498 <SHT_GNU_verdef>: Likewise for vd_next.
500 2017-08-17 Nick Clifton <nickc@redhat.com>
502 * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
503 and decoding of version2 GNU build attribute notes.
504 * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
506 * testsuite/binutils-all/note-3-64.d: New test driver.
507 * testsuite/binutils-all/note-3-32.d: New test driver.
508 * testsuite/binutils-all/objcopy.exp: Run the new test.
509 * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
511 2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
513 * readelf.c (get_note_type): Handle PPC note types available
516 2017-08-12 Alan Modra <amodra@gmail.com>
518 * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
521 2017-08-08 Nick Clifton <nickc@redhat.com>
524 * prdbg.c (pr_int_type): Increase size of local string buffer.
525 (pr_float_type): Likewise.
526 (pr_bool_type): Likewise.
528 2017-08-02 Nick Clifton <nickc@redhat.com>
531 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
534 2017-08-02 Nick Clifton <nickc@redhat.com>
536 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
538 2017-08-02 Alan Modra <amodra@gmail.com>
540 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
542 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
543 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
545 2017-08-01 Nick Clifton <nickc@redhat.com>
547 * po/sv.po: Updated Swedish translation.
549 2017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
552 * winduni.c (codepages): Use cp1252 for codepage 0.
554 2017-07-25 Nick Clifton <nickc@redhat.com>
557 * readelf.c (dump_section_as_strings): Do not fail if the section
559 (dump_section_as_bytes): Likewise.
561 2017-07-24 Nick Clifton <nickc@redhat.com>
564 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
565 string whilst concatenating symbol names.
567 2017-07-21 Nick Clifton <nickc@redhat.com>
569 * po/fr.po: Updated French translation.
571 2017-07-21 Simon Marchi <simon.marchi@ericsson.com>
573 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
575 (load_debug_info): Remove assignments to those two variables.
577 2017-07-21 Alexandre Oliva <aoliva@redhat.com>
579 * dwarf.c (struct State_Machine_Registers): Add view field.
580 (reset_state_machine): Reset view.
581 (process_extended_line_op): Reset view when appropriate.
582 (display_debug_lines_raw): Increment or reset view when appropriate.
583 Print nonzero views. Support print view resets, disabled by default.
584 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
585 enabling printing of end_sequence.
586 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
587 * testsuite/binutils-all/dw2-3.W: Likewise.
588 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
589 * testsuite/binutils-all/dw5.W: Add end sequence lines.
590 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
591 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
592 * testsuite/binutils-all/objdump.W: Likewise.
593 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
594 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
596 2017-07-19 Tristan Gingold <gingold@adacore.com>
598 * nm.c (show_stats): Remove variable.
599 (long_options): Remove --stats option.
600 (main): Remove handling of --stats.
602 2017-07-18 Nick Clifton <nickc@redhat.com>
605 * coffgrok.c: Fix spelling typos.
606 * readelf.c: Likewise.
608 * testsuite/binutils-all/objcopy.exp: Likewise.
610 2017-07-18 Nick Clifton <nickc@redhat.com>
612 * po/sv.po: Updated Swedish translation.
614 2017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
616 * dwarf.c (display_debug_names): Initialize hash_prev.
618 2017-07-17 Nick Clifton <nickc@redhat.com>
621 * ar.c (main): Skip check for no files on the command line when
624 2017-07-13 H.J. Lu <hongjiu.lu@intel.com>
626 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
629 2017-07-12 Alan Modra <amodra@gmail.com>
631 * po/bg.po: Update from translationproject.org/latest/binutils/.
632 * po/ca.po: Likewise.
633 * po/da.po: Likewise.
634 * po/es.po: Likewise.
635 * po/fi.po: Likewise.
636 * po/fr.po: Likewise.
637 * po/hr.po: Likewise.
638 * po/id.po: Likewise.
639 * po/it.po: Likewise.
640 * po/ja.po: Likewise.
641 * po/ro.po: Likewise.
642 * po/ru.po: Likewise.
643 * po/sk.po: Likewise.
644 * po/sr.po: Likewise.
645 * po/sv.po: Likewise.
646 * po/tr.po: Likewise.
647 * po/uk.po: Likewise.
648 * po/vi.po: Likewise.
649 * po/zh_CN.po: Likewise.
650 * po/zh_TW.po: Likewise.
652 2017-07-12 Nick Clifton <nickc@redhat.com>
654 Fix compile time warnings using gcc 7.1.1.
655 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
657 * srconv.c (walk_tree_type): Initialise the spare field of the
660 2017-07-11 Andreas Schwab <schwab@suse.de>
662 * readelf.c (process_note): Print newline after description data
664 (print_core_note): Print newline if nothing was printed in wide
667 2017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
669 * dwarf.c (display_formatted_table): Fix error message typo.
671 2017-07-07 John Baldwin <jhb@FreeBSD.org>
673 * readelf.c (get_freebsd_elfcore_note_type): Handle
674 NT_FREEBSD_PTLWPINFO.
676 2017-07-05 H.J. Lu <hongjiu.lu@intel.com>
678 * dwarf.c (display_debug_names): Replace index with xindex.
680 2017-07-04 Tristan Gingold <gingold@adacore.com>
682 * configure: Regenerate.
684 2017-07-04 Tristan Gingold <gingold@adacore.com>
686 * NEWS: Add marker for 2.29.
688 2017-07-03 Tristan Gingold <gingold@adacore.com>
690 * po/binutils.pot: Regenerate.
692 2017-07-03 Alan Modra <amodra@gmail.com>
694 * strings.c (filename_and_size_t): Delete.
695 (strings_a_section): Don't check section size against file size.
696 Use bdf_malloc_and_get_section. Report an error on failures.
697 Replace arg param with filename and got_a_section param.
698 (got_a_section): Move to..
699 (strings_object_file): ..an auto var here. Iterate over sections
700 rather than calling bfd_map_over_sections. Adjust strings_a_section
703 2017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
705 * dwarf.c: Include assert.h.
706 (MAX, MIN, get_IDX_name, display_debug_names): New.
707 (debug_displays): Add .debug_names.
708 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
709 * readelf.c (process_section_headers): Add ".debug_names".
711 2017-07-01 Alan Modra <amodra@gmail.com>
714 * objdump.c (strtab): Make var a bfd_byte*.
715 (disassemble_section): Don't limit malloc size. Instead, use
716 bfd_malloc_and_get_section.
717 (read_section_stabs): Use bfd_malloc_and_get_section. Return
719 (find_stabs_section): Remove now unnecessary cast.
720 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
721 contents on error return.
722 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
724 2017-06-30 Nick Clifton <nickc@redhat.com>
727 * objdump.c (disassemble_section): Move check for an overlarge
728 section to just before the allocation of memory. Do not check
729 section size against file size, but instead use an arbitrary 2Gb
730 limit. Issue a warning message if the section is too big.
732 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
734 * NEWS: Mention microMIPS XPA support.
736 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
738 * NEWS: Mention microMIPS Release 5 ISA support.
740 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
742 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
743 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
744 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
745 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
746 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
747 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
749 2017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
751 * testsuite/binutils-all/arc/double_store.s: New file.
752 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
754 (do_objfile): New function.
755 (check_assembly): Likewise.
757 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
759 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
761 2017-06-28 H.J. Lu <hongjiu.lu@intel.com>
763 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
764 comparing against bfd_get_file_size return.
766 2017-06-28 Nick Clifton <nickc@redhat.com>
768 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
769 * readelf.c (print_gnu_build_attribute_name): Likewise.
771 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
772 Matthew Fortune <matthew.fortune@imgtec.com>
774 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
775 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
776 * NEWS: Mention Imagination interAptiv MR2 processor support.
778 2017-06-26 Nick Clifton <nickc@redhat.com>
781 * objdump.c (disassemble_section): Skip any section that is bigger
782 than the entire file.
784 2017-06-26 Nick Clifton <nickc@redhat.com>
787 * bucomm.c (get_file_size): Explicitly warn if the file is a
790 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
792 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
794 2017-06-23 Nick Clifton <nickc@redhat.com>
797 * strings.c (strings_file): Warn about attempts to run strings on
800 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
802 * readelf.c (decode_x86_feature): Decode
803 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
804 * testsuite/binutils-all/i386/shstk.d: New file.
805 * testsuite/binutils-all/i386/shstk.s: Likewise.
806 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
807 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
808 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
810 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
812 * readelf.c (decode_x86_feature): New.
813 (print_gnu_property_note): Call decode_x86_feature on
814 GNU_PROPERTY_X86_FEATURE_1_AND.
815 * testsuite/binutils-all/i386/empty.d: New file.
816 * testsuite/binutils-all/i386/empty.s: Likewise.
817 * testsuite/binutils-all/i386/ibt.d: Likewise.
818 * testsuite/binutils-all/i386/ibt.s: Likewise.
819 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
820 * testsuite/binutils-all/x86-64/empty.d: Likewise.
821 * testsuite/binutils-all/x86-64/empty.s: Likewise.
822 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
823 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
824 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
826 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
828 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
829 (READ_SLEB): Likewise.
831 2017-06-21 Nick Clifton <nickc@redhat.com>
834 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
835 reading a value that is too big for the containing variable.
836 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
837 Replace uses of LEB and SLEB with appropriate new macro.
838 (display_debug_frames): Use an unsigned int for the 'reg'
839 variable. Use a signed long for the 'l' variable.
841 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
843 * readelf.c (get_s390_segment_type): Add support for the new
844 segment type PT_S390_PGSTE.
845 (get_segment_type): Call get_s390_segment_type.
847 2017-06-19 Nick Clifton <nickc@redhat.com>
850 * objdump.c (disassemble_bytes): Check that there is sufficient
851 data available before attempting to display it.
853 2017-06-06 Simon Marchi <simon.marchi@ericsson.com>
855 * sysinfo.y: Free memory allocated by token NAME.
857 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
859 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
861 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
864 * objdump.c (dump_relocs_in_section): Replace get_file_size
865 with bfd_get_file_size to get archive element size.
866 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
868 (test_objdump_h): Likewise.
869 (test_objdump_t): Likewise.
870 (test_objdump_r): Likewise.
871 (test_objdump_s): Likewise.
872 Add objdump tests on archive.
874 2017-05-24 Yao Qi <yao.qi@linaro.org>
876 * objdump.c (disassemble_data): Caller update.
878 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
880 * objcopy.c (merge_gnu_build_notes): Remove workaround that
881 prevented deleting relocations in duplicated notes in mips64 and
884 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
886 * testsuite/binutils-all/mips/mips-note-2.d: New test.
887 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
888 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
889 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
890 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
891 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
892 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
895 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
897 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
900 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
902 * NEWS: Mention the SPARC M8 support.
904 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
906 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
909 2017-05-18 Alan Modra <amodra@gmail.com>
911 * strings.c: Don't compare boolean values against TRUE or FALSE.
913 2017-05-15 Jeff Law <law@redhat.com>
915 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
917 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
919 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
921 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
922 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
923 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
925 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
927 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
929 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
930 * NEWS: Mention MIPS16e2 ASE support.
932 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
934 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
935 and SDBBP disassembly.
937 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
939 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
940 `copyfile' variables.
942 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
944 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
945 (get_arc_section_type_name): New function.
946 (get_section_type_name): Use the above function.
947 (display_arc_attribute): New function.
948 (process_arc_specific): Likewise.
949 (process_arch_specific): Handle ARC specific information.
951 2017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
953 * MAINTAINERS (SH): Remove myself as SH maintainer.
955 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
957 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
958 long when comparing with sec->reloc_count.
960 2017-05-02 Nick Clifton <nickc@redhat.com>
962 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
963 more internal relocs than external relocs.
965 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
967 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
968 disassembly of PC-relative LA and LW synthetic instructions.
970 2017-05-02 Nick Clifton <nickc@redhat.com>
973 * objdump.c (dump_relocs_in_section): Check for an excessive
974 number of relocs before attempting to dump them.
976 2017-05-01 Alan Modra <amodra@gmail.com>
978 * objcopy.c (merge_gnu_build_notes): Correct code deleting
981 2017-04-28 Nick Clifton <nickc@redhat.com>
984 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
987 2017-04-28 Nick Clifton <nickc@redhat.com>
990 * readelf.c (process_version_sections): Check for underflow when
991 computing the start address of the auxillary version data.
993 2017-04-28 Nick Clifton <nickc@redhat.com>
996 * dwarf.c (process_extended_line_op): Do not assume that the
997 string extracted from the section is NUL terminated.
998 (fetch_indirect_string): If the string retrieved from the section
999 is not NUL terminated, return an error message.
1000 (fetch_indirect_line_string): Likewise.
1001 (fetch_indexed_string): Likewise.
1003 2017-04-26 Nick Clifton <nickc@redhat.com>
1006 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
1007 * ar.c (main): Fail with usage() invocation if no file names are
1010 2017-04-26 Nick Clifton <nickc@redhat.com>
1012 * readelf.c (process_section_headers): Warn about overlarge
1014 (print_gnu_build_attribute_name): Print the number of unrecognised
1015 note types. Fix formatting in the presence of errors.
1016 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
1017 (testsuite/binutils-all/note-2-64.s): Likewise.
1019 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1021 * readelf.c (process_mips_specific): Add static GOT support.
1023 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1025 * readelf.c (process_mips_specific): Remove error reporting from
1028 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1030 * readelf.c (process_mips_specific): Remove null GOT data check.
1032 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1034 * testsuite/binutils-all/mips/mips16-alias.d: New test.
1035 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
1036 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
1037 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
1039 2017-04-23 Alan Modra <amodra@gmail.com>
1042 * ar.c (main): Check -a, -b, -i and -N args are given.
1044 2017-04-23 Alan Modra <amodra@gmail.com>
1047 * ar.c (main): Check that an archive file is given after options.
1049 2017-04-23 Alan Modra <amodra@gmail.com>
1052 * objdump.c (disassemble_section): Check bfd_get_section_contents
1055 2017-04-23 Alan Modra <amodra@gmail.com>
1058 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
1061 2017-04-21 Nick Clifton <nickc@redhat.com>
1064 * readelf.c (print_gnu_build_attribute_name): Check for an
1065 overlarge name field.
1067 2017-04-13 Nick Clifton <nickc@redhat.com>
1070 * readelf.c (process_dynamic_section): Detect over large section
1071 offsets in the DT_SYMTAB entry.
1073 2017-04-13 Nick Clifton <nickc@redhat.com>
1076 * readelf.c (process_mips_specific): Catch an unfeasible memory
1077 allocation before it happens and print a suitable error message.
1079 2017-04-13 Nick Clifton <nickc@redhat.com>
1081 * objcopy.c: Add --no-merge-notes option to disable note merging.
1082 Add --[no-]merge-notes option to strip, and enable it by default.
1083 (num_bytes): New function.
1084 (merge_gnu_build_notes): Add code to merge stack size notes.
1085 * binutils.texi: Update strip and objcopy documentation.
1086 * readelf.c (print_gnu_build_attribute_name): Use defined
1087 constants for note types.
1089 2017-04-10 John Delsignor <john.delsignore@roguewave.com>
1092 * dwarf.c (display_gdb_index): Correct test for a corrupt address
1095 2017-04-05 Jiong Wang <jiong.wang@arm.com>
1097 * objcopy.c (struct redefine_node): Delete the field "next".
1098 (redefine_sym_list): Deleted.
1099 (redefine_specific_htab): New hash table.
1100 (redefine_specific_reverse_htab): Likewise.
1101 (eq_string_redefnode): New function.
1102 (htab_hash_redefnode): Likewise.
1103 (create_symbol2redef_htab): Likewise.
1104 (add_specific_symbol_node): Likewise.
1105 (create_symbol_htabs): Create redefine_specific_htab and
1106 redefine_specific_reverse_htab.
1107 (lookup_sym_redefinition): Use hash table instead of list.
1108 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
1109 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
1112 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1114 * NEWS: Mention support for ELF SHF_GNU_MBIND and
1116 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
1117 (get_elf_section_flags): Handle SHF_GNU_MBIND.
1118 (process_section_headers): Likewise.
1119 * testsuite/binutils-all/mbind1.s: New file.
1120 * testsuite/binutils-all/objcopy.exp: Run readelf test on
1123 2017-04-03 Nick Clifton <nickc@redhat.com>
1126 * readelf.c (get_program_headers): Check for there being too many
1127 program headers before attempting to allocate space for them.
1129 2017-04-03 Nick Clifton <nickc@redhat.com>
1132 * readelf.c (process_mips_specific): Check for an out of range GOT
1133 entry before reading the module pointer.
1135 2017-04-03 Nick Clifton <nickc@redhat.com>
1138 * readelf.c (get_unwind_section_word): Fix snafu checking for
1139 invalid word offsets in ARM unwind information.
1141 2017-03-31 Pip Cet <pipcet@gmail.com>
1143 * NEWS: Use "WebAssembly" consistently.
1144 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
1146 2017-03-30 Pip Cet <pipcet@gmail.com>
1148 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
1149 (guess_is_rela): Likewise.
1150 (dump_relocations): Likewise.
1151 (is_32bit_abs_reloc): Likewise.
1152 (is_none_reloc_): Likewise.
1153 * NEWS: Mention the new support.
1154 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
1156 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
1157 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
1158 * testsuite/binutils-all/wasm32: New directory.
1159 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
1160 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
1161 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
1162 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
1163 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
1164 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
1165 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
1166 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
1167 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
1168 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
1169 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
1170 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
1171 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
1172 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
1173 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
1175 2017-03-29 Alan Modra <amodra@gmail.com>
1177 * doc/binutils.texi (objdump): Document PowerPC -M options.
1179 2017-03-21 Andi Kleen <ak@linux.intel.com>
1181 * objdump.c (unwind_inlines): Add.
1182 (option_values): Add OPTION_INLINES.
1183 (show_line): Unwind inlines if requested.
1184 (main): Parse OPTION_INLINES.
1185 (usage): Document --inlines.
1186 * doc/binutils.texi: Document --inlines.
1189 2017-03-21 Nick Clifton <nickc@redhat.com>
1191 * readelf.c (print_gnu_build_attribute_name): Allow stack
1192 protection notes to contain numeric values. Use a colon rather
1193 than a space to separate a string name from its values. Decode
1194 the numeric value of a stack protection note.
1195 * objcopy.c (merge_gnu_build_notes): Allow version notes to
1196 contain extra text after the protocol version number.
1198 2017-03-20 Mark Wielaard <mark@klomp.org>
1200 * readelf.c (process_program_headers): Move dynamic_addr check
1201 after .dynamic section cross check.
1203 2017-03-17 Nick Clifton <nickc@redhat.com>
1205 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
1206 printing the value for a build note with an ascii name.
1208 2017-03-16 Nick Clifton <nickc@redhat.com>
1210 * readelf.c (print_gnu_build_attribute_name): Add support for
1211 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
1213 2017-03-14 Nick Clifton <nickc@redhat.com>
1215 * readelf.c (print_gnu_build_attribute_description): Move symbol
1217 (print_symbol_for_build_attribute): New function. ...here.
1218 Add to find the best symbol to associate with an OPEN note.
1219 Add code to cache the symbol table and string table, so that they
1220 are not loaded every time a note is displayed.
1221 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
1222 * testsuite/binutils-all/note-2-64.s: Likewise.
1223 * testsuite/binutils-all/note-2-32.d: Update expected note output.
1224 * testsuite/binutils-all/note-2-64.d: Likewise.
1226 2017-03-13 Alan Modra <amodra@gmail.com>
1227 Taeung Song <treeze.taeung@gmail.com>
1229 * objdump.c (update_source_path): Add abfd param. Add struct
1230 stat var. Pass to try_print_file_open. Warn if source is more
1232 (try_print_file_open, slurp_file): Add struct stat param to
1234 (show_line): Call update_source_path with bfd.
1236 2017-03-10 Chia-Hao Lo <fcamel@gmail.com>
1239 * objdump.c (main): Set do_wide with --wide.
1241 2017-03-10 Nick Clifton <nickc@redhat.com>
1243 * readelf.c (get_machine_name): Rearrange switch table in order of
1244 increasing machine number. Add missing entries.
1246 2017-03-08 H.J. Lu <hongjiu.lu@intel.com>
1249 * readelf.c (decode_x86_isa): Change argument to unsigned int.
1250 (print_gnu_property_note): Retrieve property type and datasz as
1251 4-byte integer. Consolidate property datasz check. Check
1252 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
1253 * testsuite/binutils-all/i386/pr21231a.d: New file.
1254 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
1255 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
1256 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
1257 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
1258 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
1259 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
1260 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
1262 2017-03-06 Nick Clifton <nickc@redhat.com>
1264 * readelf.c (print_gnu_build_attribute_name): Read byte values
1265 from the name string as unsigned bytes.
1266 (process_notes_at): Use memcpy to copy an unterminated name
1269 2017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
1271 * configure.ac (AC_CHECK_DECLS): Add asprintf.
1272 * config.in: Regenerate.
1273 * configure: Regenerate.
1275 2017-03-02 Nick Clifton <nickc@redhat.com>
1277 * readelf.c (print_gnu_build_attribute_description): Use global
1278 symbols for OPEN attributes if at all possible.
1279 * objcopy.c (is_merged_note_section): Support build note sections
1280 without the SHF_GNU_BUILD_NOTE section flag set.
1282 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1284 * dwarf.c (debug_displays_assert): New static assertion.
1286 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1288 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
1290 2017-03-01 Nick Clifton <nickc@redhat.com>
1292 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
1293 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
1294 (decode_x86_isa): New function.
1295 (print_gnu_property_note): New function.
1296 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
1297 (print_gnu_build_attribute_description): New function.
1298 (print_gnu_build_attribute_name): New function.
1299 (process_note): Add support for GNU_BUILD_NOTEs.
1300 * objcopy.c (--merge-notes): New command line option.
1301 (copy_options): Add merge-notes.
1302 (copy_usage): Likewise.
1303 (is_merge_note_section): New function.
1304 (merge_gnu_build_notes): New function.
1305 (copy_object): Merge note sections if asked to do so.
1306 (skip_section): Add skip_copy parameter. Add support for skipping
1307 merged note sections.
1308 (copy_relocations_in_section): Update call to skip_section.
1309 (copy_section): Likewise.
1310 (copy_main): Add support for merge-notes option.
1311 * doc/binutils.texi: Document the new option to objcopy.
1312 * NEWS: Mention the new feature.
1313 * testsuite/binutils-all/note-2-32.d: New test. Checks note
1314 merging on 32-bit targets.
1315 * testsuite/binutils-all/note-2-32.s: New test source file.
1316 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
1317 but for 64-bit targets.
1318 * testsuite/binutils-all/note-2-64.s: New test source file.
1319 * testsuite/binutils-all/objcopy.exp: Run the new test.
1321 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
1323 * objdump.c (main): Use remove_whitespace_and_extra_commas.
1325 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1327 Fix compilation with GCC 4.4.7.
1328 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
1329 Initialize begin and end.
1331 2017-02-25 Alan Modra <amodra@gmail.com>
1333 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
1334 Support hpux .comm variant.
1335 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
1336 dw5 test for hppa64-hpux.
1338 2017-02-24 Nick Clifton <nickc@redhat.com>
1340 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
1341 (do_reloc, do_sections, do_section_groups, do_section_details,
1342 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
1343 (do_version, do_histogram, do_debugging, do_arch, do_notes,
1344 (do_archive_index, is_32bit_elf, decompress_dumps): Use
1346 (parse_args): Treat the do_* variables as booleans.
1347 (print_vma): Return an unsigned int.
1348 (print_symbol): Change width parameter to signed int.
1349 (is_ia64_vms): Change return type to bfd_boolean.
1350 (guess_is_rela): Likewise.
1351 (slurp_rela_relocs): Likewise.
1352 (slurp_rel_relocs): Likewise.
1353 (dump_relocations): Likewise.
1354 (process_file_header): Likewise.
1355 (get_program_headers): Likewise.
1356 (process_program_headers): Likewise.
1357 (process_section_headers): Likewise.
1358 (process_section_groups): Likewise.
1359 (dump_ia64_vms_dynamic_fixups): Likewise.
1360 (dump_ia64_vms_dynamic_relocs): Likewise.
1361 (process_ia64_vms_dynamic_relocs): Likewise.
1362 (process_relocs): Likewise.
1363 (dump_ia64_unwind): Likewise.
1364 (ia64_process_unwind): Likewise.
1365 (dump_hppa_unwind): Likewise.
1366 (slurp_hppa_unwind_table): Likewise.
1367 (hppa_process_unwind): Likewise.
1368 (decode_arm_unwind_bytecode): Likewise.
1369 (decode_tic6x_unwind_bytecode): Likewise.
1370 (decode_arm_unwind): Likewise.
1371 (dump_arm_unwind): Likewise.
1372 (arm_process_unwind): Likewise.
1373 (process_unwind): Likewise.
1374 (get_32bit_dynamic_section): Likewise.
1375 (get_64bit_dynamic_section): Likewise.
1376 (process_dynamic_section): Likewise.
1377 (process_version_sections): Likewise.
1378 (process_symbol_table): Likewise.
1379 (process_syminfo): Likewise.
1380 (apply_relocations): Likewise.
1381 (disassemble_section): Likewise.
1382 (dump_section_as_strings): Likewise.
1383 (dump_section_as_bytes): Likewise.
1384 (load_specific_debug_section): Likewise.
1385 (load_debug_section): Likewise.
1386 (display_debug_section): Likewise.
1387 (process_section_contents): Likewise.
1388 (process_attributes): Likewise.
1389 (process_nds32_specific): Likewise.
1390 (process_gnu_liblist): Likewise.
1391 (print_core_note): Likewise.
1392 (print_gnu_note): Likewise.
1393 (print_v850_note): Likewise.
1394 (process_netbsd_elf_note): Likewise.
1395 (print_stapsdt_note): Likewise.
1396 (print_ia64_vms_note): Likewise.
1397 (process_note): Likewise.
1398 (process_notes_at): Likewise.
1399 (process_corefile_note_segments): Likewise.
1400 (process_v850_notes): Likewise.
1401 (process_note_sections): Likewise.
1402 (process_notes): Likewise.
1403 (process_arch_specific): Likewise.
1404 (get_file_header): Likewise.
1405 (process_object): Likewise.
1406 (process_archive): Likewise.
1407 (process_file): Likewise.
1408 (section_subset): Make static.
1409 (get_mips_reg_size): Return a signed integer.
1410 (process_object): Reverse the logic of the return value.
1411 (process_archive): Likewise.
1412 (process_file): Likewise.
1413 (process_program_headers): Fix snafu - if the program headers are
1414 not available then this is not a cause to fail.
1415 (process_corefile_note_segments): Likewise.
1417 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1419 * readelf.c (get_ver_flags): Tidy the formatting of the string
1422 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1424 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
1426 <SHT_GNU_verneed>: Likewise.
1428 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1430 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
1431 the number of entries processed by the section size. Don't
1432 break out of the loop if `ent.vd_next' is 0.
1434 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1436 * testsuite/binutils-all/dw5.S: New file.
1437 * testsuite/binutils-all/dw5.W: New file.
1438 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
1440 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1442 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
1444 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
1449 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1451 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
1452 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
1453 and DW_OP_reinterpret.
1454 (read_and_display_attr_value): Support DW_AT_call_value,
1455 DW_AT_call_data_value, DW_AT_call_target and
1456 DW_AT_call_target_clobbered.
1458 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 * dwarf.c (fetch_indirect_line_string): New function.
1461 (abbrev_attr): New field implicit_const.
1462 (add_abbrev_attr): New parameter implicit_const.
1463 (process_abbrev_section): Support DW_FORM_implicit_const.
1464 (decode_location_expression): Support DW_OP_entry_value.
1465 (read_and_display_attr_value): Add parameter implicit_const. Support
1466 DW_FORM_line_strp and DW_FORM_implicit_const.
1467 (read_and_display_attr): Add parameter implicit_const.
1468 (process_debug_info): Support line_str and DWARF-5.
1469 (read_debug_line_header): Support DWARF-5.
1470 (display_formatted_table): New function.
1471 (display_debug_lines_raw): New parameter file. Support DWARF-5.
1472 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
1473 (display_debug_lines): Pass file parameter.
1474 (display_debug_macro): Update read_and_display_attr_value caller.
1475 (display_debug_abbrev): Support DW_FORM_implicit_const.
1476 (display_loclists_list): New function.
1477 (display_loc_list): Support .debug_loclists.
1478 (display_debug_ranges_list): New function from display_debug_ranges.
1479 (display_debug_rnglists_list): New function.
1480 (display_debug_ranges): Support .debug_rnglists.
1481 (debug_displays): Add .debug_line_str, .debug_loclists and
1483 * dwarf.h: Include dwarf2.h
1484 (DWARF2_Internal_LineInfo): Add li_offset_size.
1485 (DWARF2_Internal_CompUnit): Add cu_unit_type.
1486 (enum dwarf_section_display_enum): Add line_str.
1487 * readelf.c (process_section_headers): Add rnglists and loclists.
1489 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 * dwarf.c (display_block): Add parameter delimiter.
1492 (decode_location_expression): Update display_block callers.
1493 (read_and_display_attr_value): Add parameter delimiter.
1494 (read_and_display_attr, display_debug_macro): Update
1495 read_and_display_attr_value caller.
1497 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1499 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
1501 (display_loc_list_dwo): Use dwarf_vma for offset.
1502 (display_debug_loc): Use dwarf_vma for offset, base_address.
1503 (struct range_entry, range_entry_compar): Use dwarf_vma for
1505 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
1508 2017-02-23 Nick Clifton <nickc@redhat.com>
1510 * readelf.c (display_tag_value): Use an explicit signed type for
1512 (display_gnu_attributes): Use an unsigned integer type for
1514 (display_power_gnu_attribute): Likewise.
1515 (display_s390_gnu_attribute): Likewise.
1516 (display_sparc_hwcaps): Likewise.
1517 (display_sparc_hwcaps2): Likewise.
1518 (display_sparc_gnu_attribute): Likewise.
1519 (display_mips_gnu_attribute): Likewise.
1520 (display_tic6x_attribute): Likewise.
1521 (display_raw_attribute): Likewise.
1522 (process_attributes): Likewise.
1523 (process_arm_specific): Delete redundant function.
1524 (process_power_specific): Likewise.
1525 (process_s390_specific): Likewise.
1526 (process_sparc_specific): Likewise.
1527 (process_tic6x_specific): Likewise.
1528 (process_msp430x_specific): Likewise.
1529 (display_public_gnu_attributes): New function. Displays known
1530 information about an unknown gnu attribute.
1531 (display_generic_attribute): New function. Calls
1532 display_tag_value for non-nul tags.
1533 (process_arch_specific): Call process_attributes even for
1534 architectures not known to specifically support gnu attributes.
1536 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1538 * dwarf.c (decode_location_expression): Display also OP.
1540 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1542 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1543 new line between the heading and the first version definition
1546 2017-02-20 Nick Clifton <nickc@redhat.com>
1549 * dwarf.c (cu_tu_indexes_read): Move into...
1550 (load_cu_tu_indexes): ... here. Change the variable into
1551 tri-state. Change the function into boolean, returning
1552 false if the indicies could not be loaded.
1553 (find_cu_tu_set): Return NULL if the indicies could not be
1556 2017-02-17 Nick Clifton <nickc@redhat.com>
1559 * readelf.c (find_section_in_set): Test for invalid section
1562 2017-02-17 Nick Clifton <nickc@redhat.com>
1564 * readelf.c (get_section_type_name): Add decoding of GNU section
1567 2017-02-15 Nick Clifton <nickc@redhat.com>
1569 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1570 Maintainers section.
1572 2017-02-14 Nick Clifton <nickc@redhat.com>
1575 * readelf.c (dump_section_as_strings): Reset the start address if
1576 no decompression is perfromed.
1577 (dump_section_as_bytes): Likewise.
1579 2017-02-14 Nick Clifton <nickc@redhat.com>
1582 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1585 2017-02-14 Nick Clifton <nickc@redhat.com>
1588 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1590 (parse_number): Exit early if passed an empty string.
1592 2017-02-14 Nick Clifton <nickc@redhat.com>
1595 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1596 being within a given range.
1597 (target_specific_reloc_handling): Use macro to test for underflow
1598 as well as overflow of reloc offset.
1600 2017-02-13 Nick Clifton <nickc@redhat.com>
1603 * nm.c (file_symbol): Add test of string length before testing
1606 2017-02-13 Nick Clifton <nickc@redhat.com>
1609 * readelf.c (dump_section_as_bytes): Handle the case where
1610 uncompress_section_contents returns false.
1611 (dump_section_as_bytes, load_specific_debug_section): Likewise.
1613 2017-02-13 Nick Clifton <nickc@redhat.com>
1616 * readelf.c (get_compression_header): Add size parameter. Check
1617 size against sizeof compression header before attempting to
1619 (process_section_headers): Pass size to get_compression_header.
1620 (dump_section_as_strings): Likewise.
1621 (dump_section_as_bytes): Likewise.
1622 (load_specific_debug_section): Likewise.
1624 2017-02-13 Nick Clifton <nickc@redhat.com>
1627 * readelf.c (process_version_sections): Include size of auxillary
1628 version information when checking for buffer overflow.
1630 2017-02-13 Nick Clifton <nickc@redhat.com>
1633 * readelf.c (process_section_contents): Fix off by one error
1634 reporting un-dumped sections.
1636 2017-02-13 Nick Clifton <nickc@redhat.com>
1639 * readelf.c (target_specific_reloc_handling): Add num_syms
1640 parameter. Check for symbol table overflow before accessing
1641 symbol value. If reloc pointer is NULL, discard all saved state.
1642 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1643 Call target_specific_reloc_handling with a NULL reloc pointer
1644 after processing all of the relocs.
1646 2017-02-13 Nick Clifton <nickc@redhat.com>
1649 * readelf.c (target_specific_reloc_handling): Add end parameter.
1650 Check for buffer overflow before writing relocated values.
1651 (apply_relocations): Pass end to target_specific_reloc_handling.
1653 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1654 Nick Clifton <nickc@redhat.com>
1657 * doc/binutils.texi (ar): Extend documentation of the --plugin
1658 option. Include a description of where the plugins should be
1662 2017-01-23 Nick Clifton <nickc@redhat.com>
1664 * MAINTAINERS: Add Bernd to Past Maintainers section.
1665 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
1668 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1670 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1672 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1674 * objdump.c (dump_section_header): Extract max section name length
1675 from data parameter, use this when formatting output.
1676 (find_longest_section_name): New function.
1677 (dump_headers): Calculate longest section name when in wide mode,
1678 reformat to unify printing of header line.
1680 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1683 * arlex.l: Support processing with flex 2.6.3.
1684 * deflex.l: Likewise.
1686 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1688 * resbin.c: Optional dialog control data immediately follows
1689 the control description without alignment.
1690 * testsuite/binutils-all/windres/controldata.rc: New test.
1692 * testsuite/binutils-all/windres/controldata.rsd: New test.
1694 2017-01-12 Nick Clifton <nickc@redhat.com>
1697 * NEWS: Mention the new feature.
1698 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1699 New proc to test the location of separate debug info files using
1700 the build-id method.
1702 2017-01-10 Nick Clifton <nickc@redhat.com>
1705 * stabs.c (parse_stab_members): Fix thinko checking for g++
1706 version 1 stabs information.
1708 2017-01-09 Nick Clifton <nickc@redhat.com>
1710 * objdump.c (display_file): Add new parameter 'last_file'. If
1711 last_file is true, do not call bfd_close at the end of the
1713 (main): Set the value of the last_file parameter when calling
1716 2017-01-09 Alan Modra <amodra@gmail.com>
1718 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1721 2017-01-06 Nick Clifton <nickc@redhat.com>
1723 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1725 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1728 * syslex.l (option): Add noyywrap
1731 2017-01-02 Alan Modra <amodra@gmail.com>
1733 Update year range in copyright notice of all files.
1735 For older changes see ChangeLog-2016
1737 Copyright (C) 2017 Free Software Foundation, Inc.
1739 Copying and distribution of this file, with or without modification,
1740 are permitted in any medium without royalty provided the copyright
1741 notice and this notice are preserved.
1747 version-control: never