1 2019-12-17 Alan Modra <amodra@gmail.com>
3 * objdump.c (compare_section): New static var.
4 (compare_symbols): Sort by current section only. Don't access
5 symbol name out of bounds when checking for file symbols.
6 Sort section symbols and object symbols.
7 (find_symbol_for_address): Remove bogus debugging and section
9 (disassemble_data): Move symbol sort from here..
10 (disassemble_section): ..to here. Set compare_section.
12 2019-12-17 Alan Modra <amodra@gmail.com>
14 * testsuite/binutils-all/objcopy.exp: Remove tic80 support.
15 * testsuite/binutils-all/objdump.exp: Likewise.
17 2019-12-11 Alan Modra <amodra@gmail.com>
19 * od-xcoff.c (dump_dumpx_core): Adjust for bfd_h_get_8 change.
21 2019-12-10 Alan Modra <amodra@gmail.com>
24 * objdump.c (disassemble_data): Call disassemble_free_target.
26 2019-12-10 Alan Modra <amodra@gmail.com>
28 * objdump.c (struct objdump_disasm_info): Delete "sec".
29 (find_symbol_for_address): Use inf->section rather than aux->sec.
30 (objdump_print_addr, disassemble_bytes): Likewise.
31 (disassemble_section): Don't set aux->sec.
33 2019-12-08 Alan Modra <amodra@gmail.com>
35 * testsuite/lib/binutils-common.exp (regexp_diff): Support #?REGEXP.
37 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
39 * dwarf.c (regname_internal_riscv): New function.
40 (init_dwarf_regnames_riscv): Use new function.
42 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
44 * dwarf.c (typedef dwarf_regname_lookup_ftype): New typedef.
45 (dwarf_regnames_lookup_func): New static global.
46 (init_dwarf_regnames_i386): Set dwarf_regnames_lookup_func.
47 (init_dwarf_regnames_iamcu): Likewise.
48 (init_dwarf_regnames_x86_64): Likewise.
49 (init_dwarf_regnames_aarch64): Likewise.
50 (init_dwarf_regnames_s390): Likewise.
51 (init_dwarf_regnames_riscv): Likewise.
52 (init_dwarf_regnames_by_elf_machine_code): Reset
53 dwarf_regnames_lookup_func to NULL.
54 (init_dwarf_regnames_by_bfd_arch_and_mach): Likewise.
55 (regname_internal_by_table_only): New function.
56 (regname): Make use of dwarf_regnames_lookup_func.
58 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
60 * dwarf.c (init_dwarf_regnames_i386): Make static.
61 (init_dwarf_regnames_iamcu): Make static.
62 (init_dwarf_regnames_x86_64): Make static.
63 (init_dwarf_regnames_aarch64): Make static.
64 (init_dwarf_regnames_s390): Make static.
65 (init_dwarf_regnames_riscv): Make static.
66 * dwarf.h (init_dwarf_regnames_i386): Delete declaration.
67 (init_dwarf_regnames_iamcu): Delete declaration.
68 (init_dwarf_regnames_x86_64): Delete declaration.
69 (init_dwarf_regnames_aarch64): Delete declaration.
70 (init_dwarf_regnames_s390): Delete declaration.
71 (init_dwarf_regnames_riscv): Delete declaration.
73 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
75 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New
77 * dwarf.h (init_dwarf_regnames_by_bfd_arch_and_mach): Declare.
78 * objdump.c (dump_dwarf): Call new function instead of calling
79 specific initialization routines. Restrucure so that eh_addr_size
80 is still calculated correctly.
82 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
84 * dwarf.c (init_dwarf_regnames): Renamed to...
85 (init_dwarf_regnames_by_elf_machine_code): ...this.
86 * dwarf.h (init_dwarf_regnames): Renamed to...
87 (init_dwarf_regnames_by_elf_machine_code): ...this.
88 * readelf.c (process_file_header): Update call to use new name.
90 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
92 * dwarf.c (frame_need_space): Compare dwarf_regnames_count against
93 0, and only warn about large numbers of registers if the number is
94 more than the dwarf_regnames_count.
96 2019-11-25 Christian Eggers <ceggers@gmx.de>
98 * objdump.c (disassemble_data): Provide section parameter to
100 (dump_section): likewise
101 (dump_section_header): likewise. Show SEC_ELF_OCTETS flag if set.
103 2019-11-21 Alan Modra <amodra@gmail.com>
106 * size.c (sysv_internal_sizer, sysv_internal_printer): Exclude
107 sections with no flag bits set.
108 * testsuite/binutils-all/size.exp: Allow $CODE$ as a text section.
110 2019-11-21 Nick Clifton <nickc@redhat.com>
112 * objcopy.c (merge_gnu_build_notes): Allow for the possibility
113 that the new notes might actually be larger than the original
116 2019-11-21 Alan Modra <amodra@gmail.com>
118 * testsuite/lib/binutils-common.exp (is_pecoff_format): Rewrite
119 with positive logic and add more target triples.
121 2019-11-19 Alan Modra <amodra@gmail.com>
124 * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives.
126 2019-11-19 Alan Modra <amodra@gmail.com>
129 * objcopy.c (copy_object): For ELF output and non-ELF input without
130 arch, take arch from output file if not given by -B. Don't
131 bfd_get_arch_info when we already have iarch.
133 2019-11-19 Alan Modra <amodra@gmail.com>
136 * objcopy.c (is_nondebug_keep_contents_section): Use bfd_get_flavour.
137 (copy_object): Likewise.
138 (setup_section): Likewise. If flavour of input and output files
139 differ, restrict section flags to the intersection of input and
140 output bfd_applicable_section_flags.
142 2019-11-19 Alan Modra <amodra@gmail.com>
144 * bucomm.c (bfd_nonfatal_message): Add a space between program
147 2019-11-18 Alan Modra <amodra@gmail.com>
150 * prdbg.c (tg_start_class_type): Correct scope of idbuf.
152 2019-11-08 Alan Modra <amodra@gmail.com>
155 * objdump.c (usage): Correct --stop-address description.
157 2019-11-07 Nick Clifton <nickc@redhat.com>
159 * ar.c (open_output_file): Check for filename validity before
160 prefixing with output directory.
161 Display the constructed output filename if in verbose mode.
162 (extract_file): Let open_output_file display the filename.
164 2019-11-07 Nick Clifton <nickc@redhat.com>
166 * objcopy.c (copy_object): Skip note sections that do not have
167 an output section. Always copy note sections, even if no
170 2019-11-06 Christian Eggers <ceggers@gmx.de>
172 * readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add
173 comment. Catch potential integer overflow and fix off by one
174 error whilst checking reloc location against section size.
175 (apply_relocations): Use IN_RANGE macro.
177 2019-11-04 Fangrui Song <maskray@google.com>
179 * objcopy.c (enum option_values): Add OPTION_KEEP_SECTION.
180 (SECTION_CONTEXT_KEEP): Define. Adjust other SECTION_CONTEXT macros.
181 (copy_usage): Describe --keep-section.
182 (strip_usage): Likewise.
183 (copy_main): Handle SECTION_CONTEXT_KEEP.
184 (strip_main): Likewise.
185 (is_strip_section_1): Likewise.
186 * testsuite/binutils-all/objcopy.exp: Add tests.
187 * testsuite/binutils-all/keep-section-1.d: New test driver file.
188 * testsuite/binutils-all/keep-section-2.d: Likewise.
189 * doc/binutils.texi: Document the new feature.
190 * NEWS: Mention the new feature.
192 2019-10-20 Palmer Dabbelt <palmer@sifive.com>
194 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
196 2019-10-30 Fangrui Song <i@maskray.me>
197 Nick Clifton <nickc@redhat.com>
199 * ar.c (emum long option numbers): Declare. Use to provide
200 numerical values for long options.
201 (long_options): Add --output option.
202 (usage): Mention the --output option.
203 (open_output_file): New function. Create a filepath for an output
205 (extract_file): Use open_output_file().
207 * testsuite/binutils-all/ar.exp: Add a test of the new feature.
208 * doc/binutils.texi: Document the new feature.
209 * NEWS: Mention the new feature.
211 2019-10-26 Alan Modra <amodra@gmail.com>
213 * objcopy.c (sort_gnu_build_notes): Correct sort of deleted
216 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
218 * elfedit.c (elf_x86_feature): Report unknown x86 feature.
220 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
222 * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
224 2019-10-25 Nick Clifton <nickc@redhat.com>
226 * objcopy.c (struct merged_note_section): New structure. Used to
227 chain together details of mergeable note sections.
228 (is_merged_note_section): Rename to is_megreable_note_section and
229 return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
232 (objcoopy_internal_note): Add padded_namesz field.
233 (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of
234 the note merging code.
235 (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
236 overlapping notes or adjoining notes.
237 (contained_by, is_deleted_note, is_version_note)
238 (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
239 (merge_gnu_build_notes): Rework. Sort notes into a mergeable
240 order first. Merge them. Then sort them into an ascending
241 address order before writing them out.
242 (copy_object): Handle more than one mergeable note section.
243 * testsuite/binutils-all/note-2-32.d: Update for new merging
245 * testsuite/binutils-all/note-2-32.s: Likewise.
246 * testsuite/binutils-all/note-2-64.d: Likewise.
247 * testsuite/binutils-all/note-2-64.s: Likewise.
248 * testsuite/binutils-all/note-3-32.d: Likewise.
249 * testsuite/binutils-all/note-3-32.s: Likewise.
250 * testsuite/binutils-all/note-3-64.d: Likewise.
251 * testsuite/binutils-all/note-3-64.s: Likewise.
252 * testsuite/binutils-all/note-4-32.d: Likewise.
253 * testsuite/binutils-all/note-4-32.s: Likewise.
254 * testsuite/binutils-all/note-4-64.d: Likewise.
255 * testsuite/binutils-all/note-4-64.s: Likewise.
256 * testsuite/binutils-all/note-6-32.s: New test source file.
257 * testsuite/binutils-all/note-6-64.s: New test source file.
258 * testsuite/binutils-all/note-6-32.d: New test driver file.
259 * testsuite/binutils-all/note-6-64.d: New test driver file.
260 * testsuite/binutils-all/objcopy.exp: Run the new test.
262 2019-10-25 Alan Modra <amodra@gmail.com>
264 * readelf.c (process_program_headers): Check PT_PHDR p_offset
265 as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
267 2019-10-21 Alan Modra <amodra@gmail.com>
271 * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
272 * doc/binutils.texi (extract from archive): Mention
273 restrictions when extracting from archives with full paths.
274 (ar P): Update to current P support.
275 (ar -X32_64): Fix spelling.
277 2019-10-14 Alan Modra <amodra@gmail.com>
279 * objcopy.c (compare_section_lma): Correct comment. Dereference
280 section pointer earlier and lose unnecessary const. Style fixes.
281 Add final sort by id.
283 2019-10-13 Nick Clifton <nickc@redhat.com>
285 * README-how-to-make-a-release: Add a note to reset the
286 development flag back to true after making a point release.
288 2019-10-12 Nick Clifton <nickc@redhat.com>
290 * README-how-to-make-a-release: Tweak a few sections based on the
291 results of the 2.33.1 release.
293 2019-10-11 Nick Clifton <nickc@redhat.com>
295 * po/zh_TW.po: Updated Chinese (traditional) translation.
297 2019-10-09 Alan Modra <amodra@gmail.com>
300 * ar.c (decode_options): Don't try for command options if
301 write_armap or mri_mode is selected.
303 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
305 * readelf.c (display_msp430_gnu_attribute): New.
306 (process_arch_specific): Use msp430 specific handler for GNU
309 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
311 * objdump.c (main): Fix tabdamage.
312 * readelf.c (CTF_DUMP): Likewise.
314 (dump_section_as_ctf): Likewise.
316 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
318 * objdump.c (dump_ctf): Use the default CTF archive member as the
319 parent even when no parent section is specified.
320 (dump_ctf_archive_member): Only import from the parent
321 if this is not the default ".ctf" member.
323 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
325 * Makefile.am (LIBCTF): Mention the .la file.
327 (readelf_DEPENDENCIES): Use it.
328 (readelf_LDADD): Likewise.
329 * Makefile.in: Regenerated.
331 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
333 * readelf.c (dump_ctf_symtab_name): Give default value.
334 (dump_ctf_strtab_name): Likewise.
335 (dump_section_as_ctf): Allow for the null string.
337 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
339 * objdump.c (dump_ctf_archive_member): Dump the CTF header.
340 * readelf.c (dump_section_as_ctf): Likewise.
342 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
345 * objcopy.c (copy_usage): Update description of
346 --set-section-alignment.
347 (copy_main): Interpret numeric argument of --set-section-alignment
348 as a byte alignment, not a power of two alignment.
349 * doc/binutils.texi: Update description of
350 --set-section-alignment.
351 * testsuite/binutils-all/set-section-alignment.d: New test.
352 * testsuite/binutils-all/objcopy.exp: Run the new test.
354 2019-09-30 Alan Modra <amodra@gmail.com>
357 * readelf.c (process_program_headers): Clear dynamic_addr and
358 dynamic_size earlier.
360 2019-09-24 Alan Modra <amodra@gmail.com>
363 * nm.c (print_format_string): New.
364 (get_print_format): Delete saved_format. Move earlier.
365 (set_print_width): Call get_print_format.
366 (print_value): Use print_format_string.
368 2019-09-23 Alan Modra <amodra@gmail.com>
370 * dlltool.c: Include coff-bfd.h.
372 2019-09-23 Alan Modra <amodra@gmail.com>
375 * dwarf.c (get_type_signedness): Delete ineffective pointer
376 comparison check. Properly range check uvalue offset on
378 (read_and_display_attr_value): Range check uvalue offset before
379 calling get_type_signedness.
381 2019-09-20 Alan Modra <amodra@gmail.com>
383 * ar.c (write_archive): Use bfd_set_thin_archive.
385 2019-09-18 Tamar Christina <tamar.christina@arm.com>
387 * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
389 2019-09-18 Alan Modra <amodra@gmail.com>
391 * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
392 * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
393 * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
394 * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
395 throughout for bfd section macro and function changes.
397 2019-09-18 Alan Modra <amodra@gmail.com>
399 * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
400 * objcopy.c: Likewise.
401 * objdump.c: Likewise.
402 * rdcoff.c: Likewise.
403 * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
404 (filter_symbols): Likewise.
406 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
408 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
409 cxxfilt.man and binutils.info.
410 (MAINTAINERCLEANFILES): Remove.
411 * doc/Makefile.in: Re-generate.
413 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
415 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
416 * doc/Makefile.in: Re-generate.
418 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
420 * doc/Makefile.am (install-data-loca): Remove target.
421 (DISTCLEANFILES): Remove variable.
422 * doc/Makefile.in: Re-generate.
424 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
426 * Makefile.in: Re-generate.
427 * configure: Re-generate.
428 * doc/Makefile.in: Re-generate.
430 2019-09-16 Phil Blundell <pb@pbcl.net>
432 * Makefile.in, configure. doc/Makefile.in: Regenerated.
434 2019-09-11 Tom Tromey <tom@tromey.com>
436 * objcopy.c (copy_archive): Update.
437 * bucomm.h (make_tempname, make_tempdir): Make argument const.
438 * bucomm.c (make_tempname, make_tempdir): Make argument const.
440 2019-09-11 Alan Modra <amodra@gmail.com>
443 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
444 lines. Correct max_reloc_offset_into_insn test.
446 2019-09-10 Nick Clifton <nickc@redhat.com>
449 * objdump.c (null_print): New function.
450 (disassemble_bytes): Delete previous_octets local and replace with
451 a test of the max_reloc_offset_into_insn field of the
452 bfd_arch_info structure. If a reloc is a potential match for the
453 next insn, then perform a dummy disassembly in order to calculate
456 2019-09-09 Phil Blundell <pb@pbcl.net>
458 binutils 2.33 branch created.
460 2019-09-06 Alan Modra <amodra@gmail.com>
462 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
463 (print_object_filename_posix, print_archive_filename_bsd),
464 (print_archive_filename_sysv, print_archive_filename_posix),
465 (print_archive_member_bsd, print_archive_member_sysv),
466 (print_archive_member_posix): Constify parameter.
467 (struct output_fns <print_object_filename, print_archive_filename>),
468 (<print_archive_member>): Likewise.
469 * objcopy.c (copy_archive): Add cast for make_tempdir.
471 2019-08-29 Alan Modra <amodra@gmail.com>
473 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
475 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
478 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
479 (struct section_list): Add alignment field.
480 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
481 (copy_options): Add --set-section-alignment.
482 (copy_usage): Describe --set-section-alignment.
483 (find_section_list): Initialise the alignment field.
484 (setup_section): Handle the alignment field.
485 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
486 * doc/binutils.texi: Document the new feature.
487 * NEWS: Mention the new feature.
489 2019-08-28 Nick Clifton <nickc@redhat.com>
492 * objdump.c (source_comment): New static variable.
493 (option_values): Add OPTION_SOURCE_COMMENT.
494 (long_opions): Add --source-comment.
495 (print_line): If source comment is set, use it as a prefix to the
497 (main): Handle OPTION_SOURCE_COMMENT.
498 * doc/binutils.texi: Document the new option.
499 * NEWS: Mention the new feature.
500 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
501 of the -S and --source-comment options.
503 2019-08-27 Nick Clifton <nickc@redhat.com>
506 * dwarf.c (MAX_CU_NESTING): New constant.
507 (level_type_signed): New static array.
508 (skip_attr_bytes): New function.
509 (get_type_signedness): New function.
510 (read_and_print_leb128): New function.
511 (display_discr_list): New function.
512 (read_and_display_attr_value): Add start parameter.
513 Use new functions when handling DW_AT_type and DW_AT_discr_list.
514 (read_and_display_attr): Add start parameter. Pass to
515 read_and_display_attr_value.
516 (process_debug_info): Update call to read_and_display_attr.
517 (display_formatted_table): Likewise.
518 (display_debug_lines_decoded): Likewise. Also add start
520 (display_debug_lines): Likewise.
521 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
523 * testsuite/binutils-all/dwarf-attributes.W: Update expected
526 2019-08-26 Alan Modra <amodra@gmail.com>
529 * debug.c (debug_write_type): Call empty_type for NULL type here..
530 (debug_write_type): ..rather than in just one case here.
532 2019-08-23 Nick Clifton <nickc@redhat.com>
535 * dwarf.c (check_uvalue): New function. Ensures that a block's
537 (read_and_display_attr_value): Use check_value when processsing
538 DW_FORM_block<n> attributes.
540 2019-08-22 Nick Clifton <nickc@redhat.com>
543 * dwarf.c (process_cu_tu_index): Handle the case where a table
544 does not have any columns.
546 2019-08-19 Alan Modra <amodra@gmail.com>
549 * dwarf.c (display_debug_frames): Use the read_cie check and error
550 for augmentation data length.
552 2019-08-17 Alan Modra <amodra@gmail.com>
555 * dwarf.c (comp_addr_base): Dereference args.
557 2019-08-16 Alan Modra <amodra@gmail.com>
561 * readelf.c (get_symbol_version_string): Set sym_info earlier.
563 2019-08-15 Nick Clifton <nickc@redhat.com>
566 * doc/binutils.texi (nm): Document the 'n' symbol type.
568 2019-08-15 Christophe Vidal <support@krizalys.com>
570 * docs/binutils.texi: Fixed notice message disassembler options
571 section of the man page.
573 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
575 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
576 (get_mips_section_type_name): Return MI{S_XHASH name string.
577 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
579 (process_symbol_table): Initialize the .MIPS.xhash section
580 pointer. Adjust the readelf output to support the new section.
581 (process_object): Set the .MIPS.xhash dynamic info to zero.
583 2019-08-09 Tamar Christina <tamar.christina@arm.com>
585 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
586 * testsuite/binutils-all/arm/in-order.d: Likewise.
587 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
588 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
590 2019-08-08 Nick Clifton <nickc@redhat.com>
593 * readelf.c (process_notes_at): Left justify the "Data size"
595 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
596 * testsuite/binutils-all/i386/ibt.d: Likewise.
597 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
598 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
599 * testsuite/binutils-all/i386/shstk.d: Likewise.
600 * testsuite/binutils-all/note-2-32.d: Likewise.
601 * testsuite/binutils-all/note-2-64.d: Likewise.
602 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
603 * testsuite/binutils-all/x86-64/empty.d: Likewise.
604 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
605 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
606 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
607 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
608 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
609 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
610 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
611 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
612 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
613 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
614 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
615 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
616 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
617 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
619 2019-08-08 Nick Clifton <nickc@redhat.com>
621 * testsuite/gentestdlls.c (main): Move declaration of loop
622 variable outside of the for() statement.
624 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
626 * readelf.c (process_note): Mask unknown description data bytes.
628 2019-08-08 Alan Modra <amodra@gmail.com>
630 * readelf.c (get_data): Improve overflow checks.
632 2019-08-07 Nick Clifton <nickc@redhat.com>
635 * doc/binutils.texi: Ensure consistent formating of title strings
636 for man pages. Extend the title of the size man page to be more
639 2019-08-07 Omair Majid <omajid@redhat.com>
641 * testsuite/binutils-all/objdump.exp
642 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
643 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
644 introduced machine types.
645 * testsuite/gentestdlls.c (write_simple_dll): New function.
646 (main): Generate simple and Linux-specific variants of pei-i386
647 and pei-x86-64 files so both can be used by tests.
649 2019-08-07 Alan Modra <amodra@gmail.com>
652 * readelf.c (dump_ia64_unwind): Check that buffer is large
653 enough for "stamp" before reading.
655 2019-08-05 Nick Clifton <nickc@redhat.com>
658 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
659 note being a version note.
660 Remove spurious debugging fprintf.
662 2019-08-05 Nick Clifton <nickc@redhat.com>
665 * readelf.c (apply_relocations): Catch potential integer overflow
666 whilst checking reloc location against section size.
668 2019-08-02 Alan Modra <amodra@gmail.com>
671 * readelf.c (ABSADDR): Delete.
672 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
674 2019-07-29 Martin Liska <mliska@suse.cz>
677 * nm.c (filter_symbols): Set report_plugin_err if
679 (display_rel_file): Report error for a missing LTO plugin.
681 2019-07-26 Alan Modra <amodra@gmail.com>
684 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
685 systems by casting ncols and nslots expressions to size_t. Display
686 number of columns and slots before giving up due to buffer overflow.
687 Use %u to display unsigned ints. Perform more pointer wrap tests.
689 2019-07-25 Tom Tromey <tromey@adacore.com>
692 * dwarf.c (display_debug_names): Display the contents of the
693 augmentation string, if it is printable.
695 2019-07-25 Nick Clifton <nickc@redhat.com>
698 * readelf.c (process_mips_specific): Check for buffer overflow
699 before reading reginfo information.
701 2019-07-24 Nick Clifton <nickc@redhat.com>
704 * ar.c (decode_options): Restart option scanning if no operation
705 is detected and argument remain to be scanned.
707 2019-07-23 Nick Clifton <nickc@redhat.com>
710 * objdump.c (is_relocateable): Delete.
711 (load_specific_debug_section): Test the abfd for relocations
712 directly, rather than relying upon is_relocateable.
713 (dump_dwarf): Delete initlialization of is_relocateable.
715 2019-07-23 Alan Modra <amodra@gmail.com>
717 * readelf.c (get_parisc_segment_type): Split off hpux entries..
718 (get_ia64_segment_type): ..and these..
719 (get_hpux_segment_type): ..to here.
720 (get_segment_type): Condition GNU_MBIND on osabi. Use
721 get_hpux_segment_type.
722 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
723 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
725 2019-07-23 Alan Modra <amodra@gmail.com>
727 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
728 file used to set this variable.
730 2019-07-23 Omar Majid <omajid@redhat.com>
732 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
733 (GENTESTDLLSPROG): Define.
734 (TEST_PROGS): Add GENTESTDLLSPROG.
735 * Makefile.in: Regenerate.
736 * testsuite/binutils-all/objdump.exp
737 (test_objdump_dotnet_assemblies): New proc.
739 * testsuite/gentestdlls.c: New source file.
741 2019-06-28 Nick Clifton <nickc@redhat.com>
744 * objdump.c (slurp_symtab): Fail with a helpful error message if
745 the symbol table is too large. Skip this check for MMO format
748 2019-06-26 Nick Clifton <nickc@redhat.com>
751 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
752 indicate this in the output.
753 (bfd_nonfatal_message): Likewise.
755 2019-06-25 Jan Beulich <jbeulich@suse.com>
757 * readelf.c (dump_ctf_indent_lines): Rename local variable
758 "spaces" to "blanks".
760 2019-06-25 Jan Beulich <jbeulich@suse.com>
762 * objdump.c (dump_ctf_indent_lines): Rename local variable
763 "spaces" to "blanks".
765 2019-06-14 Alan Modra <amodra@gmail.com>
767 * Makefile.in: Regenerate.
768 * aclocal.m4: Regenerate.
769 * doc/Makefile.in: Regenerate.
771 2019-06-12 Christos Zoulas <christos@zoulas.com>
774 * readelf.c (process_netbsd_elf_note): Add support for
776 (process_note): Add support for PaX notes.
778 2019-06-12 Christos Zoulas <christos@zoulas.com>
781 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
784 2019-06-12 Christos Zoulas <christos@zoulas.com>
787 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
790 2019-06-11 Christos Zoulas <christos@zoulas.com>
793 * readelf.c (get_alpha_symbol_other): New function.
794 (get_symbol_other): Use for Alpha symbols.
795 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
797 2019-06-11 Christos Zoulas <christos@zoulas.com>
800 * readelf.c (decode_arm_unwind): Ensure that the local variable
801 'addr' is always initialised.
803 2019-06-10 Christos Zoulas <christos@zoulas.com>
806 * strings.c (print_strings): Use %u to print unsigned values in
809 2019-06-10 Christos Zoulas <christos@zoulas.com>
812 * arsup.c (ar_open): Use asprintf in place of xmalloc and
815 2019-06-03 Nick Clifton <nickc@redhat.com>
818 2019-05-29 Nick Clifton <nickc@redhat.com>
820 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
822 (HAVE_LIBCTF): Define if libctf support is available.
823 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
824 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
826 * readelf.c: Likewise.
827 * configure: Regenerate.
828 * Makefile.in: Regenerate.
829 * config.in: Regenerate.
831 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
833 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
835 * readelf.c (shdr_to_ctf_sect): Likewise.
837 2019-05-30 Nick Clifton <nickc@redhat.com>
840 * readelf.c (process_version_sections): Add 0x prefix to address
841 display. Correct indentation.
843 2019-05-30 Alan Modra <amodra@gmail.com>
845 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
846 s12z to targets not supporting this feature.
848 2019-05-30 Alan Modra <amodra@gmail.com>
850 * testsuite/lib/binutils-common.exp (run_dump_test): Support
851 tcl procedures for xfail args.
853 2019-05-29 Nick Clifton <nickc@redhat.com>
855 * README-how-to-make-a-release: Add libctf to list of directories
856 that need updates in their ChangeLogs.
858 2019-05-29 Nick Clifton <nickc@redhat.com>
860 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
862 (HAVE_LIBCTF): Define if libctf support is available.
863 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
864 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
866 * readelf.c: Likewise.
867 * configure: Regenerate.
868 * Makefile.in: Regenerate.
869 * config.in: Regenerate.
871 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
873 * MAINTAINERS: Add myself as CTF maintainer.
875 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
877 * objdump.c (ctf-api.h): New include.
878 (dump_ctf_section_info): New variable.
879 (dump_ctf_section_name): Likewise.
880 (usage): Describe new options.
881 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
882 (main): Use them to add --ctf and --ctf-parent.
883 (read_section_stabs): Add new parameter, entsize_ptr.
884 (find_stabs_section): Adjust accordingly.
886 (dump_ctf_indent_lines): New.
887 (dump_ctf_archive_member): New.
889 (dump_bfd): Call it. Free resources afterwards.
890 * readelf.c (ctf-api.h): New include.
892 (static bfd_boolean do_ctf): Likewise.
893 (dump_ctf_parent_name): Likewise.
894 (dump_ctf_symtab_name): Likewise.
895 (dump_ctf_strtab_name): Likewise.
896 (OPTION_CTF_DUMP): Likewise.
897 (OPTION_CTF_PARENT): Likewise.
898 (OPTION_CTF_SYMBOLS): Likewise.
899 (OPTION_CTF_STRINGS): Likewise.
902 (parse_args): Handle the new options, requesting CTF_DUMP.
903 (process_section_contents): Handle CTF_DUMP.
904 (shdr_to_ctf_sect): New.
905 (dump_ctf_indent_lines): New.
906 (dump_section_as_ctf): New.
907 (main): Free resources.
908 * Makefile.am (LIBCTF): New variable.
909 (objdump_DEPENDENCIES): Use it.
910 (readelf_DEPENDENCIES): Likewise.
911 (objdump_LDADD): Likewise.
912 (readelf_LDADD): Likewise.
913 * aclocal.m4: Regenerated.
914 * Makefile.in: Likewise.
916 * doc/binutils.texi (objdump): Document the new options.
918 * doc/ctf.options.texi: New.
919 * doc/Makefile.in: Regenerated.
920 * NEWS: Mention the new feature.
922 2019-05-27 Alan Modra <amodra@gmail.com>
924 * readelf.c (process_section_groups): Continue processing groups
925 when sh_entsize exceeds group size.
927 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
929 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
930 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
931 (get_symbol_other): Call get_aarch64_symbol_other.
933 2019-05-24 Alan Modra <amodra@gmail.com>
935 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
937 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
939 * MAINTAINERS: Add myself as the maintainer for BPF.
941 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
943 * readelf.c: Include elf/bpf.h.
944 (guess_is_rela): Hanle EM_BPF.
945 (dump_relocations): Likewise.
946 (is_32bit_abs_reloc): Likewise.
947 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
950 2019-05-21 Tamar Christina <tamar.christina@arm.com>
952 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
953 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
954 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
956 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
959 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
960 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
962 2019-05-20 Nick Clifton <nickc@redhat.com>
964 * po/ca.po: Updated Catalan translation.
966 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
968 * NEWS: Mention Armv8.1-M Mainline and MVE.
970 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
972 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
973 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
975 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
978 * objcopy.c: Add new option --verilog-data-width. Use it to set
979 the value of VerilogDataWidth.
980 * doc/binutils.texi: Document the new option.
981 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
982 * testsuite/binutils-all/verilog-1.hex: New file.
983 * testsuite/binutils-all/verilog-2.hex: New file.
984 * testsuite/binutils-all/verilog-4.hex: New file.
985 * testsuite/binutils-all/verilog-8.hex: New file.
986 * NEWS: Mention the new feature.
988 2019-05-10 Alan Modra <amodra@gmail.com>
990 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
991 (test_objdump_content_limited): Add text arg, use in place of .text.
992 (bintest_signed.o): Call get_standard_section_names for name of
995 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
997 * objdump.c (sign_extend_address): New function.
998 (dump_bfd): Sign-extend user-specified start/stop addresses
999 for targets that need it.
1000 * testsuite/binutils-all/objdump.exp: Add tests for objdump
1001 with start and stop addresses in higher address ranges.
1003 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
1005 * testsuite/binutils-all/objdump.exp: Correct executable
1007 * testsuite/binutils-all/compress.exp: Likewise.
1009 2019-05-01 Nick Clifton <nickc@redhat.com>
1012 * nm.c: (print_format): New variable.
1013 (value_format_32bit, value_format_64bit): Delete.
1014 (set_print_radix): Remove code to alter value_format strings.
1015 (set_output_format): Record chosen format in print_format.
1016 (get_print_format): New function - constructs a printf formatting
1017 string according to the requirements of size, radix, and output
1019 (print_value): Use get_print_format.
1020 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
1023 2019-04-30 Alan Modra <amodra@gmail.com>
1025 * wrstabs.c (stab_start_class_type): Add assert to work around
1028 2019-04-24 Nick Clifton <nickc@redhat.com>
1030 * objcopy.c (strip_main): Do not enable note merging by default if
1031 just stripping debug or dwo information.
1032 * doc/binutils.texi (strip): Update documentation.
1034 2019-04-23 Nick Clifton <nickc@redhat.com>
1036 * README-how-to-make-a-release: Add note to update the symbolic
1037 link from "docs" to "docs-2.x" on the sourceware website.
1039 2019-04-16 Alan Modra <amodra@gmail.com>
1041 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
1042 * testsuite/binutils-all/copy-3.d: Likewise.
1044 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1046 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
1048 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1050 * readelf.c (decode_x86_isa): Handle
1051 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
1052 * testsuite/binutils-all/i386/pr21231b.d: Updated.
1053 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
1055 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1057 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
1059 2019-03-26 Tamar Christina <tamar.christina@arm.com>
1061 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
1062 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
1063 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1064 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
1065 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
1066 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
1067 * testsuite/binutils-all/arm/in-order.d: Likewise.
1068 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
1069 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
1070 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
1072 2019-03-26 Nick Clifton <nickc@redhat.com>
1074 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
1077 2019-03-26 Alan Modra <amodra@gmail.com>
1079 * objdump.c (dump_relocs_in_section): Warning fix.
1081 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1083 * testsuite/binutils-all/arm/in-order-all.d: New test.
1084 * testsuite/binutils-all/arm/in-order.d: New test.
1085 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
1086 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
1087 * testsuite/binutils-all/arm/out-of-order.T: New test.
1088 * testsuite/binutils-all/arm/out-of-order.d: New test.
1089 * testsuite/binutils-all/arm/out-of-order.s: New test.
1092 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1094 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
1095 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
1096 * testsuite/binutils-all/aarch64/out-of-order.d:
1098 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1100 * testsuite/binutils-all/aarch64/in-order.d: New test.
1101 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
1104 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1106 * objdump.c (disassemble_bytes): Pass stop_offset.
1107 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
1108 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
1109 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
1111 2019-03-19 Nick Clifton <nickc@redhat.com>
1114 * objdump.c (load_specific_debug_section): Check that the amount
1115 of memory to be allocated matches the size of the section.
1117 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1119 * readelf.c (get_aarch64_dynamic_type): Add case for
1121 (dynamic_section_aarch64_val): Likewise.
1123 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1124 Szabolcs Nagy <szabolcs.nagy@arm.com>
1126 * readelf.c (get_aarch64_dynamic_type): New.
1127 (get_dynamic_type): Use above for EM_AARCH64.
1128 (dynamic_section_aarch64_val): New.
1129 (process_dynamic_section): Use above for EM_AARCH64.
1131 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1133 * readelf.c (decode_aarch64_feature_1_and): New.
1134 (print_gnu_property_note): Add case for AArch64 gnu notes.
1136 2019-03-12 Alan Modra <amodra@gmail.com>
1138 * objdump.c (load_specific_debug_section): Don't compare section
1139 size against file size.
1140 (dump_relocs_in_section): Don't compare reloc size against file size.
1141 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
1143 2019-03-05 Nick Clifton <nickc@redhat.com>
1146 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
1148 2019-03-05 Nick Clifton <nickc@redhat.com>
1150 * po/sv.po: Updated Swedish translation.
1152 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
1155 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
1156 of "lmap" with a "foreach" loop.
1158 2019-03-04 Nick Clifton <nickc@redhat.com>
1161 * objcopy.c (copy_archive): Do not copy thin archives.
1163 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
1165 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
1167 2019-02-25 Nick Clifton <nickc@redhat.com>
1169 * objdump.c (sym_ok): New function.
1170 (find_symbol_for_address): Use new function.
1171 (disassemble_section): Compare sections by name, not pointer.
1172 (dump_dwarf): Move code to initialise byte_get pointer and iterate
1173 over separate debug files from here to ...
1174 (dump_bfd): ... here. Add parameter indicating that a separate
1175 debug info file is being dumped. For main file, pull in the
1176 symbol tables from all separate debug info files.
1177 (display_object): Update call to dump_bfd.
1178 * doc/binutils.texi: Document extened behaviour of the
1179 --dwarf=follow-links option.
1180 * NEWS: Mention this new feature.
1181 * testsuite/binutils-all/objdump.WK2: Update expected output.
1182 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
1183 options and dump file parameters.
1185 * testsuite/binutils-all/objdump.WK3: New file.
1186 * testsuite/binutils-all/readelf.exp: Change expected output for
1188 * testsuite/binutils-all/readelf.wKis: New file.
1190 2019-02-22 Nick Clifton <nickc@redhat.com>
1193 * dwarf.h (struct separate_info): New structure for containing
1194 information on separate debug info files.
1195 * dwarf.c (struct dwo_info): New structure for containing dwo
1197 (first_dwo_info): Chain of dwo_info structures.
1198 (first_separate_file): Chain of separate_info structures.
1199 (separate_debug_file, separate_debug_filename): Delete.
1200 (fetch_alt_indirect_string): Scan all separate debug info files
1201 for the requested string.
1202 (add_dwo_info): New function.
1203 (add_dwo_name): New function.
1204 (add_dwo_dir): New function.
1205 (add_dwo_id: New function.
1206 (free_dwo_info): New function.
1207 (read_and_display_attr_value): Store DWO data using the new
1209 (load_debug_section_with_follow): If necessary, scan the list of
1210 separate debug info files for the requested section.
1211 (add_separate_debug_file): New function.
1212 (load_separate_debug_info): Call add_separate_debug_file to store
1213 the information on the newly loaded file.
1214 (load_dwo_file): Likewise.
1215 (load_separate_debif_file): Rename to load_separate_debug_files.
1216 Change return type to boolean. If following links then attempt to
1217 load all separate debug info files, not just the first one.
1218 (free_debug_memory): Release memory in dwo_info and separate_info
1220 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
1221 * readelf.c (process_object): Likewise.
1222 * doc/debug.options.texi: Update descriptions of links and
1223 follow-links options.
1224 * testsuite/binutils-all/objdump.WK2: Update expected output.
1225 * testsuite/binutils-all/readelf.k2: Likewise.
1226 * NEWS: Announce the new feature.
1228 2019-02-21 Nick Clifton <nickc@redhat.com>
1231 * unwind-ia64.c: Include sysdep.h.
1232 (unw_decode_x1): Check current pointer against end pointer before
1234 (unw_decode_x2): Likewise.
1235 (unw_decode_x3): Likewise.
1236 (unw_decode_x4): Likewise.
1237 (unw_decode_r2): Likewise.
1238 (unw_decode_p2_p5): Likewise.
1239 (unw_decode_p7_p10): Likewise.
1240 (unw_decode): Likewise.
1242 2019-02-20 Nick Clifton <nickc@redhat.com>
1245 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
1248 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
1249 prevent walking off the end of the buffer.
1250 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
1251 (unw_decode_x2): Likewise.
1252 (unw_decode_x3): Likewise.
1253 (unw_decode_x4): Likewise.
1254 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
1255 (unw_decode_r3): Likewise.
1256 (unw_decode_p7_p10): Likewise.
1257 (unw_decode_b2): Likewise.
1258 (unw_decode_b3_x4): Likewise.
1261 * readelf.c (process_mips_specific): Check for an options section
1262 that is too small to even contain a single option.
1265 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
1267 2019-02-20 Alan Modra <amodra@gmail.com>
1271 * readelf.c (get_data): Avoid possibility of overflow when
1272 checking for a read that may extend past end of file.
1273 (process_program_headers): Likewise.
1275 2019-02-20 Alan Modra <amodra@gmail.com>
1278 * objdump.c (dump_bfd_private_header): Print warning if
1279 bfd_print_private_bfd_data returns false.
1281 2019-02-12 Nick Clifton <nickc@redhat.com>
1284 * README-how-to-make-a-release: Use git clean to delete spurious
1285 files from the local source repository.
1287 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1289 * size.c (berkeley_format): Delete.
1290 (enum output_format): New enum.
1291 (selected_output_format): New variable.
1292 (usage): Update to mention GNU format.
1293 (main): Update to extract options, and select format as needed.
1294 Handle GNU format where needed.
1295 (berkeley_sum): Renamed to...
1296 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
1297 (berkeley_format): Renamed to...
1298 (berkeley_or_gnu_format): ...this, and updated to handle both
1300 (print_sizes): Handle GNU format.
1301 * doc/binutils.texi (size): Document new GNU format.
1302 * testsuite/binutils-all/size.exp: Add test of extended
1304 * NEWS: Mention new functionality.
1306 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1308 * doc/binutils.texi (size): Update example output for Berkeley
1311 2019-02-07 Nick Clifton <nickc@redhat.com>
1313 * README-how-to-make-a-release: Add a note about updating the
1314 obsolete targets in the bfd/config.bfd file.
1316 2019-02-04 Nick Clifton <nickc@redhat.com>
1318 * README-how-to-make-a-release: Add more notes on making a release.
1320 2019-01-25 Nick Clifton <nickc@redhat.com>
1323 * readelf.c (process_notes_at): Prevent an illegal memory access
1324 when the note's namesize is zero.
1325 (decode_tic6x_unwind_bytecode): Add code to handle the case where
1326 no registers are specified in a frame pop instruction.
1328 2019-01-25 Nick Clifton <nickc@redhat.com>
1330 * po/bg.po: Updated Bulgarian translation.
1332 2019-01-23 Nick Clifton <nickc@redhat.com>
1334 * po/fr.po: Updated French translation.
1335 * po/pt.po: Updated Portuguese translation.
1337 2019-01-21 Nick Clifton <nickc@redhat.com>
1339 * po/uk.po: Updated Ukranian translation.
1341 2019-01-19 Nick Clifton <nickc@redhat.com>
1343 * configure: Regenerate.
1344 * binutils/po/binutils.pot.
1346 * README-how-to-make-a-release: Update description on how to make
1349 2018-06-24 Nick Clifton <nickc@redhat.com>
1351 2.32 branch created.
1353 2019-01-17 Nick Clifton <nickc@redhat.com>
1355 * objdump.c (disassemble_section): When disassembling from a
1356 symbol only stop at the next symbol if the original symbol was not
1357 a function symbol. Otherwise continue disassembling until a new
1358 function is reached.
1359 * testsuite/binutils-all/objdump.exp: Add tests of extended
1361 * testsuite/binutils-all/disasm.s: New test source file.
1363 2019-01-16 Kito Cheng <kito@andestech.com>
1364 Nelson Chu <nelson@andestech.com>
1366 * readelf.c (get_riscv_section_type_name): New function.
1367 (get_section_type_name): Add handler for RISC-V.
1368 (riscv_attr_tag_t): Declare.
1369 (riscv_attr_tag): New.
1370 (display_riscv_attribute): New function.
1371 (process_attributes): Add handler for RISC-V.
1372 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
1375 2019-01-10 Nick Clifton <nickc@redhat.com>
1378 * objdump.c (sanitize_string): New function. Removes control
1379 characters from symbol names.
1380 (dump_section_header): Use new function.
1381 (objdump_print_symname): Likewise.
1382 (objdump_print_addr_with_sym): Likewise.
1383 (show_line): Likewise.
1384 (disassemble_bytes): Likewise.
1385 (disassemble_section): Likewise.
1386 (load_specific_debug_section): Likewise.
1387 (read_section_stabs): Likewise.
1388 (print_section_stabs): Likewise.
1389 (dump_section): Likewise.
1390 (dump_reloc_set): Likewise.
1391 (dump_relocs_in_section): Likewise.
1392 (dump_bfd): Likewise.
1393 (display_any_bfd): Likewise.
1395 2019-01-09 Nick Clifton <nickc@redhat.com>
1398 * readelf.c (process_archive): Use arch.file_name in error
1399 messages until the qualified name is available.
1401 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1403 * configure: Regenerate.
1405 2019-01-09 Alan Modra <amodra@gmail.com>
1407 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1408 unconditionally to tests needing the option rather than via a
1411 2019-01-08 Nick Clifton <nickc@redhat.com>
1414 * cxxfilt.c (hp_symbol_characters): Delete.
1415 (main): Remove depcreated demangling styles.
1416 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1418 * testsuite/binutils-all/cxxfilt.exp: Use the
1419 --no-strip-underscore option for targets that do prefix their
1420 symbols with underscores.
1421 Update tests to eliminate those that use gnu v2 encoding.
1423 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1426 * testsuite/binutils-all/copy-6.d: New test.
1427 * testsuite/binutils-all/objcopy.exp: Use it.
1429 2019-01-08 Alan Modra <amodra@gmail.com>
1431 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1432 $srcdir/$subdir to source file name if it starts with "./".
1434 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1436 * readelf.c (get_machine_flags): Add RXv3 output.
1438 2019-01-04 Nick Clifton <nickc@redhat.com>
1441 * objdump.c (load_specific_debug_section): Check for integer
1442 overflow before attempting to allocate contents.
1444 2019-01-04 Nick Clifton <nickc@redhat.com>
1447 * objcopy.c (copy_object): Free dhandle after writing out the
1449 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1453 2019-01-01 Alan Modra <amodra@gmail.com>
1455 Update year range in copyright notice of all files.
1457 For older changes see ChangeLog-2018
1459 Copyright (C) 2019 Free Software Foundation, Inc.
1461 Copying and distribution of this file, with or without modification,
1462 are permitted in any medium without royalty provided the copyright
1463 notice and this notice are preserved.
1469 version-control: never