1 2020-06-23 Nick Clifton <nickc@redhat.com>
4 * dwarf.c (fetch_indexed_string): Detect and handle old style
5 .debug_str_offset tables.
6 (display_debug_str_offsets): Likewise. Also add support for
7 .debug_str_offsets.dwo sections.
9 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
12 * testsuite/binutils-all/pr26112.o.bz2: New file.
13 * testsuite/binutils-all/pr26112.r: Likewise.
14 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
16 2020-06-23 Alan Modra <amodra@gmail.com>
18 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
19 remote_file delete command.
21 2020-06-22 Nick Clifton <nickc@redhat.com>
24 * dwarf.c (display_debug_str_offsets): Add code to display the
25 contents of the .debug_str_offsets section.
26 (display_debug_macro): Add support for DW_MACRO_define_strx and
29 2020-06-22 Saagar Jha <saagar@saagarjha.com>
31 * od-macho.c: Dump linkedit data for new load commands.
33 2020-06-19 Alan Modra <amodra@gmail.com>
35 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
36 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
37 (run_dump_test): Use check_relro_support to decide whether to pass
38 extra ld option "-z norelro".
40 2020-06-11 Alan Modra <amodra@gmail.com>
42 * readelf.c (process_mips_specific): Don't alloc memory for
45 2020-06-11 Alan Modra <amodra@gmail.com>
47 * readelf.c (process_mips_specific): Assert size of internal
48 types match size of external types, and simplify allocation of
49 internal buffer. Catch possible integer overflow when sanity
50 checking option size. Don't assume options are a regular array.
51 Sanity check reginfo option against option size. Use PRI macros
54 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
57 * mclex.c (yylex): Reject lines that reach end-of-file without a
58 terminating newline character.
60 2020-06-08 Nick Clifton <nickc@redhat.com>
63 * doc/binutils.texi (strings): Fix typo.
65 2020-06-08 Nick Clifton <nickc@redhat.com>
68 * dwarf.c (process_debug_info): Check that there is space in the
69 debug_information array before filling in an entry.
71 2020-06-06 Alan Modra <amodra@gmail.com>
73 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
75 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
78 * mclex.c (yylex): Add test for an empty input stream.
80 2020-06-04 Stephen Casner <casner@acm.org>
82 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
83 for test using section pseudo-ops compatible with pdp11.
84 * testsuite/binutils-all/objcopy.exp: Select alternate source.
86 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
88 * objdump.c (disassemble_data): Set disasm_info.endian_code to
89 disasm_info.endian after the latter is initialized to the
90 endianness reported by BFD.
92 2020-06-04 Alan Modra <amodra@gmail.com>
94 * testsuite/binutils-all/i386/i386.exp: Remove global directive
96 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
97 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
99 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
101 * windmc.h (struct mc_node): Add id_typecast field.
102 * mcparse.y (message): Initialise the id_typecast field.
103 * windmc.c (write_dbg): Use the id_typecast field as a parameter
104 when calling write_dbg_define.
105 (write_header): Likewise.
107 2020-06-03 Alan Modra <amodra@gmail.com>
110 * objcopy.c (copy_relocations_in_section): Free relpp on error.
111 Don't accidentally free isection->orelocation.
113 2020-06-02 Alan Modra <amodra@gmail.com>
115 * testsuite/binutils-all/ar.exp (obj): Set up object file name
116 extension. Use throughout. Don't completely exclude non-ELF
117 alpha targets. Run long_filenames test for tic30. Exclude thin
118 archive tests for aix, ecoff and vms.
119 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
120 extension. Use throughout. Don't exclude non-ELF alpha targets
123 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
125 * MAINTAINERS (Xtensa): Add myself as maintainer.
127 2020-05-23 Alan Modra <amodra@gmail.com>
129 * testsuite/binutils-all/ar.exp (many_files): New test.
131 2020-05-21 Alan Modra <amodra@gmail.com>
133 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
134 * dlltool.c: Likewise.
135 * elfcomm.c: Likewise.
137 * readelf.c: Likewise.
139 * windmc.c: Likewise.
140 * windres.c: Likewise.
141 * wrstabs.c: Likewise.
143 2020-05-21 Alan Modra <amodra@gmail.com>
145 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
148 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
150 * dwarf.c: Updated since DECLARE_CSR is changed.
152 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
155 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
156 segment doesn't match the .dynamic section and checks are
158 (struct filedata): Add dynamic_symtab_section and
159 dynamic_strtab_section fields.
160 (process_section_headers): Set dynamic_symtab_section to the
161 .dynsym section. Set dynamic_strtab_section to the .dynstr
163 (process_dynamic_section): Warn if the .dynsym section doesn't
164 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
165 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
167 2020-05-19 Alan Modra <amodra@gmail.com>
169 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
170 (replace_members): Use bfd_get_filename rather than accessing
171 bfd->filename directly.
172 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
173 * binemul.c (do_ar_emul_append): Likewise.
174 * coffgrok.c (coff_grok): Likewise.
176 2020-05-18 Stafford Horne <shorne@gmail.com>
178 * MAINTAINERS (OR1K): Add myself as maintainer.
180 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
182 * doc/binutils.texi: Mention 'entry address' in the set-start and
183 adjust-start options descriptions.
185 2020-05-05 Nick Clifton <nickc@redhat.com>
187 * dwarf.c (do_checks): New global variable.
188 (display_formatted_table): Warn about an unexpected number of
189 columns in the table, if checks are enabled. Do not complain
190 about the lack of data following the number of entries in the
191 table if the table is empty.
192 (display_debug_lines_decoded): Only warn about an unexpected
193 number of columns in a table if checks are enabled.
194 * dwarf.h (do_checks): Add a prototype.
195 * elfcomm.c (error): Remove weak attribute.
197 * readelf.c (do_checks): Delete.
199 (process_section_headers): Only warn about empty sections if
202 2020-05-04 Fangrui Song <maskray@google.com>
204 * objcopy.c (copy_object): Allow empty section.
205 * testsuite/binutils-all/update-section.exp: Add test.
207 2020-05-04 Nick Clifton <nickc@redhat.com>
210 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
211 supicious number of entries for DWARF-5 format directory and file
212 name tables. Do not display file name table header if the table
213 is empty. Do not allocate space for empty tables.
215 2020-05-04 Alan Modra <amodra@gmail.com>
217 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
218 section. Don't assume endian of host matches nds32 target. Free
221 2020-05-01 Alan Modra <amodra@gmail.com>
222 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
224 * objdump.c (disassemble_bytes): Don't scan for zeros when
225 disassembling zeros. Translate "resuming at file offset" message.
226 Formatting. Replace some signed variables with unsigned.
228 2020-04-30 Alex Coplan <alex.coplan@arm.com>
230 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
232 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
234 2020-04-30 Nick Clifton <nickc@redhat.com>
236 * testsuite/lib/binutils-common.exp (check_pie_support): New
239 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
241 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
242 range_entries for the same offset.
244 2020-04-29 Nick Clifton <nickc@redhat.com>
246 * readelf.c (warn): New function - like elfcomm.c version but only
247 produces output if warnings are enabled.
248 (struct options): Add --lint and --enable-checks.
249 (usage): Add entry for --lint.
250 (parse_args): Handle -L. If checks are enabled but no dumps have
251 been selected then enable all dumps.
252 (process_section_headers): Replace long if-then-else sequence with
253 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
254 SHT_PROGBITS sections.
255 (process_file): Do not complain if the file is an archive and lint
256 mode has been enabled.
257 * elfcomm.c (error): Make the function weak.
259 * NEWS: Mention the new feature.
260 * doc/binutils.texi: Document the new feature.
261 * dwarf.h (report_leb_status): Add file name and line number
262 parameters. Include them in the diagnostic output.
263 (READ_ULEB): Pass file and line number to report_leb_status.
264 (READ_SLEB): Likewise.
265 * dwarf.c (read_and_print_leb128): Pass file and line number to
267 * testsuite/binutils-all/readelf.exp: Add test of new feature.
268 * testsuite/binutils-all/zero-sec.s: New test source file.
269 * testsuite/binutils-all/zero-sec.r: Expected output from new
272 2020-04-29 Nick Clifton <nickc@redhat.com>
274 * po/sr.po: Updated Serbian translation.
276 2020-04-26 Alan Modra <amodra@gmail.com>
278 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
279 read before dereferencing, and gracefully return. Remove
280 gnu_hash_error variable. Free gnu hash arrays if number of
283 2020-04-24 Alan Modra <amodra@gmail.com>
285 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
287 (process_dynamic_section): Call get_num_dynamic_syms once rather
288 than in segment loop. Break out of segment loop on a successful
289 load of dynamic symbols. Formatting.
290 (process_object): Return error status from process_dynamic_section.
292 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
294 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
295 * elf.c (elfcore_grok_arc_v2): New function.
296 (elfcore_grok_note): Call the new function to handle the corresponding
298 (elfcore_write_arc_v2): New function.
299 (elfcore_write_register_note): Call the new function to handle the
300 corresponding pseudo-sections.
302 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
305 * readelf.c (is_none_reloc): Recognize
306 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
307 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
309 2020-04-22 Nick Clifton <nickc@redhat.com>
311 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
313 2020-04-22 Alan Modra <amodra@gmail.com>
315 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
316 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
317 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
318 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
319 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
320 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
321 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
322 (dynamic_section, symtab_shndx_list, group_count, section_groups),
323 (section_headers_groups): Move to struct filedata. Update use
326 2020-04-22 Alan Modra <amodra@gmail.com>
328 * readelf.c (struct dump_data): New, used..
329 (cmdline): ..here, and..
330 (struct filedata): ..here. Adjust all uses.
331 (request_dump_bynumber, request_dump, parse_args): Pass in a
332 struct dump_data* rather than Filedata*. Adjust callers.
333 (main): Don't set cmdline.file_name.
335 2020-04-20 Alan Modra <amodra@gmail.com>
337 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
340 2020-04-20 Alan Modra <amodra@gmail.com>
342 * readelf.c (process_section_headers): Free dynamic symbols etc.
345 2020-04-20 Alan Modra <amodra@gmail.com>
347 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
348 on error without freeing.
349 (process_dynamic_section): Don't recreate dynamic symbols from
350 dynamic tag info when the dynamic symbols have already been
351 read via section headers.
353 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
355 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
356 conditional VDUP instructions are disassembled correctly.
357 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
359 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
360 that VDUP instructions (which are conditional in A32) can be
361 disassembled in thumb mode.
362 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
365 2020-04-17 Alan Modra <amodra@gmail.com>
368 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
370 2020-04-16 Alan Modra <amodra@gmail.com>
372 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
373 --no-addresses description.
375 2020-04-15 Alan Modra <amodra@gmail.com>
377 * objdump.c (no_addresses): New static var.
378 (usage): Print help for --no-addresses.
379 (long_options): Add --no-addresses entry.
380 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
381 (disassemble_bytes): Don't print current line address, or reloc
383 * doc/binutils.texi: Document objdump --no-addresses.
385 2020-04-15 Alan Modra <amodra@gmail.com>
388 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
389 reading buckets or chains fails.
391 2020-04-15 Alan Modra <amodra@gmail.com>
393 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
396 2020-04-15 Alan Modra <amodra@gmail.com>
398 * readelf.c (get_group_flags): Translate text.
399 (get_file_type, get_symbol_binding, get_symbol_type),
400 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
402 2020-04-15 Alan Modra <amodra@gmail.com>
405 * readelf.c (get_num_dynamic_syms): Typo fix.
407 2020-04-14 Alan Modra <amodra@gmail.com>
409 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
410 possibility of overflow when checking number of conflicts.
412 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
415 * readelf.c (nbuckets): New.
419 (ngnubuckets): Likewise.
420 (gnubuckets): Likewise.
421 (gnuchains): Likewise.
422 (mipsxlat): Likewise.
423 (ngnuchains): Likewise.
424 (gnusymidx): Likewise.
425 (VALID_SYMBOL_NAME): Likewise.
426 (VALID_DYNAMIC_NAME): Use it.
427 (get_dynamic_data): Moved before process_dynamic_section.
428 (get_num_dynamic_syms): New function.
429 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
430 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
431 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
433 (get_symbol_index_type): Don't print "bad section index" when
434 there is no section header.
435 (print_dynamic_symbol): Rewrite.
436 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
439 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
441 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
442 enable on *-*-solaris*.
444 2020-03-30 Nick Clifton <nickc@redhat.com>
447 * objcopy.c (copy_object): When copying PE format files set the
448 timestamp field in the pe_data structure if the preserve_dates
450 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
451 --preserve-dates in place of the -p option, in order to make its
454 2020-03-28 Alan Modra <amodra@gmail.com>
456 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
457 clear_xfail hppa*-*-*elf*. Revert mips xfails.
459 2020-03-28 Alan Modra <amodra@gmail.com>
461 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
462 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
463 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
464 test. Pass "-p" to objcopy for the executable test.
466 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
469 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
470 specify whether an object file or executable should be built and tested.
471 Change test names to report whether an object file or executable is
473 * testsuite/binutils-all/pr25662.ld: New test.
474 * testsuite/binutils-all/pr25662.s: New test.
476 2020-03-27 Alan Modra <amodra@gmail.com>
478 * readelf.c (process_archive): Don't double free qualified_name.
479 Don't break out of loop with "negative" archive_file_size, just
480 set file offset to max.
482 2020-03-25 Alan Modra <amodra@gmail.com>
484 * readelf.c (process_archive): Prevent endless loop.
486 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
489 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
490 with bfd_get_symbol_version_string.
491 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
492 * objdump.c (objdump_print_symname): Likewise.
494 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
497 * nm.c (SYM_NAME): Removed.
498 (print_symname): Add a pointer to struct extended_symbol_info
499 argument. Call _bfd_elf_get_symbol_version_name to get symbol
501 (print_symdef_entry): Pass NULL to print_symname.
502 (print_symbol_info_bsd): Update call to print_symname.
503 (print_symbol_info_sysv): Likewise.
504 (print_symbol_info_posix): Likewise.
506 2020-03-24 Alan Modra <amodra@gmail.com>
508 * readelf.c (process_mips_specific): Free iconf on error path.
510 2020-03-23 Nick Clifton <nickc@redhat.com>
513 * wrstabs.c (stab_pop_type): Replace assertion with error return.
514 * write_stabs_in_sections_debugging_info: Likewise.
515 * stab_enum_type: Likewise.
516 * stab_modify_type: Likewise.
517 * stab_struct_field: Likewise.
518 * stab_end_struct_type: Likewise.
519 * stab_start_class_type: Likewise.
520 * stab_class_static_member: Likewise.
521 * stab_class_baseclass: Likewise.
522 * stab_class_start_method: Likewise.
523 * stab_class_method_var: Likewise.
524 * stab_class_end_method: Likewise.
525 * stab_end_class_type: Likewise.
526 * stab_typedef_type: Likewise.
527 * stab_start_function: Likewise.
528 * stab_end_block: Likewise.
529 * stab_lineno: Likewise.
531 2020-03-20 Nick Clifton <nickc@redhat.com>
533 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
534 (process_section_headers): Check the return value from
535 get_compression_header.
536 (dump_section_as_strings): Likewise.
537 (dump_section_as_bytes): Likewise.
538 (load_specific_debug_section): Likewise.
540 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
542 * ar.c (main): Update bfd_plugin_set_program_name call.
543 * nm.c (main): Likewise.
545 2020-03-19 Nick Clifton <nickc@redhat.com>
548 * testsuite/binutils-all/dw4.s: New test source file.
549 * testsuite/binutils-all/nm.exp: Run the new test.
551 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
553 * readelf.c (process_symbol_table): Use unsigned long for si.
555 2020-03-19 Alan Modra <amodra@gmail.com>
557 * elfcomm.c: Don't include bfd.h or bucomm.h.
558 (program_name): Declare.
559 (process_archive_index_and_symbols): Replace bfd_boolean with int,
560 and substitute FALSE and TRUE.
561 (setup_archive, setup_nested_archive): Likewise.
562 * elfcomm.h: Likewise.
564 2020-03-19 Alan Modra <amodra@gmail.com>
566 * readelf.c (process_archive): Always return via path freeing
569 2020-03-19 Alan Modra <amodra@gmail.com>
571 * readelf.c (process_netbsd_elf_note): Validate descsz before
572 accessing descdata. Formatting.
574 2020-03-19 Alan Modra <amodra@gmail.com>
576 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
577 * elfcomm.h (setup_archive): Update prototype.
579 2020-03-16 Alan Modra <amodra@gmail.com>
581 * readelf.c (get_symbols): New function.
582 (process_relocs, ia64_process_unwind, hppa_process_unwind),
583 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
585 2020-03-16 Alan Modra <amodra@gmail.com>
587 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
588 Detect shift overflows and check that terminating byte is found.
589 Print an error on a bad uleb128.
591 2020-03-14 Alan Modra <amodra@gmail.com>
593 * readelf.c (process_file): Clean ba_cache.
595 2020-03-14 Alan Modra <amodra@gmail.com>
597 * elfcomm.h (setup_archive): Update prototype.
598 * elfcomm.c (setup_archive): Add file_size parameter and sanity
599 check longnames_size.
600 (setup_nested_archive): Get file size and pass to setup_archive.
601 * elfedit.c (process_archive): Likewise.
602 * readelf.c (process_archive): Pass filedata->file_size to
605 2020-03-14 Alan Modra <amodra@gmail.com>
607 * readelf.c (dump_section_as_strings): Free memory on error exit.
608 (dump_section_as_bytes, process_notes_at): Likewise.
609 (get_build_id): Free enote.
611 2020-03-13 Kamil Rytarowski <n54@gmx.com>
613 * readelf.c (get_netbsd_elfcore_note_type): Add support for
614 NT_NETBSDCORE_LWPSTATUS notes.
616 2020-03-13 Alan Modra <amodra@gmail.com>
618 * elfcomm.c (get_archive_member_name): Always return malloc'd
620 * elfedit.c (process_archive): Tidy memory on all return paths.
621 * readelf.c (process_archive): Likewise.
622 (process_symbol_table): Likewise.
623 (ba_cache): New, replacing ..
624 (get_symbol_for_build_attribute): ..static vars here. Free
625 strtab and symtab before loading new ones. Reject symtab without
626 valid strtab in loop, breaking out of loop on valid symtab.
627 (process_file): Free ba_cache symtab and strtab here, resetting
630 2020-03-12 Alan Modra <amodra@gmail.com>
632 * readelf.c (process_section_headers): Don't just set
633 filedata->section_headers NULL, free it first. Similarly for
634 dynamic_symbols, dynamic_strings, dynamic_syminfo and
635 symtab_shndx_list. Zero associated counts too.
636 (process_object): Free symtab_shndx_list.
637 (process_file): Free various allocated filedata tables.
639 2020-03-11 Nick Clifton <nickc@redhat.com>
643 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
644 li_segment_size fields.
645 * dwarf.c (read_debug_line_header): Record the address size and
646 segment selector size values (if present) in the lineinfo
648 (display_formatted_table): Warn if the format count is empty but
649 the table itself is not empty.
650 Display the format count and entry count at the start of the table
652 (display_debug_lines_raw): Display the address size and segement
653 selector size fields, if present.
654 * testsuite/binutils-all/dw5.W: Update expected output.
656 2020-03-11 Alan Modra <amodra@gmail.com>
659 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
660 pad_to_set on second block of code dealing with padding.
661 Replace "c" with "num_sec" and don't recalculate number of
662 sections on second block. Size arrays using sizeof (element)
663 rather than sizeof (element type).
665 2020-03-10 Alan Modra <amodra@gmail.com>
667 * objdump.c (disassemble_section): Don't call qsort unless
668 sym count is at least two.
669 (disassemble_data): Don't call memcpy with NULL src.
671 2020-03-09 Alan Modra <amodra@gmail.com>
674 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
675 to get_data rather than multiplying.
676 (dump_ia64_vms_dynamic_relocs): Likewise.
677 (process_version_sections): Correct order of size and nmemb args
679 (process_mips_specific): Likewise.
681 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
683 * readelf.c (get_dynamic_data): Replace "memory chekers" with
684 "memory checkers" in comments.
686 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
689 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
690 * doc/Makefile.in: Re-generate.
692 2020-03-06 Nick Clifton <nickc@redhat.com>
694 * objcopy.c (check_new_section_flags): New function. Reject the
695 SEC_COFF_SHARED flag if the target is not a COFF binary.
696 (copy_object): Call check_new_section_flags.
697 (setup_section): Likewise.
698 * doc/binutils.texi (objcopy): Add a note that the 'share' section
699 flag cannot be applied to ELF binaries.
701 2020-03-06 Alan Modra <amodra@gmail.com>
704 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
706 2020-03-05 Alan Modra <amodra@gmail.com>
709 * objcopy.c (filter_symbols): Don't segfault on NULL
710 prefix_symbols_string.
712 2020-03-04 Christian Eggers <ceggers@gmx.de>
714 * objcopy.c (copy_object): Convert from bytes to octets for
715 --gap-fill and --pad-to.
717 2020-03-03 Nick Clifton <nickc@redhat.com>
720 * prdbg.c (pr_tag_type): Remove call to abort.
722 2020-03-02 Aaron Merey <amerey@redhat.com>
724 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
727 2020-03-02 Nick Clifton <nickc@redhat.com>
730 * readelf.c (dump_section_as_strings): Display new-line characters
731 as \n and then insert a line break.
732 * testsuite/binutils-all/pr25543.s: New test.
733 * testsuite/binutils-all/pr25543.d: Test driver.
734 * testsuite/binutils-all/readelf.exp: Run the new test.
736 2020-02-27 Nick Clifton <nickc@redhat.com>
739 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
740 get_data is unable to load the string table.
742 2020-02-26 Alan Modra <amodra@gmail.com>
744 * elfedit.c: Indent labels correctly.
745 * readelf.c: Likewise.
746 * resres.c: Likewise.
748 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
751 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
752 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
754 2020-02-24 Nick Clifton <nickc@redhat.com>
757 * doc/binutils.texi (objdump): Fix typo in description of
760 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
762 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
765 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
767 * objdump.c (show_line): call bfd_demangle when using do_demangle.
769 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
771 * configure: Regenerate.
773 2020-02-10 Fangrui Song <maskray@google.com>
775 * objcopy.c (parse_flags): Handle "exclude".
776 * doc/binutils.texi: Document the support.
778 2020-02-10 Aaron Merey <amerey@redhat.com>
780 * binutils/testsuite/binutils-all/debuginfod.exp:
781 Replace set ::env with setenv.
782 Start server before setting environment variable.
783 Specify tmpdir as the location of the server's
785 Check additional server metrics at start-up.
787 2020-02-07 Nick Clifton <nickc@redhat.com>
789 * README-how-to-make-a-release: Add note about updating the
790 GAS/NEWS URL in the next release.
792 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
795 * readelf.c (get_machine_flags): Add support for Z80N machine
798 2020-02-07 Nick Clifton <nickc@redhat.com>
800 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
801 of the truncated file name.
803 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
805 * objdump.c (print_jump_visualisation): New function.
806 (disassemble_bytes): Call new function.
808 2020-02-06 Alan Modra <amodra@gmail.com>
810 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
812 (supports_gnu_osabi): New procedure.
813 (is_generic): New, from ld-lib.exp.
814 (supports_gnu_unique): Use the above.
816 2020-02-04 Alan Modra <amodra@gmail.com>
818 * Makefile.am (CFILES): Add od-elf32_avr.c.
819 * Makefile.in: Regenerate.
820 * po/POTFILES.in: Regenerate.
822 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
824 * readelf.c (dump_relocations, dump_relocations)
825 (decode_arm_unwind_bytecode, process_dynamic_section)
826 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
829 2020-02-03 Sergei Trofimovich <siarheit@google.com>
831 * coffdump.c (program_name): Drop redundant definition.
832 * srconv.c (program_name): Likewise
833 * sysdump.c (program_name): Likewise
835 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
838 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
839 same file with different section pointers.
841 2020-02-01 Nick Clifton <nickc@redhat.com>
843 * README-how-to-make-a-release: Update with more details on the
844 release making process.
846 2020-01-31 Nick Clifton <nickc@redhat.com>
848 * po/sv.po: Updated Swedish translation.
850 2020-01-28 Nick Clifton <nickc@redhat.com>
852 * readelf.c (get_build_id): Simplify warning message about corrupt
853 notes encountered whilst scanning for the build-id.
855 2020-01-27 Roland McGrath <mcgrathr@google.com>
857 * objcopy.c (compare_gnu_build_notes): Fix comparison results
858 for overlapping ranges so that (A == B) == (B == A) holds.
860 2020-01-27 Alan Modra <amodra@gmail.com>
862 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
863 case statement with switch statement.
865 2020-01-24 Nick Clifton <nickc@redhat.com>
867 * readelf.c (get_build_id): Fix warning messages about corrupt
870 2020-01-23 Nick Clifton <nickc@redhat.com>
872 * po/fr.po: Updated French translation.
874 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
877 * readelf.c (get_alpha_symbol_other): Fix error message typo.
879 2020-01-20 Nick Clifton <nickc@redhat.com>
881 * po/pt.po: Updated Portuguese translation.
882 * po/uk.po: Updated Ukranian translation.
884 2020-01-18 Nick Clifton <nickc@redhat.com>
886 * README-how-to-make-a-release: Update notes on how to cut a
887 branch for a release.
889 2020-01-18 Nick Clifton <nickc@redhat.com>
891 * configure: Regenerate.
892 * po/binutils.pot: Regenerate.
894 2020-01-18 Nick Clifton <nickc@redhat.com>
896 Binutils 2.34 branch created.
898 2020-01-17 Thomas Troeger <tstroege@gmx.de>
900 * objdump.c (jump_info_visualize_address): Discard jumps that are
902 (disassemble_bytes): Only compute the maximum level if jumps were
905 2020-01-13 Nick Clifton <nickc@redhat.com>
907 * objdump.c (disassemble_bytes): Remove C99-ism.
908 * testsuite/binutils-all/debuginfod.exp: New tests.
910 2020-01-13 Thomas Troeger <tstroege@gmx.de>
912 * objdump.c (visualize_jumps, color_output, extended_color_output)
913 (detected_jumps): New variables.
914 (usage): Add the new jump visualization options.
915 (option_values): Add new option value.
916 (long_options): Add the new option.
917 (jump_info_new, jump_info_free): New functions.
918 (jump_info_min_address, jump_info_max_address): Likewise.
919 (jump_info_end_address, jump_info_is_start_address): Likewise.
920 (jump_info_is_end_address, jump_info_size): Likewise.
921 (jump_info_unlink, jump_info_insert): Likewise.
922 (jump_info_add_front, jump_info_move_linked): Likewise.
923 (jump_info_intersect, jump_info_merge): Likewise.
924 (jump_info_sort, jump_info_visualize_address): Likewise.
925 (disassemble_jumps): New function - used to locate jumps.
926 (disassemble_bytes): Add ascii art generation.
927 (disassemble_section): Add scan to locate jumps.
928 (main): Parse the new visualization option.
929 * doc/binutils.texi: Document the new feature.
930 * NEWS: Mention the new feature.
932 2020-01-13 Alan Modra <amodra@gmail.com>
936 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
937 fde_fc col_type and col_offset.
938 * readelf.c (apply_relocations): Move symsec check earlier.
939 (free_debug_section): Free reloc_info.
940 (process_notes_at): Free pnotes on error path.
941 (process_object): Free dump_sects here..
942 (process_archive): ..not here.
944 2020-01-13 Alan Modra <amodra@gmail.com>
947 * nm.c (display_rel_file): Free dyn_syms.
949 2020-01-09 Nick Clifton <nickc@redhat.com>
952 * objcopy.c (empty_name): New variable.
953 (need_sym_before): Prevent an attempt to free a static variable.
954 (filter_symbols): Avoid strcmp test by checking for pointer
957 2020-01-09 Nick Clifton <nickc@redhat.com>
959 * po/zh_TW.po: Updated Traditional Chinese translation.
961 2020-01-09 Aaron Merey <amerey@redhat.com>
963 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
964 * Makefile.in: Regenerate.
966 * config.in: Regenerate.
967 * configure: Regenerate.
968 * configure.ac: Call AC_DEBUGINFOD.
969 * doc/Makefile.in: Regenerate.
970 * doc/binutils.texi: Add section on using binutils
972 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
973 Query debuginfod servers for the target debug file.
974 (load_separate_debug_info): Call
975 debuginfod_fetch_separate_debug_info if configured with
977 (load_separate_debug_files): Add file argument to
978 load_separate_debug_info calls.
979 * dwarf.h (get_build_id): Add declaration.
980 * objdump.c (get_build_id): New function. Get build-id of file.
981 * readelf.c (get_build_id): Likewise.
982 * testsuite/binutils-all/debuginfod.exp: New tests.
983 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
986 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
988 * readelf.c: Add support for new Z*) relocations and machine
991 2020-01-01 Alan Modra <amodra@gmail.com>
993 Update year range in copyright notice of all files.
995 For older changes see ChangeLog-2019
997 Copyright (C) 2020 Free Software Foundation, Inc.
999 Copying and distribution of this file, with or without modification,
1000 are permitted in any medium without royalty provided the copyright
1001 notice and this notice are preserved.
1007 version-control: never