1 2020-07-09 Alan Modra <amodra@gmail.com>
3 * dlltool.c: Remove powerpc PE support and comments.
4 * configure.ac: Remove powerpc PE dlltool config.
5 * configure: Regenerate.
7 2020-07-09 Nick Clifton <nickc@redhat.com>
9 * rclex.c: Add OWNERDRAW keyword.
10 * rcparse.y: Add OWNERDRAW token.
11 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
12 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
14 * windres.c (extended_menuitems): Likewise.
15 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
17 2020-07-09 Alan Modra <amodra@gmail.com>
19 * readelf (slurp_hppa_unwind_table): Set table_len before use
20 in relocation sanity checks.
22 2020-07-07 Alan Modra <amodra@gmail.com>
24 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
25 * testsuite/binutils-all/nm.exp: Likewise.
26 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
27 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
28 * testsuite/binutils-all/set-section-alignment.d: Likewise.
29 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
31 2020-07-07 Alan Modra <amodra@gmail.com>
33 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
34 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
36 2020-07-06 Nick Clifton <nickc@redhat.com>
38 * po/bg.po: Updated Bulgarian translation.
39 * po/pt.po: Updated Portuguese translation.
40 * po/uk.po: Updated Ukranian translation.
42 2020-07-06 Alan Modra <amodra@gmail.com>
44 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
47 2020-07-04 Nick Clifton <nickc@redhat.com>
49 * configure: Regenerate.
50 * po/binutils.pot: Regenerate.
52 2020-07-04 Nick Clifton <nickc@redhat.com>
54 Binutils 2.35 branch created.
56 2020-07-02 Nick Clifton <nickc@redhat.com>
59 * readelf.c (print_symbol): Handle truncation of symbol names.
60 (options): Add -T/--silent-truncation option.
61 (parse_args): Handle the option.
62 (print_dynamic_symbol): Correct calculation of width available to
64 * doc/binutils.texi: Document the -T option to readelf.
65 * NEWS: Mention the new feature.
67 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
69 * NEWS: Mention x86 NaCl target support removal.
70 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
71 x86 NaCl target support.
72 * testsuite/binutils-all/elfedit-1.d: Likewise.
73 * testsuite/binutils-all/i386/i386.exp: Likewise.
74 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
75 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
76 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
77 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
78 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
79 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
80 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
81 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
82 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
83 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
84 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
85 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
87 2020-06-30 Nick Clifton <nickc@redhat.com>
89 * dwarf.c (read_and_display_attr_value): Support
90 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
93 2020-06-30 Alan Modra <amodra@gmail.com>
95 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
98 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
100 * dwarf.c (display_debug_str_offsets): Rename local variable
101 index to idx. Move to top of function.
103 2020-06-29 Alan Modra <amodra@gmail.com>
105 * dwarf.c: Use C style comments.
108 2020-06-27 Alan Modra <amodra@gmail.com>
110 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
112 (release_archive): Set fields of arch to NULL after freeing.
114 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
116 * readelf.c (dump_section_as_ctf): Support .ctf archives using
117 ctf_arc_bufopen. Automatically load the .ctf member of such
118 archives as the parent of all other members, unless specifically
119 overridden via --ctf-parent. Split out dumping code into...
120 (dump_ctf_archive_member): ... here, as in objdump, and call
121 it once per archive member.
122 (dump_ctf_indent_lines): Code style fix.
124 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
126 * configure.ac [--enable-libctf]: New, default yes.
127 Set ENABLE_LIBCTF accordingly.
128 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
129 * configure: Regenerate.
130 * config.in: Regenerate.
131 * Makefile.in: Regenerate.
132 * aclocal.m4: Regenerate.
133 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
134 (option_values): Likewise.
135 (long_options): Likewise.
137 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
138 (make_ctfsect): Likewise.
139 (dump_ctf_archive_member): Likewise.
140 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
141 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
142 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
144 (process_section_contents): Likewise.
145 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
146 (dump_ctf_indent_lines): Likewise.
147 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
149 2020-06-26 Jan Beulich <jbeulich@suse.com>
151 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
152 redundant text from x86 specific part of -M section.
154 2020-06-26 Pat Bernardi <bernardi@adacore.com>
156 * readelf.c (display_m68k_gnu_attribute): New function.
157 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
159 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
162 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
163 * testsuite/binutils-all/pr26160.r: Likewise.
164 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
166 2020-06-23 Nick Clifton <nickc@redhat.com>
169 * dwarf.c (fetch_indexed_string): Detect and handle old style
170 .debug_str_offset tables.
171 (display_debug_str_offsets): Likewise. Also add support for
172 .debug_str_offsets.dwo sections.
174 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
177 * testsuite/binutils-all/pr26112.o.bz2: New file.
178 * testsuite/binutils-all/pr26112.r: Likewise.
179 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
181 2020-06-23 Alan Modra <amodra@gmail.com>
183 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
184 remote_file delete command.
186 2020-06-22 Nick Clifton <nickc@redhat.com>
189 * dwarf.c (display_debug_str_offsets): Add code to display the
190 contents of the .debug_str_offsets section.
191 (display_debug_macro): Add support for DW_MACRO_define_strx and
194 2020-06-22 Saagar Jha <saagar@saagarjha.com>
196 * od-macho.c: Dump linkedit data for new load commands.
198 2020-06-19 Alan Modra <amodra@gmail.com>
200 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
201 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
202 (run_dump_test): Use check_relro_support to decide whether to pass
203 extra ld option "-z norelro".
205 2020-06-11 Alan Modra <amodra@gmail.com>
207 * readelf.c (process_mips_specific): Don't alloc memory for
208 Elf_Internal_Options.
210 2020-06-11 Alan Modra <amodra@gmail.com>
212 * readelf.c (process_mips_specific): Assert size of internal
213 types match size of external types, and simplify allocation of
214 internal buffer. Catch possible integer overflow when sanity
215 checking option size. Don't assume options are a regular array.
216 Sanity check reginfo option against option size. Use PRI macros
219 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
222 * mclex.c (yylex): Reject lines that reach end-of-file without a
223 terminating newline character.
225 2020-06-08 Nick Clifton <nickc@redhat.com>
228 * doc/binutils.texi (strings): Fix typo.
230 2020-06-08 Nick Clifton <nickc@redhat.com>
233 * dwarf.c (process_debug_info): Check that there is space in the
234 debug_information array before filling in an entry.
236 2020-06-06 Alan Modra <amodra@gmail.com>
238 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
240 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
243 * mclex.c (yylex): Add test for an empty input stream.
245 2020-06-04 Stephen Casner <casner@acm.org>
247 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
248 for test using section pseudo-ops compatible with pdp11.
249 * testsuite/binutils-all/objcopy.exp: Select alternate source.
251 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
253 * objdump.c (disassemble_data): Set disasm_info.endian_code to
254 disasm_info.endian after the latter is initialized to the
255 endianness reported by BFD.
257 2020-06-04 Alan Modra <amodra@gmail.com>
259 * testsuite/binutils-all/i386/i386.exp: Remove global directive
261 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
262 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
264 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
266 * windmc.h (struct mc_node): Add id_typecast field.
267 * mcparse.y (message): Initialise the id_typecast field.
268 * windmc.c (write_dbg): Use the id_typecast field as a parameter
269 when calling write_dbg_define.
270 (write_header): Likewise.
272 2020-06-03 Alan Modra <amodra@gmail.com>
275 * objcopy.c (copy_relocations_in_section): Free relpp on error.
276 Don't accidentally free isection->orelocation.
278 2020-06-02 Alan Modra <amodra@gmail.com>
280 * testsuite/binutils-all/ar.exp (obj): Set up object file name
281 extension. Use throughout. Don't completely exclude non-ELF
282 alpha targets. Run long_filenames test for tic30. Exclude thin
283 archive tests for aix, ecoff and vms.
284 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
285 extension. Use throughout. Don't exclude non-ELF alpha targets
288 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
290 * MAINTAINERS (Xtensa): Add myself as maintainer.
292 2020-05-23 Alan Modra <amodra@gmail.com>
294 * testsuite/binutils-all/ar.exp (many_files): New test.
296 2020-05-21 Alan Modra <amodra@gmail.com>
298 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
299 * dlltool.c: Likewise.
300 * elfcomm.c: Likewise.
302 * readelf.c: Likewise.
304 * windmc.c: Likewise.
305 * windres.c: Likewise.
306 * wrstabs.c: Likewise.
308 2020-05-21 Alan Modra <amodra@gmail.com>
310 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
313 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
315 * dwarf.c: Updated since DECLARE_CSR is changed.
317 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
320 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
321 segment doesn't match the .dynamic section and checks are
323 (struct filedata): Add dynamic_symtab_section and
324 dynamic_strtab_section fields.
325 (process_section_headers): Set dynamic_symtab_section to the
326 .dynsym section. Set dynamic_strtab_section to the .dynstr
328 (process_dynamic_section): Warn if the .dynsym section doesn't
329 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
330 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
332 2020-05-19 Alan Modra <amodra@gmail.com>
334 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
335 (replace_members): Use bfd_get_filename rather than accessing
336 bfd->filename directly.
337 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
338 * binemul.c (do_ar_emul_append): Likewise.
339 * coffgrok.c (coff_grok): Likewise.
341 2020-05-18 Stafford Horne <shorne@gmail.com>
343 * MAINTAINERS (OR1K): Add myself as maintainer.
345 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
347 * doc/binutils.texi: Mention 'entry address' in the set-start and
348 adjust-start options descriptions.
350 2020-05-05 Nick Clifton <nickc@redhat.com>
352 * dwarf.c (do_checks): New global variable.
353 (display_formatted_table): Warn about an unexpected number of
354 columns in the table, if checks are enabled. Do not complain
355 about the lack of data following the number of entries in the
356 table if the table is empty.
357 (display_debug_lines_decoded): Only warn about an unexpected
358 number of columns in a table if checks are enabled.
359 * dwarf.h (do_checks): Add a prototype.
360 * elfcomm.c (error): Remove weak attribute.
362 * readelf.c (do_checks): Delete.
364 (process_section_headers): Only warn about empty sections if
367 2020-05-04 Fangrui Song <maskray@google.com>
369 * objcopy.c (copy_object): Allow empty section.
370 * testsuite/binutils-all/update-section.exp: Add test.
372 2020-05-04 Nick Clifton <nickc@redhat.com>
375 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
376 supicious number of entries for DWARF-5 format directory and file
377 name tables. Do not display file name table header if the table
378 is empty. Do not allocate space for empty tables.
380 2020-05-04 Alan Modra <amodra@gmail.com>
382 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
383 section. Don't assume endian of host matches nds32 target. Free
386 2020-05-01 Alan Modra <amodra@gmail.com>
387 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
389 * objdump.c (disassemble_bytes): Don't scan for zeros when
390 disassembling zeros. Translate "resuming at file offset" message.
391 Formatting. Replace some signed variables with unsigned.
393 2020-04-30 Alex Coplan <alex.coplan@arm.com>
395 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
397 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
399 2020-04-30 Nick Clifton <nickc@redhat.com>
401 * testsuite/lib/binutils-common.exp (check_pie_support): New
404 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
406 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
407 range_entries for the same offset.
409 2020-04-29 Nick Clifton <nickc@redhat.com>
411 * readelf.c (warn): New function - like elfcomm.c version but only
412 produces output if warnings are enabled.
413 (struct options): Add --lint and --enable-checks.
414 (usage): Add entry for --lint.
415 (parse_args): Handle -L. If checks are enabled but no dumps have
416 been selected then enable all dumps.
417 (process_section_headers): Replace long if-then-else sequence with
418 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
419 SHT_PROGBITS sections.
420 (process_file): Do not complain if the file is an archive and lint
421 mode has been enabled.
422 * elfcomm.c (error): Make the function weak.
424 * NEWS: Mention the new feature.
425 * doc/binutils.texi: Document the new feature.
426 * dwarf.h (report_leb_status): Add file name and line number
427 parameters. Include them in the diagnostic output.
428 (READ_ULEB): Pass file and line number to report_leb_status.
429 (READ_SLEB): Likewise.
430 * dwarf.c (read_and_print_leb128): Pass file and line number to
432 * testsuite/binutils-all/readelf.exp: Add test of new feature.
433 * testsuite/binutils-all/zero-sec.s: New test source file.
434 * testsuite/binutils-all/zero-sec.r: Expected output from new
437 2020-04-29 Nick Clifton <nickc@redhat.com>
439 * po/sr.po: Updated Serbian translation.
441 2020-04-26 Alan Modra <amodra@gmail.com>
443 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
444 read before dereferencing, and gracefully return. Remove
445 gnu_hash_error variable. Free gnu hash arrays if number of
448 2020-04-24 Alan Modra <amodra@gmail.com>
450 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
452 (process_dynamic_section): Call get_num_dynamic_syms once rather
453 than in segment loop. Break out of segment loop on a successful
454 load of dynamic symbols. Formatting.
455 (process_object): Return error status from process_dynamic_section.
457 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
459 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
460 * elf.c (elfcore_grok_arc_v2): New function.
461 (elfcore_grok_note): Call the new function to handle the corresponding
463 (elfcore_write_arc_v2): New function.
464 (elfcore_write_register_note): Call the new function to handle the
465 corresponding pseudo-sections.
467 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
470 * readelf.c (is_none_reloc): Recognize
471 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
472 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
474 2020-04-22 Nick Clifton <nickc@redhat.com>
476 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
478 2020-04-22 Alan Modra <amodra@gmail.com>
480 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
481 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
482 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
483 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
484 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
485 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
486 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
487 (dynamic_section, symtab_shndx_list, group_count, section_groups),
488 (section_headers_groups): Move to struct filedata. Update use
491 2020-04-22 Alan Modra <amodra@gmail.com>
493 * readelf.c (struct dump_data): New, used..
494 (cmdline): ..here, and..
495 (struct filedata): ..here. Adjust all uses.
496 (request_dump_bynumber, request_dump, parse_args): Pass in a
497 struct dump_data* rather than Filedata*. Adjust callers.
498 (main): Don't set cmdline.file_name.
500 2020-04-20 Alan Modra <amodra@gmail.com>
502 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
505 2020-04-20 Alan Modra <amodra@gmail.com>
507 * readelf.c (process_section_headers): Free dynamic symbols etc.
510 2020-04-20 Alan Modra <amodra@gmail.com>
512 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
513 on error without freeing.
514 (process_dynamic_section): Don't recreate dynamic symbols from
515 dynamic tag info when the dynamic symbols have already been
516 read via section headers.
518 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
520 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
521 conditional VDUP instructions are disassembled correctly.
522 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
524 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
525 that VDUP instructions (which are conditional in A32) can be
526 disassembled in thumb mode.
527 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
530 2020-04-17 Alan Modra <amodra@gmail.com>
533 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
535 2020-04-16 Alan Modra <amodra@gmail.com>
537 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
538 --no-addresses description.
540 2020-04-15 Alan Modra <amodra@gmail.com>
542 * objdump.c (no_addresses): New static var.
543 (usage): Print help for --no-addresses.
544 (long_options): Add --no-addresses entry.
545 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
546 (disassemble_bytes): Don't print current line address, or reloc
548 * doc/binutils.texi: Document objdump --no-addresses.
550 2020-04-15 Alan Modra <amodra@gmail.com>
553 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
554 reading buckets or chains fails.
556 2020-04-15 Alan Modra <amodra@gmail.com>
558 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
561 2020-04-15 Alan Modra <amodra@gmail.com>
563 * readelf.c (get_group_flags): Translate text.
564 (get_file_type, get_symbol_binding, get_symbol_type),
565 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
567 2020-04-15 Alan Modra <amodra@gmail.com>
570 * readelf.c (get_num_dynamic_syms): Typo fix.
572 2020-04-14 Alan Modra <amodra@gmail.com>
574 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
575 possibility of overflow when checking number of conflicts.
577 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
580 * readelf.c (nbuckets): New.
584 (ngnubuckets): Likewise.
585 (gnubuckets): Likewise.
586 (gnuchains): Likewise.
587 (mipsxlat): Likewise.
588 (ngnuchains): Likewise.
589 (gnusymidx): Likewise.
590 (VALID_SYMBOL_NAME): Likewise.
591 (VALID_DYNAMIC_NAME): Use it.
592 (get_dynamic_data): Moved before process_dynamic_section.
593 (get_num_dynamic_syms): New function.
594 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
595 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
596 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
598 (get_symbol_index_type): Don't print "bad section index" when
599 there is no section header.
600 (print_dynamic_symbol): Rewrite.
601 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
604 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
606 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
607 enable on *-*-solaris*.
609 2020-03-30 Nick Clifton <nickc@redhat.com>
612 * objcopy.c (copy_object): When copying PE format files set the
613 timestamp field in the pe_data structure if the preserve_dates
615 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
616 --preserve-dates in place of the -p option, in order to make its
619 2020-03-28 Alan Modra <amodra@gmail.com>
621 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
622 clear_xfail hppa*-*-*elf*. Revert mips xfails.
624 2020-03-28 Alan Modra <amodra@gmail.com>
626 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
627 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
628 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
629 test. Pass "-p" to objcopy for the executable test.
631 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
634 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
635 specify whether an object file or executable should be built and tested.
636 Change test names to report whether an object file or executable is
638 * testsuite/binutils-all/pr25662.ld: New test.
639 * testsuite/binutils-all/pr25662.s: New test.
641 2020-03-27 Alan Modra <amodra@gmail.com>
643 * readelf.c (process_archive): Don't double free qualified_name.
644 Don't break out of loop with "negative" archive_file_size, just
645 set file offset to max.
647 2020-03-25 Alan Modra <amodra@gmail.com>
649 * readelf.c (process_archive): Prevent endless loop.
651 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
654 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
655 with bfd_get_symbol_version_string.
656 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
657 * objdump.c (objdump_print_symname): Likewise.
659 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
662 * nm.c (SYM_NAME): Removed.
663 (print_symname): Add a pointer to struct extended_symbol_info
664 argument. Call _bfd_elf_get_symbol_version_name to get symbol
666 (print_symdef_entry): Pass NULL to print_symname.
667 (print_symbol_info_bsd): Update call to print_symname.
668 (print_symbol_info_sysv): Likewise.
669 (print_symbol_info_posix): Likewise.
671 2020-03-24 Alan Modra <amodra@gmail.com>
673 * readelf.c (process_mips_specific): Free iconf on error path.
675 2020-03-23 Nick Clifton <nickc@redhat.com>
678 * wrstabs.c (stab_pop_type): Replace assertion with error return.
679 * write_stabs_in_sections_debugging_info: Likewise.
680 * stab_enum_type: Likewise.
681 * stab_modify_type: Likewise.
682 * stab_struct_field: Likewise.
683 * stab_end_struct_type: Likewise.
684 * stab_start_class_type: Likewise.
685 * stab_class_static_member: Likewise.
686 * stab_class_baseclass: Likewise.
687 * stab_class_start_method: Likewise.
688 * stab_class_method_var: Likewise.
689 * stab_class_end_method: Likewise.
690 * stab_end_class_type: Likewise.
691 * stab_typedef_type: Likewise.
692 * stab_start_function: Likewise.
693 * stab_end_block: Likewise.
694 * stab_lineno: Likewise.
696 2020-03-20 Nick Clifton <nickc@redhat.com>
698 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
699 (process_section_headers): Check the return value from
700 get_compression_header.
701 (dump_section_as_strings): Likewise.
702 (dump_section_as_bytes): Likewise.
703 (load_specific_debug_section): Likewise.
705 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
707 * ar.c (main): Update bfd_plugin_set_program_name call.
708 * nm.c (main): Likewise.
710 2020-03-19 Nick Clifton <nickc@redhat.com>
713 * testsuite/binutils-all/dw4.s: New test source file.
714 * testsuite/binutils-all/nm.exp: Run the new test.
716 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
718 * readelf.c (process_symbol_table): Use unsigned long for si.
720 2020-03-19 Alan Modra <amodra@gmail.com>
722 * elfcomm.c: Don't include bfd.h or bucomm.h.
723 (program_name): Declare.
724 (process_archive_index_and_symbols): Replace bfd_boolean with int,
725 and substitute FALSE and TRUE.
726 (setup_archive, setup_nested_archive): Likewise.
727 * elfcomm.h: Likewise.
729 2020-03-19 Alan Modra <amodra@gmail.com>
731 * readelf.c (process_archive): Always return via path freeing
734 2020-03-19 Alan Modra <amodra@gmail.com>
736 * readelf.c (process_netbsd_elf_note): Validate descsz before
737 accessing descdata. Formatting.
739 2020-03-19 Alan Modra <amodra@gmail.com>
741 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
742 * elfcomm.h (setup_archive): Update prototype.
744 2020-03-16 Alan Modra <amodra@gmail.com>
746 * readelf.c (get_symbols): New function.
747 (process_relocs, ia64_process_unwind, hppa_process_unwind),
748 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
750 2020-03-16 Alan Modra <amodra@gmail.com>
752 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
753 Detect shift overflows and check that terminating byte is found.
754 Print an error on a bad uleb128.
756 2020-03-14 Alan Modra <amodra@gmail.com>
758 * readelf.c (process_file): Clean ba_cache.
760 2020-03-14 Alan Modra <amodra@gmail.com>
762 * elfcomm.h (setup_archive): Update prototype.
763 * elfcomm.c (setup_archive): Add file_size parameter and sanity
764 check longnames_size.
765 (setup_nested_archive): Get file size and pass to setup_archive.
766 * elfedit.c (process_archive): Likewise.
767 * readelf.c (process_archive): Pass filedata->file_size to
770 2020-03-14 Alan Modra <amodra@gmail.com>
772 * readelf.c (dump_section_as_strings): Free memory on error exit.
773 (dump_section_as_bytes, process_notes_at): Likewise.
774 (get_build_id): Free enote.
776 2020-03-13 Kamil Rytarowski <n54@gmx.com>
778 * readelf.c (get_netbsd_elfcore_note_type): Add support for
779 NT_NETBSDCORE_LWPSTATUS notes.
781 2020-03-13 Alan Modra <amodra@gmail.com>
783 * elfcomm.c (get_archive_member_name): Always return malloc'd
785 * elfedit.c (process_archive): Tidy memory on all return paths.
786 * readelf.c (process_archive): Likewise.
787 (process_symbol_table): Likewise.
788 (ba_cache): New, replacing ..
789 (get_symbol_for_build_attribute): ..static vars here. Free
790 strtab and symtab before loading new ones. Reject symtab without
791 valid strtab in loop, breaking out of loop on valid symtab.
792 (process_file): Free ba_cache symtab and strtab here, resetting
795 2020-03-12 Alan Modra <amodra@gmail.com>
797 * readelf.c (process_section_headers): Don't just set
798 filedata->section_headers NULL, free it first. Similarly for
799 dynamic_symbols, dynamic_strings, dynamic_syminfo and
800 symtab_shndx_list. Zero associated counts too.
801 (process_object): Free symtab_shndx_list.
802 (process_file): Free various allocated filedata tables.
804 2020-03-11 Nick Clifton <nickc@redhat.com>
808 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
809 li_segment_size fields.
810 * dwarf.c (read_debug_line_header): Record the address size and
811 segment selector size values (if present) in the lineinfo
813 (display_formatted_table): Warn if the format count is empty but
814 the table itself is not empty.
815 Display the format count and entry count at the start of the table
817 (display_debug_lines_raw): Display the address size and segement
818 selector size fields, if present.
819 * testsuite/binutils-all/dw5.W: Update expected output.
821 2020-03-11 Alan Modra <amodra@gmail.com>
824 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
825 pad_to_set on second block of code dealing with padding.
826 Replace "c" with "num_sec" and don't recalculate number of
827 sections on second block. Size arrays using sizeof (element)
828 rather than sizeof (element type).
830 2020-03-10 Alan Modra <amodra@gmail.com>
832 * objdump.c (disassemble_section): Don't call qsort unless
833 sym count is at least two.
834 (disassemble_data): Don't call memcpy with NULL src.
836 2020-03-09 Alan Modra <amodra@gmail.com>
839 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
840 to get_data rather than multiplying.
841 (dump_ia64_vms_dynamic_relocs): Likewise.
842 (process_version_sections): Correct order of size and nmemb args
844 (process_mips_specific): Likewise.
846 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
848 * readelf.c (get_dynamic_data): Replace "memory chekers" with
849 "memory checkers" in comments.
851 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
854 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
855 * doc/Makefile.in: Re-generate.
857 2020-03-06 Nick Clifton <nickc@redhat.com>
859 * objcopy.c (check_new_section_flags): New function. Reject the
860 SEC_COFF_SHARED flag if the target is not a COFF binary.
861 (copy_object): Call check_new_section_flags.
862 (setup_section): Likewise.
863 * doc/binutils.texi (objcopy): Add a note that the 'share' section
864 flag cannot be applied to ELF binaries.
866 2020-03-06 Alan Modra <amodra@gmail.com>
869 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
871 2020-03-05 Alan Modra <amodra@gmail.com>
874 * objcopy.c (filter_symbols): Don't segfault on NULL
875 prefix_symbols_string.
877 2020-03-04 Christian Eggers <ceggers@gmx.de>
879 * objcopy.c (copy_object): Convert from bytes to octets for
880 --gap-fill and --pad-to.
882 2020-03-03 Nick Clifton <nickc@redhat.com>
885 * prdbg.c (pr_tag_type): Remove call to abort.
887 2020-03-02 Aaron Merey <amerey@redhat.com>
889 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
892 2020-03-02 Nick Clifton <nickc@redhat.com>
895 * readelf.c (dump_section_as_strings): Display new-line characters
896 as \n and then insert a line break.
897 * testsuite/binutils-all/pr25543.s: New test.
898 * testsuite/binutils-all/pr25543.d: Test driver.
899 * testsuite/binutils-all/readelf.exp: Run the new test.
901 2020-02-27 Nick Clifton <nickc@redhat.com>
904 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
905 get_data is unable to load the string table.
907 2020-02-26 Alan Modra <amodra@gmail.com>
909 * elfedit.c: Indent labels correctly.
910 * readelf.c: Likewise.
911 * resres.c: Likewise.
913 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
916 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
917 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
919 2020-02-24 Nick Clifton <nickc@redhat.com>
922 * doc/binutils.texi (objdump): Fix typo in description of
925 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
927 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
930 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
932 * objdump.c (show_line): call bfd_demangle when using do_demangle.
934 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
936 * configure: Regenerate.
938 2020-02-10 Fangrui Song <maskray@google.com>
940 * objcopy.c (parse_flags): Handle "exclude".
941 * doc/binutils.texi: Document the support.
943 2020-02-10 Aaron Merey <amerey@redhat.com>
945 * binutils/testsuite/binutils-all/debuginfod.exp:
946 Replace set ::env with setenv.
947 Start server before setting environment variable.
948 Specify tmpdir as the location of the server's
950 Check additional server metrics at start-up.
952 2020-02-07 Nick Clifton <nickc@redhat.com>
954 * README-how-to-make-a-release: Add note about updating the
955 GAS/NEWS URL in the next release.
957 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
960 * readelf.c (get_machine_flags): Add support for Z80N machine
963 2020-02-07 Nick Clifton <nickc@redhat.com>
965 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
966 of the truncated file name.
968 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
970 * objdump.c (print_jump_visualisation): New function.
971 (disassemble_bytes): Call new function.
973 2020-02-06 Alan Modra <amodra@gmail.com>
975 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
977 (supports_gnu_osabi): New procedure.
978 (is_generic): New, from ld-lib.exp.
979 (supports_gnu_unique): Use the above.
981 2020-02-04 Alan Modra <amodra@gmail.com>
983 * Makefile.am (CFILES): Add od-elf32_avr.c.
984 * Makefile.in: Regenerate.
985 * po/POTFILES.in: Regenerate.
987 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
989 * readelf.c (dump_relocations, dump_relocations)
990 (decode_arm_unwind_bytecode, process_dynamic_section)
991 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
994 2020-02-03 Sergei Trofimovich <siarheit@google.com>
996 * coffdump.c (program_name): Drop redundant definition.
997 * srconv.c (program_name): Likewise
998 * sysdump.c (program_name): Likewise
1000 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1003 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1004 same file with different section pointers.
1006 2020-02-01 Nick Clifton <nickc@redhat.com>
1008 * README-how-to-make-a-release: Update with more details on the
1009 release making process.
1011 2020-01-31 Nick Clifton <nickc@redhat.com>
1013 * po/sv.po: Updated Swedish translation.
1015 2020-01-28 Nick Clifton <nickc@redhat.com>
1017 * readelf.c (get_build_id): Simplify warning message about corrupt
1018 notes encountered whilst scanning for the build-id.
1020 2020-01-27 Roland McGrath <mcgrathr@google.com>
1022 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1023 for overlapping ranges so that (A == B) == (B == A) holds.
1025 2020-01-27 Alan Modra <amodra@gmail.com>
1027 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1028 case statement with switch statement.
1030 2020-01-24 Nick Clifton <nickc@redhat.com>
1032 * readelf.c (get_build_id): Fix warning messages about corrupt
1035 2020-01-23 Nick Clifton <nickc@redhat.com>
1037 * po/fr.po: Updated French translation.
1039 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1042 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1044 2020-01-20 Nick Clifton <nickc@redhat.com>
1046 * po/pt.po: Updated Portuguese translation.
1047 * po/uk.po: Updated Ukranian translation.
1049 2020-01-18 Nick Clifton <nickc@redhat.com>
1051 * README-how-to-make-a-release: Update notes on how to cut a
1052 branch for a release.
1054 2020-01-18 Nick Clifton <nickc@redhat.com>
1056 * configure: Regenerate.
1057 * po/binutils.pot: Regenerate.
1059 2020-01-18 Nick Clifton <nickc@redhat.com>
1061 Binutils 2.34 branch created.
1063 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1065 * objdump.c (jump_info_visualize_address): Discard jumps that are
1067 (disassemble_bytes): Only compute the maximum level if jumps were
1070 2020-01-13 Nick Clifton <nickc@redhat.com>
1072 * objdump.c (disassemble_bytes): Remove C99-ism.
1073 * testsuite/binutils-all/debuginfod.exp: New tests.
1075 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1077 * objdump.c (visualize_jumps, color_output, extended_color_output)
1078 (detected_jumps): New variables.
1079 (usage): Add the new jump visualization options.
1080 (option_values): Add new option value.
1081 (long_options): Add the new option.
1082 (jump_info_new, jump_info_free): New functions.
1083 (jump_info_min_address, jump_info_max_address): Likewise.
1084 (jump_info_end_address, jump_info_is_start_address): Likewise.
1085 (jump_info_is_end_address, jump_info_size): Likewise.
1086 (jump_info_unlink, jump_info_insert): Likewise.
1087 (jump_info_add_front, jump_info_move_linked): Likewise.
1088 (jump_info_intersect, jump_info_merge): Likewise.
1089 (jump_info_sort, jump_info_visualize_address): Likewise.
1090 (disassemble_jumps): New function - used to locate jumps.
1091 (disassemble_bytes): Add ascii art generation.
1092 (disassemble_section): Add scan to locate jumps.
1093 (main): Parse the new visualization option.
1094 * doc/binutils.texi: Document the new feature.
1095 * NEWS: Mention the new feature.
1097 2020-01-13 Alan Modra <amodra@gmail.com>
1101 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1102 fde_fc col_type and col_offset.
1103 * readelf.c (apply_relocations): Move symsec check earlier.
1104 (free_debug_section): Free reloc_info.
1105 (process_notes_at): Free pnotes on error path.
1106 (process_object): Free dump_sects here..
1107 (process_archive): ..not here.
1109 2020-01-13 Alan Modra <amodra@gmail.com>
1112 * nm.c (display_rel_file): Free dyn_syms.
1114 2020-01-09 Nick Clifton <nickc@redhat.com>
1117 * objcopy.c (empty_name): New variable.
1118 (need_sym_before): Prevent an attempt to free a static variable.
1119 (filter_symbols): Avoid strcmp test by checking for pointer
1122 2020-01-09 Nick Clifton <nickc@redhat.com>
1124 * po/zh_TW.po: Updated Traditional Chinese translation.
1126 2020-01-09 Aaron Merey <amerey@redhat.com>
1128 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1129 * Makefile.in: Regenerate.
1131 * config.in: Regenerate.
1132 * configure: Regenerate.
1133 * configure.ac: Call AC_DEBUGINFOD.
1134 * doc/Makefile.in: Regenerate.
1135 * doc/binutils.texi: Add section on using binutils
1137 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1138 Query debuginfod servers for the target debug file.
1139 (load_separate_debug_info): Call
1140 debuginfod_fetch_separate_debug_info if configured with
1142 (load_separate_debug_files): Add file argument to
1143 load_separate_debug_info calls.
1144 * dwarf.h (get_build_id): Add declaration.
1145 * objdump.c (get_build_id): New function. Get build-id of file.
1146 * readelf.c (get_build_id): Likewise.
1147 * testsuite/binutils-all/debuginfod.exp: New tests.
1148 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1151 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1153 * readelf.c: Add support for new Z*) relocations and machine
1156 2020-01-01 Alan Modra <amodra@gmail.com>
1158 Update year range in copyright notice of all files.
1160 For older changes see ChangeLog-2019
1162 Copyright (C) 2020 Free Software Foundation, Inc.
1164 Copying and distribution of this file, with or without modification,
1165 are permitted in any medium without royalty provided the copyright
1166 notice and this notice are preserved.
1172 version-control: never