1 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
3 * dwarf.c (regname_internal_riscv): New function.
4 (init_dwarf_regnames_riscv): Use new function.
6 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
8 * dwarf.c (typedef dwarf_regname_lookup_ftype): New typedef.
9 (dwarf_regnames_lookup_func): New static global.
10 (init_dwarf_regnames_i386): Set dwarf_regnames_lookup_func.
11 (init_dwarf_regnames_iamcu): Likewise.
12 (init_dwarf_regnames_x86_64): Likewise.
13 (init_dwarf_regnames_aarch64): Likewise.
14 (init_dwarf_regnames_s390): Likewise.
15 (init_dwarf_regnames_riscv): Likewise.
16 (init_dwarf_regnames_by_elf_machine_code): Reset
17 dwarf_regnames_lookup_func to NULL.
18 (init_dwarf_regnames_by_bfd_arch_and_mach): Likewise.
19 (regname_internal_by_table_only): New function.
20 (regname): Make use of dwarf_regnames_lookup_func.
22 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
24 * dwarf.c (init_dwarf_regnames_i386): Make static.
25 (init_dwarf_regnames_iamcu): Make static.
26 (init_dwarf_regnames_x86_64): Make static.
27 (init_dwarf_regnames_aarch64): Make static.
28 (init_dwarf_regnames_s390): Make static.
29 (init_dwarf_regnames_riscv): Make static.
30 * dwarf.h (init_dwarf_regnames_i386): Delete declaration.
31 (init_dwarf_regnames_iamcu): Delete declaration.
32 (init_dwarf_regnames_x86_64): Delete declaration.
33 (init_dwarf_regnames_aarch64): Delete declaration.
34 (init_dwarf_regnames_s390): Delete declaration.
35 (init_dwarf_regnames_riscv): Delete declaration.
37 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
39 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New
41 * dwarf.h (init_dwarf_regnames_by_bfd_arch_and_mach): Declare.
42 * objdump.c (dump_dwarf): Call new function instead of calling
43 specific initialization routines. Restrucure so that eh_addr_size
44 is still calculated correctly.
46 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
48 * dwarf.c (init_dwarf_regnames): Renamed to...
49 (init_dwarf_regnames_by_elf_machine_code): ...this.
50 * dwarf.h (init_dwarf_regnames): Renamed to...
51 (init_dwarf_regnames_by_elf_machine_code): ...this.
52 * readelf.c (process_file_header): Update call to use new name.
54 2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
56 * dwarf.c (frame_need_space): Compare dwarf_regnames_count against
57 0, and only warn about large numbers of registers if the number is
58 more than the dwarf_regnames_count.
60 2019-11-25 Christian Eggers <ceggers@gmx.de>
62 * objdump.c (disassemble_data): Provide section parameter to
64 (dump_section): likewise
65 (dump_section_header): likewise. Show SEC_ELF_OCTETS flag if set.
67 2019-11-21 Alan Modra <amodra@gmail.com>
70 * size.c (sysv_internal_sizer, sysv_internal_printer): Exclude
71 sections with no flag bits set.
72 * testsuite/binutils-all/size.exp: Allow $CODE$ as a text section.
74 2019-11-21 Nick Clifton <nickc@redhat.com>
76 * objcopy.c (merge_gnu_build_notes): Allow for the possibility
77 that the new notes might actually be larger than the original
80 2019-11-21 Alan Modra <amodra@gmail.com>
82 * testsuite/lib/binutils-common.exp (is_pecoff_format): Rewrite
83 with positive logic and add more target triples.
85 2019-11-19 Alan Modra <amodra@gmail.com>
88 * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives.
90 2019-11-19 Alan Modra <amodra@gmail.com>
93 * objcopy.c (copy_object): For ELF output and non-ELF input without
94 arch, take arch from output file if not given by -B. Don't
95 bfd_get_arch_info when we already have iarch.
97 2019-11-19 Alan Modra <amodra@gmail.com>
100 * objcopy.c (is_nondebug_keep_contents_section): Use bfd_get_flavour.
101 (copy_object): Likewise.
102 (setup_section): Likewise. If flavour of input and output files
103 differ, restrict section flags to the intersection of input and
104 output bfd_applicable_section_flags.
106 2019-11-19 Alan Modra <amodra@gmail.com>
108 * bucomm.c (bfd_nonfatal_message): Add a space between program
111 2019-11-18 Alan Modra <amodra@gmail.com>
114 * prdbg.c (tg_start_class_type): Correct scope of idbuf.
116 2019-11-08 Alan Modra <amodra@gmail.com>
119 * objdump.c (usage): Correct --stop-address description.
121 2019-11-07 Nick Clifton <nickc@redhat.com>
123 * ar.c (open_output_file): Check for filename validity before
124 prefixing with output directory.
125 Display the constructed output filename if in verbose mode.
126 (extract_file): Let open_output_file display the filename.
128 2019-11-07 Nick Clifton <nickc@redhat.com>
130 * objcopy.c (copy_object): Skip note sections that do not have
131 an output section. Always copy note sections, even if no
134 2019-11-06 Christian Eggers <ceggers@gmx.de>
136 * readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add
137 comment. Catch potential integer overflow and fix off by one
138 error whilst checking reloc location against section size.
139 (apply_relocations): Use IN_RANGE macro.
141 2019-11-04 Fangrui Song <maskray@google.com>
143 * objcopy.c (enum option_values): Add OPTION_KEEP_SECTION.
144 (SECTION_CONTEXT_KEEP): Define. Adjust other SECTION_CONTEXT macros.
145 (copy_usage): Describe --keep-section.
146 (strip_usage): Likewise.
147 (copy_main): Handle SECTION_CONTEXT_KEEP.
148 (strip_main): Likewise.
149 (is_strip_section_1): Likewise.
150 * testsuite/binutils-all/objcopy.exp: Add tests.
151 * testsuite/binutils-all/keep-section-1.d: New test driver file.
152 * testsuite/binutils-all/keep-section-2.d: Likewise.
153 * doc/binutils.texi: Document the new feature.
154 * NEWS: Mention the new feature.
156 2019-10-20 Palmer Dabbelt <palmer@sifive.com>
158 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
160 2019-10-30 Fangrui Song <i@maskray.me>
161 Nick Clifton <nickc@redhat.com>
163 * ar.c (emum long option numbers): Declare. Use to provide
164 numerical values for long options.
165 (long_options): Add --output option.
166 (usage): Mention the --output option.
167 (open_output_file): New function. Create a filepath for an output
169 (extract_file): Use open_output_file().
171 * testsuite/binutils-all/ar.exp: Add a test of the new feature.
172 * doc/binutils.texi: Document the new feature.
173 * NEWS: Mention the new feature.
175 2019-10-26 Alan Modra <amodra@gmail.com>
177 * objcopy.c (sort_gnu_build_notes): Correct sort of deleted
180 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
182 * elfedit.c (elf_x86_feature): Report unknown x86 feature.
184 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
186 * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
188 2019-10-25 Nick Clifton <nickc@redhat.com>
190 * objcopy.c (struct merged_note_section): New structure. Used to
191 chain together details of mergeable note sections.
192 (is_merged_note_section): Rename to is_megreable_note_section and
193 return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
196 (objcoopy_internal_note): Add padded_namesz field.
197 (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of
198 the note merging code.
199 (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
200 overlapping notes or adjoining notes.
201 (contained_by, is_deleted_note, is_version_note)
202 (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
203 (merge_gnu_build_notes): Rework. Sort notes into a mergeable
204 order first. Merge them. Then sort them into an ascending
205 address order before writing them out.
206 (copy_object): Handle more than one mergeable note section.
207 * testsuite/binutils-all/note-2-32.d: Update for new merging
209 * testsuite/binutils-all/note-2-32.s: Likewise.
210 * testsuite/binutils-all/note-2-64.d: Likewise.
211 * testsuite/binutils-all/note-2-64.s: Likewise.
212 * testsuite/binutils-all/note-3-32.d: Likewise.
213 * testsuite/binutils-all/note-3-32.s: Likewise.
214 * testsuite/binutils-all/note-3-64.d: Likewise.
215 * testsuite/binutils-all/note-3-64.s: Likewise.
216 * testsuite/binutils-all/note-4-32.d: Likewise.
217 * testsuite/binutils-all/note-4-32.s: Likewise.
218 * testsuite/binutils-all/note-4-64.d: Likewise.
219 * testsuite/binutils-all/note-4-64.s: Likewise.
220 * testsuite/binutils-all/note-6-32.s: New test source file.
221 * testsuite/binutils-all/note-6-64.s: New test source file.
222 * testsuite/binutils-all/note-6-32.d: New test driver file.
223 * testsuite/binutils-all/note-6-64.d: New test driver file.
224 * testsuite/binutils-all/objcopy.exp: Run the new test.
226 2019-10-25 Alan Modra <amodra@gmail.com>
228 * readelf.c (process_program_headers): Check PT_PHDR p_offset
229 as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
231 2019-10-21 Alan Modra <amodra@gmail.com>
235 * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
236 * doc/binutils.texi (extract from archive): Mention
237 restrictions when extracting from archives with full paths.
238 (ar P): Update to current P support.
239 (ar -X32_64): Fix spelling.
241 2019-10-14 Alan Modra <amodra@gmail.com>
243 * objcopy.c (compare_section_lma): Correct comment. Dereference
244 section pointer earlier and lose unnecessary const. Style fixes.
245 Add final sort by id.
247 2019-10-13 Nick Clifton <nickc@redhat.com>
249 * README-how-to-make-a-release: Add a note to reset the
250 development flag back to true after making a point release.
252 2019-10-12 Nick Clifton <nickc@redhat.com>
254 * README-how-to-make-a-release: Tweak a few sections based on the
255 results of the 2.33.1 release.
257 2019-10-11 Nick Clifton <nickc@redhat.com>
259 * po/zh_TW.po: Updated Chinese (traditional) translation.
261 2019-10-09 Alan Modra <amodra@gmail.com>
264 * ar.c (decode_options): Don't try for command options if
265 write_armap or mri_mode is selected.
267 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
269 * readelf.c (display_msp430_gnu_attribute): New.
270 (process_arch_specific): Use msp430 specific handler for GNU
273 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
275 * objdump.c (main): Fix tabdamage.
276 * readelf.c (CTF_DUMP): Likewise.
278 (dump_section_as_ctf): Likewise.
280 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
282 * objdump.c (dump_ctf): Use the default CTF archive member as the
283 parent even when no parent section is specified.
284 (dump_ctf_archive_member): Only import from the parent
285 if this is not the default ".ctf" member.
287 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
289 * Makefile.am (LIBCTF): Mention the .la file.
291 (readelf_DEPENDENCIES): Use it.
292 (readelf_LDADD): Likewise.
293 * Makefile.in: Regenerated.
295 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
297 * readelf.c (dump_ctf_symtab_name): Give default value.
298 (dump_ctf_strtab_name): Likewise.
299 (dump_section_as_ctf): Allow for the null string.
301 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
303 * objdump.c (dump_ctf_archive_member): Dump the CTF header.
304 * readelf.c (dump_section_as_ctf): Likewise.
306 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
309 * objcopy.c (copy_usage): Update description of
310 --set-section-alignment.
311 (copy_main): Interpret numeric argument of --set-section-alignment
312 as a byte alignment, not a power of two alignment.
313 * doc/binutils.texi: Update description of
314 --set-section-alignment.
315 * testsuite/binutils-all/set-section-alignment.d: New test.
316 * testsuite/binutils-all/objcopy.exp: Run the new test.
318 2019-09-30 Alan Modra <amodra@gmail.com>
321 * readelf.c (process_program_headers): Clear dynamic_addr and
322 dynamic_size earlier.
324 2019-09-24 Alan Modra <amodra@gmail.com>
327 * nm.c (print_format_string): New.
328 (get_print_format): Delete saved_format. Move earlier.
329 (set_print_width): Call get_print_format.
330 (print_value): Use print_format_string.
332 2019-09-23 Alan Modra <amodra@gmail.com>
334 * dlltool.c: Include coff-bfd.h.
336 2019-09-23 Alan Modra <amodra@gmail.com>
339 * dwarf.c (get_type_signedness): Delete ineffective pointer
340 comparison check. Properly range check uvalue offset on
342 (read_and_display_attr_value): Range check uvalue offset before
343 calling get_type_signedness.
345 2019-09-20 Alan Modra <amodra@gmail.com>
347 * ar.c (write_archive): Use bfd_set_thin_archive.
349 2019-09-18 Tamar Christina <tamar.christina@arm.com>
351 * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
353 2019-09-18 Alan Modra <amodra@gmail.com>
355 * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
356 * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
357 * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
358 * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
359 throughout for bfd section macro and function changes.
361 2019-09-18 Alan Modra <amodra@gmail.com>
363 * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
364 * objcopy.c: Likewise.
365 * objdump.c: Likewise.
366 * rdcoff.c: Likewise.
367 * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
368 (filter_symbols): Likewise.
370 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
372 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
373 cxxfilt.man and binutils.info.
374 (MAINTAINERCLEANFILES): Remove.
375 * doc/Makefile.in: Re-generate.
377 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
379 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
380 * doc/Makefile.in: Re-generate.
382 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
384 * doc/Makefile.am (install-data-loca): Remove target.
385 (DISTCLEANFILES): Remove variable.
386 * doc/Makefile.in: Re-generate.
388 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
390 * Makefile.in: Re-generate.
391 * configure: Re-generate.
392 * doc/Makefile.in: Re-generate.
394 2019-09-16 Phil Blundell <pb@pbcl.net>
396 * Makefile.in, configure. doc/Makefile.in: Regenerated.
398 2019-09-11 Tom Tromey <tom@tromey.com>
400 * objcopy.c (copy_archive): Update.
401 * bucomm.h (make_tempname, make_tempdir): Make argument const.
402 * bucomm.c (make_tempname, make_tempdir): Make argument const.
404 2019-09-11 Alan Modra <amodra@gmail.com>
407 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
408 lines. Correct max_reloc_offset_into_insn test.
410 2019-09-10 Nick Clifton <nickc@redhat.com>
413 * objdump.c (null_print): New function.
414 (disassemble_bytes): Delete previous_octets local and replace with
415 a test of the max_reloc_offset_into_insn field of the
416 bfd_arch_info structure. If a reloc is a potential match for the
417 next insn, then perform a dummy disassembly in order to calculate
420 2019-09-09 Phil Blundell <pb@pbcl.net>
422 binutils 2.33 branch created.
424 2019-09-06 Alan Modra <amodra@gmail.com>
426 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
427 (print_object_filename_posix, print_archive_filename_bsd),
428 (print_archive_filename_sysv, print_archive_filename_posix),
429 (print_archive_member_bsd, print_archive_member_sysv),
430 (print_archive_member_posix): Constify parameter.
431 (struct output_fns <print_object_filename, print_archive_filename>),
432 (<print_archive_member>): Likewise.
433 * objcopy.c (copy_archive): Add cast for make_tempdir.
435 2019-08-29 Alan Modra <amodra@gmail.com>
437 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
439 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
442 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
443 (struct section_list): Add alignment field.
444 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
445 (copy_options): Add --set-section-alignment.
446 (copy_usage): Describe --set-section-alignment.
447 (find_section_list): Initialise the alignment field.
448 (setup_section): Handle the alignment field.
449 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
450 * doc/binutils.texi: Document the new feature.
451 * NEWS: Mention the new feature.
453 2019-08-28 Nick Clifton <nickc@redhat.com>
456 * objdump.c (source_comment): New static variable.
457 (option_values): Add OPTION_SOURCE_COMMENT.
458 (long_opions): Add --source-comment.
459 (print_line): If source comment is set, use it as a prefix to the
461 (main): Handle OPTION_SOURCE_COMMENT.
462 * doc/binutils.texi: Document the new option.
463 * NEWS: Mention the new feature.
464 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
465 of the -S and --source-comment options.
467 2019-08-27 Nick Clifton <nickc@redhat.com>
470 * dwarf.c (MAX_CU_NESTING): New constant.
471 (level_type_signed): New static array.
472 (skip_attr_bytes): New function.
473 (get_type_signedness): New function.
474 (read_and_print_leb128): New function.
475 (display_discr_list): New function.
476 (read_and_display_attr_value): Add start parameter.
477 Use new functions when handling DW_AT_type and DW_AT_discr_list.
478 (read_and_display_attr): Add start parameter. Pass to
479 read_and_display_attr_value.
480 (process_debug_info): Update call to read_and_display_attr.
481 (display_formatted_table): Likewise.
482 (display_debug_lines_decoded): Likewise. Also add start
484 (display_debug_lines): Likewise.
485 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
487 * testsuite/binutils-all/dwarf-attributes.W: Update expected
490 2019-08-26 Alan Modra <amodra@gmail.com>
493 * debug.c (debug_write_type): Call empty_type for NULL type here..
494 (debug_write_type): ..rather than in just one case here.
496 2019-08-23 Nick Clifton <nickc@redhat.com>
499 * dwarf.c (check_uvalue): New function. Ensures that a block's
501 (read_and_display_attr_value): Use check_value when processsing
502 DW_FORM_block<n> attributes.
504 2019-08-22 Nick Clifton <nickc@redhat.com>
507 * dwarf.c (process_cu_tu_index): Handle the case where a table
508 does not have any columns.
510 2019-08-19 Alan Modra <amodra@gmail.com>
513 * dwarf.c (display_debug_frames): Use the read_cie check and error
514 for augmentation data length.
516 2019-08-17 Alan Modra <amodra@gmail.com>
519 * dwarf.c (comp_addr_base): Dereference args.
521 2019-08-16 Alan Modra <amodra@gmail.com>
525 * readelf.c (get_symbol_version_string): Set sym_info earlier.
527 2019-08-15 Nick Clifton <nickc@redhat.com>
530 * doc/binutils.texi (nm): Document the 'n' symbol type.
532 2019-08-15 Christophe Vidal <support@krizalys.com>
534 * docs/binutils.texi: Fixed notice message disassembler options
535 section of the man page.
537 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
539 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
540 (get_mips_section_type_name): Return MI{S_XHASH name string.
541 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
543 (process_symbol_table): Initialize the .MIPS.xhash section
544 pointer. Adjust the readelf output to support the new section.
545 (process_object): Set the .MIPS.xhash dynamic info to zero.
547 2019-08-09 Tamar Christina <tamar.christina@arm.com>
549 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
550 * testsuite/binutils-all/arm/in-order.d: Likewise.
551 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
552 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
554 2019-08-08 Nick Clifton <nickc@redhat.com>
557 * readelf.c (process_notes_at): Left justify the "Data size"
559 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
560 * testsuite/binutils-all/i386/ibt.d: Likewise.
561 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
562 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
563 * testsuite/binutils-all/i386/shstk.d: Likewise.
564 * testsuite/binutils-all/note-2-32.d: Likewise.
565 * testsuite/binutils-all/note-2-64.d: Likewise.
566 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
567 * testsuite/binutils-all/x86-64/empty.d: Likewise.
568 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
569 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
570 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
571 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
572 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
573 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
574 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
575 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
576 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
577 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
578 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
579 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
580 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
581 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
583 2019-08-08 Nick Clifton <nickc@redhat.com>
585 * testsuite/gentestdlls.c (main): Move declaration of loop
586 variable outside of the for() statement.
588 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
590 * readelf.c (process_note): Mask unknown description data bytes.
592 2019-08-08 Alan Modra <amodra@gmail.com>
594 * readelf.c (get_data): Improve overflow checks.
596 2019-08-07 Nick Clifton <nickc@redhat.com>
599 * doc/binutils.texi: Ensure consistent formating of title strings
600 for man pages. Extend the title of the size man page to be more
603 2019-08-07 Omair Majid <omajid@redhat.com>
605 * testsuite/binutils-all/objdump.exp
606 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
607 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
608 introduced machine types.
609 * testsuite/gentestdlls.c (write_simple_dll): New function.
610 (main): Generate simple and Linux-specific variants of pei-i386
611 and pei-x86-64 files so both can be used by tests.
613 2019-08-07 Alan Modra <amodra@gmail.com>
616 * readelf.c (dump_ia64_unwind): Check that buffer is large
617 enough for "stamp" before reading.
619 2019-08-05 Nick Clifton <nickc@redhat.com>
622 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
623 note being a version note.
624 Remove spurious debugging fprintf.
626 2019-08-05 Nick Clifton <nickc@redhat.com>
629 * readelf.c (apply_relocations): Catch potential integer overflow
630 whilst checking reloc location against section size.
632 2019-08-02 Alan Modra <amodra@gmail.com>
635 * readelf.c (ABSADDR): Delete.
636 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
638 2019-07-29 Martin Liska <mliska@suse.cz>
641 * nm.c (filter_symbols): Set report_plugin_err if
643 (display_rel_file): Report error for a missing LTO plugin.
645 2019-07-26 Alan Modra <amodra@gmail.com>
648 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
649 systems by casting ncols and nslots expressions to size_t. Display
650 number of columns and slots before giving up due to buffer overflow.
651 Use %u to display unsigned ints. Perform more pointer wrap tests.
653 2019-07-25 Tom Tromey <tromey@adacore.com>
656 * dwarf.c (display_debug_names): Display the contents of the
657 augmentation string, if it is printable.
659 2019-07-25 Nick Clifton <nickc@redhat.com>
662 * readelf.c (process_mips_specific): Check for buffer overflow
663 before reading reginfo information.
665 2019-07-24 Nick Clifton <nickc@redhat.com>
668 * ar.c (decode_options): Restart option scanning if no operation
669 is detected and argument remain to be scanned.
671 2019-07-23 Nick Clifton <nickc@redhat.com>
674 * objdump.c (is_relocateable): Delete.
675 (load_specific_debug_section): Test the abfd for relocations
676 directly, rather than relying upon is_relocateable.
677 (dump_dwarf): Delete initlialization of is_relocateable.
679 2019-07-23 Alan Modra <amodra@gmail.com>
681 * readelf.c (get_parisc_segment_type): Split off hpux entries..
682 (get_ia64_segment_type): ..and these..
683 (get_hpux_segment_type): ..to here.
684 (get_segment_type): Condition GNU_MBIND on osabi. Use
685 get_hpux_segment_type.
686 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
687 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
689 2019-07-23 Alan Modra <amodra@gmail.com>
691 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
692 file used to set this variable.
694 2019-07-23 Omar Majid <omajid@redhat.com>
696 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
697 (GENTESTDLLSPROG): Define.
698 (TEST_PROGS): Add GENTESTDLLSPROG.
699 * Makefile.in: Regenerate.
700 * testsuite/binutils-all/objdump.exp
701 (test_objdump_dotnet_assemblies): New proc.
703 * testsuite/gentestdlls.c: New source file.
705 2019-06-28 Nick Clifton <nickc@redhat.com>
708 * objdump.c (slurp_symtab): Fail with a helpful error message if
709 the symbol table is too large. Skip this check for MMO format
712 2019-06-26 Nick Clifton <nickc@redhat.com>
715 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
716 indicate this in the output.
717 (bfd_nonfatal_message): Likewise.
719 2019-06-25 Jan Beulich <jbeulich@suse.com>
721 * readelf.c (dump_ctf_indent_lines): Rename local variable
722 "spaces" to "blanks".
724 2019-06-25 Jan Beulich <jbeulich@suse.com>
726 * objdump.c (dump_ctf_indent_lines): Rename local variable
727 "spaces" to "blanks".
729 2019-06-14 Alan Modra <amodra@gmail.com>
731 * Makefile.in: Regenerate.
732 * aclocal.m4: Regenerate.
733 * doc/Makefile.in: Regenerate.
735 2019-06-12 Christos Zoulas <christos@zoulas.com>
738 * readelf.c (process_netbsd_elf_note): Add support for
740 (process_note): Add support for PaX notes.
742 2019-06-12 Christos Zoulas <christos@zoulas.com>
745 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
748 2019-06-12 Christos Zoulas <christos@zoulas.com>
751 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
754 2019-06-11 Christos Zoulas <christos@zoulas.com>
757 * readelf.c (get_alpha_symbol_other): New function.
758 (get_symbol_other): Use for Alpha symbols.
759 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
761 2019-06-11 Christos Zoulas <christos@zoulas.com>
764 * readelf.c (decode_arm_unwind): Ensure that the local variable
765 'addr' is always initialised.
767 2019-06-10 Christos Zoulas <christos@zoulas.com>
770 * strings.c (print_strings): Use %u to print unsigned values in
773 2019-06-10 Christos Zoulas <christos@zoulas.com>
776 * arsup.c (ar_open): Use asprintf in place of xmalloc and
779 2019-06-03 Nick Clifton <nickc@redhat.com>
782 2019-05-29 Nick Clifton <nickc@redhat.com>
784 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
786 (HAVE_LIBCTF): Define if libctf support is available.
787 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
788 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
790 * readelf.c: Likewise.
791 * configure: Regenerate.
792 * Makefile.in: Regenerate.
793 * config.in: Regenerate.
795 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
797 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
799 * readelf.c (shdr_to_ctf_sect): Likewise.
801 2019-05-30 Nick Clifton <nickc@redhat.com>
804 * readelf.c (process_version_sections): Add 0x prefix to address
805 display. Correct indentation.
807 2019-05-30 Alan Modra <amodra@gmail.com>
809 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
810 s12z to targets not supporting this feature.
812 2019-05-30 Alan Modra <amodra@gmail.com>
814 * testsuite/lib/binutils-common.exp (run_dump_test): Support
815 tcl procedures for xfail args.
817 2019-05-29 Nick Clifton <nickc@redhat.com>
819 * README-how-to-make-a-release: Add libctf to list of directories
820 that need updates in their ChangeLogs.
822 2019-05-29 Nick Clifton <nickc@redhat.com>
824 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
826 (HAVE_LIBCTF): Define if libctf support is available.
827 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
828 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
830 * readelf.c: Likewise.
831 * configure: Regenerate.
832 * Makefile.in: Regenerate.
833 * config.in: Regenerate.
835 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
837 * MAINTAINERS: Add myself as CTF maintainer.
839 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
841 * objdump.c (ctf-api.h): New include.
842 (dump_ctf_section_info): New variable.
843 (dump_ctf_section_name): Likewise.
844 (usage): Describe new options.
845 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
846 (main): Use them to add --ctf and --ctf-parent.
847 (read_section_stabs): Add new parameter, entsize_ptr.
848 (find_stabs_section): Adjust accordingly.
850 (dump_ctf_indent_lines): New.
851 (dump_ctf_archive_member): New.
853 (dump_bfd): Call it. Free resources afterwards.
854 * readelf.c (ctf-api.h): New include.
856 (static bfd_boolean do_ctf): Likewise.
857 (dump_ctf_parent_name): Likewise.
858 (dump_ctf_symtab_name): Likewise.
859 (dump_ctf_strtab_name): Likewise.
860 (OPTION_CTF_DUMP): Likewise.
861 (OPTION_CTF_PARENT): Likewise.
862 (OPTION_CTF_SYMBOLS): Likewise.
863 (OPTION_CTF_STRINGS): Likewise.
866 (parse_args): Handle the new options, requesting CTF_DUMP.
867 (process_section_contents): Handle CTF_DUMP.
868 (shdr_to_ctf_sect): New.
869 (dump_ctf_indent_lines): New.
870 (dump_section_as_ctf): New.
871 (main): Free resources.
872 * Makefile.am (LIBCTF): New variable.
873 (objdump_DEPENDENCIES): Use it.
874 (readelf_DEPENDENCIES): Likewise.
875 (objdump_LDADD): Likewise.
876 (readelf_LDADD): Likewise.
877 * aclocal.m4: Regenerated.
878 * Makefile.in: Likewise.
880 * doc/binutils.texi (objdump): Document the new options.
882 * doc/ctf.options.texi: New.
883 * doc/Makefile.in: Regenerated.
884 * NEWS: Mention the new feature.
886 2019-05-27 Alan Modra <amodra@gmail.com>
888 * readelf.c (process_section_groups): Continue processing groups
889 when sh_entsize exceeds group size.
891 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
893 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
894 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
895 (get_symbol_other): Call get_aarch64_symbol_other.
897 2019-05-24 Alan Modra <amodra@gmail.com>
899 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
901 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
903 * MAINTAINERS: Add myself as the maintainer for BPF.
905 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
907 * readelf.c: Include elf/bpf.h.
908 (guess_is_rela): Hanle EM_BPF.
909 (dump_relocations): Likewise.
910 (is_32bit_abs_reloc): Likewise.
911 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
914 2019-05-21 Tamar Christina <tamar.christina@arm.com>
916 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
917 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
918 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
920 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
923 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
924 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
926 2019-05-20 Nick Clifton <nickc@redhat.com>
928 * po/ca.po: Updated Catalan translation.
930 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
932 * NEWS: Mention Armv8.1-M Mainline and MVE.
934 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
936 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
937 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
939 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
942 * objcopy.c: Add new option --verilog-data-width. Use it to set
943 the value of VerilogDataWidth.
944 * doc/binutils.texi: Document the new option.
945 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
946 * testsuite/binutils-all/verilog-1.hex: New file.
947 * testsuite/binutils-all/verilog-2.hex: New file.
948 * testsuite/binutils-all/verilog-4.hex: New file.
949 * testsuite/binutils-all/verilog-8.hex: New file.
950 * NEWS: Mention the new feature.
952 2019-05-10 Alan Modra <amodra@gmail.com>
954 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
955 (test_objdump_content_limited): Add text arg, use in place of .text.
956 (bintest_signed.o): Call get_standard_section_names for name of
959 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
961 * objdump.c (sign_extend_address): New function.
962 (dump_bfd): Sign-extend user-specified start/stop addresses
963 for targets that need it.
964 * testsuite/binutils-all/objdump.exp: Add tests for objdump
965 with start and stop addresses in higher address ranges.
967 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
969 * testsuite/binutils-all/objdump.exp: Correct executable
971 * testsuite/binutils-all/compress.exp: Likewise.
973 2019-05-01 Nick Clifton <nickc@redhat.com>
976 * nm.c: (print_format): New variable.
977 (value_format_32bit, value_format_64bit): Delete.
978 (set_print_radix): Remove code to alter value_format strings.
979 (set_output_format): Record chosen format in print_format.
980 (get_print_format): New function - constructs a printf formatting
981 string according to the requirements of size, radix, and output
983 (print_value): Use get_print_format.
984 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
987 2019-04-30 Alan Modra <amodra@gmail.com>
989 * wrstabs.c (stab_start_class_type): Add assert to work around
992 2019-04-24 Nick Clifton <nickc@redhat.com>
994 * objcopy.c (strip_main): Do not enable note merging by default if
995 just stripping debug or dwo information.
996 * doc/binutils.texi (strip): Update documentation.
998 2019-04-23 Nick Clifton <nickc@redhat.com>
1000 * README-how-to-make-a-release: Add note to update the symbolic
1001 link from "docs" to "docs-2.x" on the sourceware website.
1003 2019-04-16 Alan Modra <amodra@gmail.com>
1005 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
1006 * testsuite/binutils-all/copy-3.d: Likewise.
1008 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1010 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
1012 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1014 * readelf.c (decode_x86_isa): Handle
1015 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
1016 * testsuite/binutils-all/i386/pr21231b.d: Updated.
1017 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
1019 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1021 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
1023 2019-03-26 Tamar Christina <tamar.christina@arm.com>
1025 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
1026 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
1027 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1028 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
1029 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
1030 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
1031 * testsuite/binutils-all/arm/in-order.d: Likewise.
1032 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
1033 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
1034 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
1036 2019-03-26 Nick Clifton <nickc@redhat.com>
1038 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
1041 2019-03-26 Alan Modra <amodra@gmail.com>
1043 * objdump.c (dump_relocs_in_section): Warning fix.
1045 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1047 * testsuite/binutils-all/arm/in-order-all.d: New test.
1048 * testsuite/binutils-all/arm/in-order.d: New test.
1049 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
1050 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
1051 * testsuite/binutils-all/arm/out-of-order.T: New test.
1052 * testsuite/binutils-all/arm/out-of-order.d: New test.
1053 * testsuite/binutils-all/arm/out-of-order.s: New test.
1056 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1058 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
1059 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
1060 * testsuite/binutils-all/aarch64/out-of-order.d:
1062 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1064 * testsuite/binutils-all/aarch64/in-order.d: New test.
1065 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
1068 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1070 * objdump.c (disassemble_bytes): Pass stop_offset.
1071 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
1072 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
1073 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
1075 2019-03-19 Nick Clifton <nickc@redhat.com>
1078 * objdump.c (load_specific_debug_section): Check that the amount
1079 of memory to be allocated matches the size of the section.
1081 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1083 * readelf.c (get_aarch64_dynamic_type): Add case for
1085 (dynamic_section_aarch64_val): Likewise.
1087 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1088 Szabolcs Nagy <szabolcs.nagy@arm.com>
1090 * readelf.c (get_aarch64_dynamic_type): New.
1091 (get_dynamic_type): Use above for EM_AARCH64.
1092 (dynamic_section_aarch64_val): New.
1093 (process_dynamic_section): Use above for EM_AARCH64.
1095 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1097 * readelf.c (decode_aarch64_feature_1_and): New.
1098 (print_gnu_property_note): Add case for AArch64 gnu notes.
1100 2019-03-12 Alan Modra <amodra@gmail.com>
1102 * objdump.c (load_specific_debug_section): Don't compare section
1103 size against file size.
1104 (dump_relocs_in_section): Don't compare reloc size against file size.
1105 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
1107 2019-03-05 Nick Clifton <nickc@redhat.com>
1110 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
1112 2019-03-05 Nick Clifton <nickc@redhat.com>
1114 * po/sv.po: Updated Swedish translation.
1116 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
1119 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
1120 of "lmap" with a "foreach" loop.
1122 2019-03-04 Nick Clifton <nickc@redhat.com>
1125 * objcopy.c (copy_archive): Do not copy thin archives.
1127 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
1129 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
1131 2019-02-25 Nick Clifton <nickc@redhat.com>
1133 * objdump.c (sym_ok): New function.
1134 (find_symbol_for_address): Use new function.
1135 (disassemble_section): Compare sections by name, not pointer.
1136 (dump_dwarf): Move code to initialise byte_get pointer and iterate
1137 over separate debug files from here to ...
1138 (dump_bfd): ... here. Add parameter indicating that a separate
1139 debug info file is being dumped. For main file, pull in the
1140 symbol tables from all separate debug info files.
1141 (display_object): Update call to dump_bfd.
1142 * doc/binutils.texi: Document extened behaviour of the
1143 --dwarf=follow-links option.
1144 * NEWS: Mention this new feature.
1145 * testsuite/binutils-all/objdump.WK2: Update expected output.
1146 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
1147 options and dump file parameters.
1149 * testsuite/binutils-all/objdump.WK3: New file.
1150 * testsuite/binutils-all/readelf.exp: Change expected output for
1152 * testsuite/binutils-all/readelf.wKis: New file.
1154 2019-02-22 Nick Clifton <nickc@redhat.com>
1157 * dwarf.h (struct separate_info): New structure for containing
1158 information on separate debug info files.
1159 * dwarf.c (struct dwo_info): New structure for containing dwo
1161 (first_dwo_info): Chain of dwo_info structures.
1162 (first_separate_file): Chain of separate_info structures.
1163 (separate_debug_file, separate_debug_filename): Delete.
1164 (fetch_alt_indirect_string): Scan all separate debug info files
1165 for the requested string.
1166 (add_dwo_info): New function.
1167 (add_dwo_name): New function.
1168 (add_dwo_dir): New function.
1169 (add_dwo_id: New function.
1170 (free_dwo_info): New function.
1171 (read_and_display_attr_value): Store DWO data using the new
1173 (load_debug_section_with_follow): If necessary, scan the list of
1174 separate debug info files for the requested section.
1175 (add_separate_debug_file): New function.
1176 (load_separate_debug_info): Call add_separate_debug_file to store
1177 the information on the newly loaded file.
1178 (load_dwo_file): Likewise.
1179 (load_separate_debif_file): Rename to load_separate_debug_files.
1180 Change return type to boolean. If following links then attempt to
1181 load all separate debug info files, not just the first one.
1182 (free_debug_memory): Release memory in dwo_info and separate_info
1184 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
1185 * readelf.c (process_object): Likewise.
1186 * doc/debug.options.texi: Update descriptions of links and
1187 follow-links options.
1188 * testsuite/binutils-all/objdump.WK2: Update expected output.
1189 * testsuite/binutils-all/readelf.k2: Likewise.
1190 * NEWS: Announce the new feature.
1192 2019-02-21 Nick Clifton <nickc@redhat.com>
1195 * unwind-ia64.c: Include sysdep.h.
1196 (unw_decode_x1): Check current pointer against end pointer before
1198 (unw_decode_x2): Likewise.
1199 (unw_decode_x3): Likewise.
1200 (unw_decode_x4): Likewise.
1201 (unw_decode_r2): Likewise.
1202 (unw_decode_p2_p5): Likewise.
1203 (unw_decode_p7_p10): Likewise.
1204 (unw_decode): Likewise.
1206 2019-02-20 Nick Clifton <nickc@redhat.com>
1209 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
1212 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
1213 prevent walking off the end of the buffer.
1214 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
1215 (unw_decode_x2): Likewise.
1216 (unw_decode_x3): Likewise.
1217 (unw_decode_x4): Likewise.
1218 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
1219 (unw_decode_r3): Likewise.
1220 (unw_decode_p7_p10): Likewise.
1221 (unw_decode_b2): Likewise.
1222 (unw_decode_b3_x4): Likewise.
1225 * readelf.c (process_mips_specific): Check for an options section
1226 that is too small to even contain a single option.
1229 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
1231 2019-02-20 Alan Modra <amodra@gmail.com>
1235 * readelf.c (get_data): Avoid possibility of overflow when
1236 checking for a read that may extend past end of file.
1237 (process_program_headers): Likewise.
1239 2019-02-20 Alan Modra <amodra@gmail.com>
1242 * objdump.c (dump_bfd_private_header): Print warning if
1243 bfd_print_private_bfd_data returns false.
1245 2019-02-12 Nick Clifton <nickc@redhat.com>
1248 * README-how-to-make-a-release: Use git clean to delete spurious
1249 files from the local source repository.
1251 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1253 * size.c (berkeley_format): Delete.
1254 (enum output_format): New enum.
1255 (selected_output_format): New variable.
1256 (usage): Update to mention GNU format.
1257 (main): Update to extract options, and select format as needed.
1258 Handle GNU format where needed.
1259 (berkeley_sum): Renamed to...
1260 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
1261 (berkeley_format): Renamed to...
1262 (berkeley_or_gnu_format): ...this, and updated to handle both
1264 (print_sizes): Handle GNU format.
1265 * doc/binutils.texi (size): Document new GNU format.
1266 * testsuite/binutils-all/size.exp: Add test of extended
1268 * NEWS: Mention new functionality.
1270 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1272 * doc/binutils.texi (size): Update example output for Berkeley
1275 2019-02-07 Nick Clifton <nickc@redhat.com>
1277 * README-how-to-make-a-release: Add a note about updating the
1278 obsolete targets in the bfd/config.bfd file.
1280 2019-02-04 Nick Clifton <nickc@redhat.com>
1282 * README-how-to-make-a-release: Add more notes on making a release.
1284 2019-01-25 Nick Clifton <nickc@redhat.com>
1287 * readelf.c (process_notes_at): Prevent an illegal memory access
1288 when the note's namesize is zero.
1289 (decode_tic6x_unwind_bytecode): Add code to handle the case where
1290 no registers are specified in a frame pop instruction.
1292 2019-01-25 Nick Clifton <nickc@redhat.com>
1294 * po/bg.po: Updated Bulgarian translation.
1296 2019-01-23 Nick Clifton <nickc@redhat.com>
1298 * po/fr.po: Updated French translation.
1299 * po/pt.po: Updated Portuguese translation.
1301 2019-01-21 Nick Clifton <nickc@redhat.com>
1303 * po/uk.po: Updated Ukranian translation.
1305 2019-01-19 Nick Clifton <nickc@redhat.com>
1307 * configure: Regenerate.
1308 * binutils/po/binutils.pot.
1310 * README-how-to-make-a-release: Update description on how to make
1313 2018-06-24 Nick Clifton <nickc@redhat.com>
1315 2.32 branch created.
1317 2019-01-17 Nick Clifton <nickc@redhat.com>
1319 * objdump.c (disassemble_section): When disassembling from a
1320 symbol only stop at the next symbol if the original symbol was not
1321 a function symbol. Otherwise continue disassembling until a new
1322 function is reached.
1323 * testsuite/binutils-all/objdump.exp: Add tests of extended
1325 * testsuite/binutils-all/disasm.s: New test source file.
1327 2019-01-16 Kito Cheng <kito@andestech.com>
1328 Nelson Chu <nelson@andestech.com>
1330 * readelf.c (get_riscv_section_type_name): New function.
1331 (get_section_type_name): Add handler for RISC-V.
1332 (riscv_attr_tag_t): Declare.
1333 (riscv_attr_tag): New.
1334 (display_riscv_attribute): New function.
1335 (process_attributes): Add handler for RISC-V.
1336 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
1339 2019-01-10 Nick Clifton <nickc@redhat.com>
1342 * objdump.c (sanitize_string): New function. Removes control
1343 characters from symbol names.
1344 (dump_section_header): Use new function.
1345 (objdump_print_symname): Likewise.
1346 (objdump_print_addr_with_sym): Likewise.
1347 (show_line): Likewise.
1348 (disassemble_bytes): Likewise.
1349 (disassemble_section): Likewise.
1350 (load_specific_debug_section): Likewise.
1351 (read_section_stabs): Likewise.
1352 (print_section_stabs): Likewise.
1353 (dump_section): Likewise.
1354 (dump_reloc_set): Likewise.
1355 (dump_relocs_in_section): Likewise.
1356 (dump_bfd): Likewise.
1357 (display_any_bfd): Likewise.
1359 2019-01-09 Nick Clifton <nickc@redhat.com>
1362 * readelf.c (process_archive): Use arch.file_name in error
1363 messages until the qualified name is available.
1365 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1367 * configure: Regenerate.
1369 2019-01-09 Alan Modra <amodra@gmail.com>
1371 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1372 unconditionally to tests needing the option rather than via a
1375 2019-01-08 Nick Clifton <nickc@redhat.com>
1378 * cxxfilt.c (hp_symbol_characters): Delete.
1379 (main): Remove depcreated demangling styles.
1380 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1382 * testsuite/binutils-all/cxxfilt.exp: Use the
1383 --no-strip-underscore option for targets that do prefix their
1384 symbols with underscores.
1385 Update tests to eliminate those that use gnu v2 encoding.
1387 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1390 * testsuite/binutils-all/copy-6.d: New test.
1391 * testsuite/binutils-all/objcopy.exp: Use it.
1393 2019-01-08 Alan Modra <amodra@gmail.com>
1395 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1396 $srcdir/$subdir to source file name if it starts with "./".
1398 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1400 * readelf.c (get_machine_flags): Add RXv3 output.
1402 2019-01-04 Nick Clifton <nickc@redhat.com>
1405 * objdump.c (load_specific_debug_section): Check for integer
1406 overflow before attempting to allocate contents.
1408 2019-01-04 Nick Clifton <nickc@redhat.com>
1411 * objcopy.c (copy_object): Free dhandle after writing out the
1413 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1417 2019-01-01 Alan Modra <amodra@gmail.com>
1419 Update year range in copyright notice of all files.
1421 For older changes see ChangeLog-2018
1423 Copyright (C) 2019 Free Software Foundation, Inc.
1425 Copying and distribution of this file, with or without modification,
1426 are permitted in any medium without royalty provided the copyright
1427 notice and this notice are preserved.
1433 version-control: never