]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
arm: Add support for Neoverse N2 CPU
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
427234c7
LC
12020-09-21 Ludovic Courtès <ludo@gnu.org>
2
3 * doc/binutils.texi (objcopy, strip): Say that
4 '--strip-unneeded' implies '--strip-debug'.
5
0690f591
AP
62020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
7
8 * verilog.c (verilog_write_address): Properly handle 64-bit
9 addresses to avoid truncation of the high part.
10
c1229f84
AM
112020-09-16 Alan Modra <amodra@gmail.com>
12
13 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
14 * objcopy.c (is_hidden_symbol): Likewise.
15
5b3eb5ed
NC
162020-09-15 Nick Clifton <nickc@redhat.com>
17
18 * README-how-to-make-a-release (https): Add a reminder to create a
19 new Bugzilla tag for the point release, once it has been published.
20
8d58ed37
L
212020-09-11 H.J. Lu <hongjiu.lu@intel.com>
22
23 * readelf.c (get_note_type): Support NT_X86_CET.
24
ce139cd5
NC
252020-09-11 Nick Clifton <nickc@redhat.com>
26
27 PR 26595
28 * dwarf.c (load_separate_debug_info): Return NULL rather than
29 FALSE in error situations.
30 (load_separate_debug_file): Move code to load debug links to ...
31 (check_for_and_load_links): ... here. New function. Load
32 separate debug information pointed to by debuglink and
33 debugaltlink sections. Recursively scan newly loaded debug
34 information for more links and load them too.
35
dfbee680
AM
362020-09-09 Alan Modra <amodra@gmail.com>
37
38 PR 26578
39 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
40 (load_separate_debug_files): Use a stack var for build_id_data.
41
790147a9
L
422020-09-08 H.J. Lu <hongjiu.lu@intel.com>
43
44 PR ld/26587
45 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
46 to ld on PE targets for PR 25662 test.
47
7d81bc93
JL
482020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
49 Kuan-Lin Chen <kuanlinchentw@gmail.com>
50
51 * readelf.c (target_specific_reloc_handling): Handle
52 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
53
839f41a3
AM
542020-09-02 Alan Modra <amodra@gmail.com>
55
56 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
57
54b8331d
AM
582020-08-30 Alan Modra <amodra@gmail.com>
59
60 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
61 long for "bytes".
62
08d7da7d
NC
632020-08-28 Nick Clifton <nickc@redhat.com>
64
65 PR 26548
66 * dwarf.c (read_leb128): When checking for overflow of a signed
67 read, use a signed shift.
68
0861f561
CQ
692020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
70
71 * readelf.c (get_csky_section_type_name): New.
72 (get_section_type_name): Add handler for CSKY.
73 (display_csky_attribute): New.
74 (process_arch_specific): Add handler for CSKY.
75 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
76 section.
77
b0191216
JL
782020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
79
80 * readelf.c (get_msp430x_section_type_name): Rename to ...
81 (get_msp430_section_type_name): ... this.
82 (get_section_type_name): Use get_msp430_section_type_name.
83 (display_msp430x_attribute): Rename to ...
84 (display_msp430_attribute): ... this.
85 (process_arch_specific): Use display_msp430_attribute.
86
9e7ed8b0
JDA
872020-08-27 John David Anglin <danglin@gcc.gnu.org>
88
89 PR 26356
90 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
91 "-j $PRIVATE$" to command on hppa*-*-hpux*.
92 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
93 dollar-sign quotes before quoting. Do this prior to generating log
94 output.
95
6b5473c9
RH
962020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
97
98 PR 26088
99 * mclex.c (skip_until_eol): If eol was found, increment line
100 number.
101
5e9b84f7
NA
1022020-08-27 Nick Alcock <nick.alcock@oracle.com>
103
104 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
105 * readelf.c (dump_ctf_errs): Likewise.
106
926c9e76
NA
1072020-08-27 Nick Alcock <nick.alcock@oracle.com>
108
109 * objdump.c (dump_ctf_archive_member): Move error-
110 reporting...
111 (dump_ctf_errs): ... into this separate function.
112 (dump_ctf): Call it on open errors.
113 * readelf.c (dump_ctf_archive_member): Move error-
114 reporting...
115 (dump_ctf_errs): ... into this separate function. Support
116 calls with NULL fp. Adjust for new err parameter to
117 ctf_errwarning_next.
118 (dump_section_as_ctf): Call it on open errors.
119
987cf30a
NA
1202020-08-27 Nick Alcock <nick.alcock@oracle.com>
121
122 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
123 * Makefile.in: Regenerated.
124
3eba3ef3
NC
1252020-08-26 Nick Clifton <nickc@redhat.com>
126
127 PR 26405
128 * readelf.c (get_segment_type): Handle OpenBSD segment types.
129
a68aba2d
AM
1302020-08-26 Alan Modra <amodra@gmail.com>
131
132 PR 26412
133 * objcopy.c (copy_object): Don't fwrite NULL contents.
134
37f628c3
KH
1352020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
136
137 PR 26340
138 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
139
f3da8a96
AM
1402020-08-24 Alan Modra <amodra@gmail.com>
141
142 * readelf.c (dump_section_as_strings) Avoid false positive
143 "may be used uninitialised".
144
3f2e9699
L
1452020-08-22 H.J. Lu <hongjiu.lu@intel.com>
146
147 PR ld/26382
148 * nm.c (print_symname): Display only one '@' for undefined
149 versioned symbols.
150 * doc/binutils.texi: Update nm version information.
151
02391b8b
MW
1522020-08-21 Mark Wielaard <mark@klomp.org>
153
154 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
155 recognize DW_LANG_C11.
156
d1ce973e
AM
1572020-08-19 Alan Modra <amodra@gmail.com>
158
159 PR 26349
160 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
161 and info fields.
162 (dump_section_as_strings): Don't use %tx to display offset.
163
82fcdb39
AM
1642020-08-14 Alan Modra <amodra@gmail.com>
165
166 PR 26388
167 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
168 of debug_information. Correct test of max_loc_offsets and
169 max_range_lists.
170 * rddbg.c (read_debugging_info): Free dhandle on error.
171
fc0efc4b
AM
1722020-08-14 Alan Modra <amodra@gmail.com>
173
174 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
175
75e100a3
AM
1762020-08-13 Alan Modra <amodra@gmail.com>
177
178 PR 26348
179 * objcopy.c (copy_object): Report file name with endian error.
180 Error and return on abfd->read_only.
181
d3511b24
TT
1822020-08-12 Tom Tromey <tromey@adacore.com>
183
184 * dwarf-mode.el (Version): Now 1.6.
185 (dwarf-die-button-action): Tighten DIE reference regexp.
186 (dwarf-font-lock-keywords): Update name regexp.
187
79bc120c
NC
1882020-08-12 Nick Clifton <nickc@redhat.com>
189
190 PR binutils/26331
191 * readelf.c (do_demangle): New option flag.
192 (print_symbol): If do_demangle is enabled, demangle the symbol.
193 (enum long_option_values): New enum to hold long option values.
194 (options): Add demangle, no-demangle, recursion-limit and
195 no-recursion-limit options. Alpha sort the table.
196 (usage): Describe the new options.
197 (parse_args): Handle the new options.
198 * NEWS: Mention the new feature.
199 * doc/binutils.texi: Document the new feature.
200 * testsuite/binutils-all/readelf.exp: Test the new feature.
201 * testsuite/binutils-all/mangled.s: New file - assembler source.
202 * testsuite/binutils-all/readelf.demangled: New file - expected
203 output from readelf.
204
79ddc884
NC
2052020-08-12 Nick Clifton <nickc@redhat.com>
206
207 * po/sr.po: Updated Serbian translation.
208
9b0ac51b
L
2092020-08-10 H.J. Lu <hongjiu.lu@intel.com>
210
211 PR binutils/26302
212 * nm.c (with_symbol_versions): Removed.
213 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
214 (long_options): Update --with-symbol-versions entry.
215 (print_symbol): Remove the with_symbol_versions check.
216 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
217 compatibility.
218 * doc/binutils.texi: Remove --with-symbol-versions.
219
787bbc56
AM
2202020-08-05 Alan Modra <amodra@gmail.com>
221
222 PR 26337
223 * objdump.c (load_specific_debug_section): Revert last change.
224
0b97e818
AM
2252020-08-05 Alan Modra <amodra@gmail.com>
226
227 PR 26337
228 * objdump.c (load_specific_debug_section): Don't malloc space for
229 section contents, use bfd_malloc_and_get_section.
230
c8693053
RO
2312020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232
233 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
234 * Makefile.in, doc/Makefile.in: Regenerate.
235 * configure: Regenerate.
236
ac2599c4
L
2372020-07-30 H.J. Lu <hongjiu.lu@intel.com>
238
239 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
240 to assembler.
241 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
242 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
243 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
244 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
245 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
246
c77cb2a0
MR
2472020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
248
249 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
250 New test.
251 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
252 New test.
253 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
254 New test.
255 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
256 New test.
257 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
258 New test.
259 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
260 New test.
261 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
262 New test.
263 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
264 New test.
265 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
266 New test.
267 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
268
3f1b17bb
MR
2692020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
270
271 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
272 test.
273 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
274 test.
275 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
276 test.
277 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
278 test.
279 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
280 test.
281 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
282
d70f978b
L
2832020-07-28 H.J. Lu <hongjiu.lu@intel.com>
284
285 PR binutils/26301
286 * configure: Regenerated.
287
377170fa
L
2882020-07-28 H.J. Lu <hongjiu.lu@intel.com>
289
290 PR binutils/26301
291 * configure: Regenerated.
292
8fab9282
AM
2932020-07-27 Alan Modra <amodra@gmail.com>
294
295 * objdump.c (dump_section): Don't return without calling
296 process_section_p.
297
608d61c2
L
2982020-07-27 H.J. Lu <hongjiu.lu@intel.com>
299
300 * doc/binutils.texi: Replace preceeded with preceded.
301
3abf9758
MR
3022020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
303
304 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
305 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
306 procedures.
307 (has_newabi): Remove variable.
308 (has_abi, abi_asflags, abi_ldflags): New associative array
309 variables.
310 (irixemul): New variable.
311 Replace `run_dump_test' calls where applicable throughout with
312 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
313 as appropriate. Use `noarch' for tests that require their own
314 architecture setting.
315 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
316 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
317 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
318 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
319 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
320 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
321 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
322 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
323 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
324 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
325 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
326 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
327 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
328 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
329 GAS flags.
330 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
331 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
332 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
333 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
334 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
335 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
336 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
337
f6720b1c
AM
3382020-07-24 Aaron Merey <amerey@redhat.com>
339
340 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
341 * Makefile.in: Rebuild.
342 * configure: Rebuild.
343 * doc/Makefile.in: Rebuild.
344
bf772a1e
NC
3452020-07-24 Nick Clifton <nickc@redhat.com>
346
347 * README-how-to-make-a-release: Various small updates whilst
348 creating the 2.35 release.
349
0b884151
NA
3502020-07-22 Nick Alcock <nick.alcock@oracle.com>
351
352 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
353 option.
354
3dd6b890
NA
3552020-07-22 Nick Alcock <nick.alcock@oracle.com>
356
357 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
358 (dump_ctf): Likewise.
359
8b37e7b6
NA
3602020-07-22 Nick Alcock <nick.alcock@oracle.com>
361
362 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
363 * readelf.c (dump_ctf_archive_member): Likewise.
364
df16e041
NC
3652020-07-22 Nick Clifton <nickc@redhat.com>
366
367 * readelf.c (parse_args): Silence potential warnings about a
368 memory resource leak when allocating space for ctf option values.
369 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
370 variable.
371
84dc5f0b
NC
3722020-07-21 Nick Clifton <nickc@redhat.com>
373
374 * po/sv.po: Updated Swedish translation.
375
570b0ed6
CZ
3762020-07-14 Claudiu Zissulescu <claziss@gmail.com>
377
378 * testsuite/binutils-all/arc/double_regs.s: New test.
379 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
380
0a5c31d1
NC
3812020-07-13 Nick Clifton <nickc@redhat.com>
382
383 * po/fr.po: Updated French translation.
384
7a34d0ea
AM
3852020-07-13 Alan Modra <amodra@gmail.com>
386
387 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
388 optional machine-os arg.
389
a308b89d
L
3902020-07-11 H.J. Lu <hongjiu.lu@intel.com>
391
392 * readelf.c (decode_x86_feature_2): Handle
393 GNU_PROPERTY_X86_FEATURE_2_TMM.
394
af2b3186
TV
3952020-07-10 Tom de Vries <tdevries@suse.de>
396
397 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
398 information in the end_sequence row.
399 * testsuite/binutils-all/dw5.W: Update.
400 * testsuite/binutils-all/objdump.WL: Update.
401
fe49679d
AM
4022020-07-09 Alan Modra <amodra@gmail.com>
403
404 * dlltool.c: Remove powerpc PE support and comments.
405 * configure.ac: Remove powerpc PE dlltool config.
406 * configure: Regenerate.
407
d90171de
NC
4082020-07-09 Nick Clifton <nickc@redhat.com>
409
410 * rclex.c: Add OWNERDRAW keyword.
411 * rcparse.y: Add OWNERDRAW token.
412 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
413 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
414 BITMAP flags.
415 * windres.c (extended_menuitems): Likewise.
416 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
417
e3fdc001
AM
4182020-07-09 Alan Modra <amodra@gmail.com>
419
420 * readelf (slurp_hppa_unwind_table): Set table_len before use
421 in relocation sanity checks.
422
5a2296ac
AM
4232020-07-07 Alan Modra <amodra@gmail.com>
424
425 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
426 * testsuite/binutils-all/nm.exp: Likewise.
427 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
428 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
429 * testsuite/binutils-all/set-section-alignment.d: Likewise.
430 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
431
efd0ed58
AM
4322020-07-07 Alan Modra <amodra@gmail.com>
433
434 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
435 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
436
17550be7
NC
4372020-07-06 Nick Clifton <nickc@redhat.com>
438
439 * po/bg.po: Updated Bulgarian translation.
440 * po/pt.po: Updated Portuguese translation.
441 * po/uk.po: Updated Ukranian translation.
442
ddb43bab
AM
4432020-07-06 Alan Modra <amodra@gmail.com>
444
445 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
446 find string length.
447
b19d852d
NC
4482020-07-04 Nick Clifton <nickc@redhat.com>
449
450 * configure: Regenerate.
451 * po/binutils.pot: Regenerate.
452
b115b9fd
NC
4532020-07-04 Nick Clifton <nickc@redhat.com>
454
455 Binutils 2.35 branch created.
456
0942c7ab
NC
4572020-07-02 Nick Clifton <nickc@redhat.com>
458
459 PR 26028
460 * readelf.c (print_symbol): Handle truncation of symbol names.
461 (options): Add -T/--silent-truncation option.
462 (parse_args): Handle the option.
463 (print_dynamic_symbol): Correct calculation of width available to
464 display symbol name.
465 * doc/binutils.texi: Document the -T option to readelf.
466 * NEWS: Mention the new feature.
467
bbd19b19
L
4682020-06-30 H.J. Lu <hongjiu.lu@intel.com>
469
470 * NEWS: Mention x86 NaCl target support removal.
471 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
472 x86 NaCl target support.
473 * testsuite/binutils-all/elfedit-1.d: Likewise.
474 * testsuite/binutils-all/i386/i386.exp: Likewise.
475 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
476 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
477 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
478 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
479 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
480 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
481 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
482 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
483 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
484 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
485 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
486 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
487
5568cc9e
NC
4882020-06-30 Nick Clifton <nickc@redhat.com>
489
490 * dwarf.c (read_and_display_attr_value): Support
491 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
492 DW_AT_comp_dir.
493
d74b88ed
AM
4942020-06-30 Alan Modra <amodra@gmail.com>
495
496 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
497 xfail for nds32.
498
9f27c364
HPN
4992020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
500
501 * dwarf.c (display_debug_str_offsets): Rename local variable
502 index to idx. Move to top of function.
503
279edac5
AM
5042020-06-29 Alan Modra <amodra@gmail.com>
505
506 * dwarf.c: Use C style comments.
507 * resrc.c: Likewise.
508
cfc16775
AM
5092020-06-27 Alan Modra <amodra@gmail.com>
510
511 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
512 after freeing.
513 (release_archive): Set fields of arch to NULL after freeing.
514
2f6ecaed
NA
5152020-06-26 Nick Alcock <nick.alcock@oracle.com>
516
517 * readelf.c (dump_section_as_ctf): Support .ctf archives using
518 ctf_arc_bufopen. Automatically load the .ctf member of such
519 archives as the parent of all other members, unless specifically
520 overridden via --ctf-parent. Split out dumping code into...
521 (dump_ctf_archive_member): ... here, as in objdump, and call
522 it once per archive member.
523 (dump_ctf_indent_lines): Code style fix.
524
094e34f2
NA
5252020-06-26 Nick Alcock <nick.alcock@oracle.com>
526
527 * configure.ac [--enable-libctf]: New, default yes.
528 Set ENABLE_LIBCTF accordingly.
529 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
530 * configure: Regenerate.
531 * config.in: Regenerate.
532 * Makefile.in: Regenerate.
533 * aclocal.m4: Regenerate.
534 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
535 (option_values): Likewise.
536 (long_options): Likewise.
537 (main): Likewise.
538 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
539 (make_ctfsect): Likewise.
540 (dump_ctf_archive_member): Likewise.
541 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
542 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
543 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
544 (usage): Likewise.
545 (process_section_contents): Likewise.
546 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
547 (dump_ctf_indent_lines): Likewise.
548 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
549
2a1bb84c
JB
5502020-06-26 Jan Beulich <jbeulich@suse.com>
551
552 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
553 redundant text from x86 specific part of -M section.
554
85f7484a
PB
5552020-06-26 Pat Bernardi <bernardi@adacore.com>
556
557 * readelf.c (display_m68k_gnu_attribute): New function.
558 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
559
d0dded5b
L
5602020-06-23 H.J. Lu <hongjiu.lu@intel.com>
561
562 PR binutils/26160
563 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
564 * testsuite/binutils-all/pr26160.r: Likewise.
565 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
566
39f381cb
NC
5672020-06-23 Nick Clifton <nickc@redhat.com>
568
569 PR 26160
570 * dwarf.c (fetch_indexed_string): Detect and handle old style
571 .debug_str_offset tables.
572 (display_debug_str_offsets): Likewise. Also add support for
573 .debug_str_offsets.dwo sections.
574
80fda85c
L
5752020-06-23 H.J. Lu <hongjiu.lu@intel.com>
576
577 PR binutils/26112
578 * testsuite/binutils-all/pr26112.o.bz2: New file.
579 * testsuite/binutils-all/pr26112.r: Likewise.
580 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
581
d081ffff
AM
5822020-06-23 Alan Modra <amodra@gmail.com>
583
584 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
585 remote_file delete command.
586
e4b7104b
NC
5872020-06-22 Nick Clifton <nickc@redhat.com>
588
589 PR 26112
590 * dwarf.c (display_debug_str_offsets): Add code to display the
591 contents of the .debug_str_offsets section.
592 (display_debug_macro): Add support for DW_MACRO_define_strx and
593 DW_MACRO_undef_strx.
594
d768f160
SJ
5952020-06-22 Saagar Jha <saagar@saagarjha.com>
596
597 * od-macho.c: Dump linkedit data for new load commands.
598
5fd104ad
AM
5992020-06-19 Alan Modra <amodra@gmail.com>
600
601 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
602 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
603 (run_dump_test): Use check_relro_support to decide whether to pass
604 extra ld option "-z norelro".
605
fd17d1e6
AM
6062020-06-11 Alan Modra <amodra@gmail.com>
607
608 * readelf.c (process_mips_specific): Don't alloc memory for
609 Elf_Internal_Options.
610
d0c4e780
AM
6112020-06-11 Alan Modra <amodra@gmail.com>
612
613 * readelf.c (process_mips_specific): Assert size of internal
614 types match size of external types, and simplify allocation of
615 internal buffer. Catch possible integer overflow when sanity
616 checking option size. Don't assume options are a regular array.
617 Sanity check reginfo option against option size. Use PRI macros
618 when printing.
619
25065fcd
RH
6202020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
621
622 PR 26082
623 * mclex.c (yylex): Reject lines that reach end-of-file without a
624 terminating newline character.
625
b37a7714
NC
6262020-06-08 Nick Clifton <nickc@redhat.com>
627
628 PR 26093
629 * doc/binutils.texi (strings): Fix typo.
630
c4b2f181
NC
6312020-06-08 Nick Clifton <nickc@redhat.com>
632
633 PR 26086
634 * dwarf.c (process_debug_info): Check that there is space in the
635 debug_information array before filling in an entry.
636
1424c35d
AM
6372020-06-06 Alan Modra <amodra@gmail.com>
638
639 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
640
8affa48a
JA
6412020-06-05 Joel Anderson <joelanderson333@gmail.com>
642
643 PR 26082
644 * mclex.c (yylex): Add test for an empty input stream.
645
8eca5c7d
SC
6462020-06-04 Stephen Casner <casner@acm.org>
647
648 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
649 for test using section pseudo-ops compatible with pdp11.
650 * testsuite/binutils-all/objcopy.exp: Select alternate source.
651
b3db6d07
JM
6522020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
653
654 * objdump.c (disassemble_data): Set disasm_info.endian_code to
655 disasm_info.endian after the latter is initialized to the
656 endianness reported by BFD.
657
0a4f37af
AM
6582020-06-04 Alan Modra <amodra@gmail.com>
659
660 * testsuite/binutils-all/i386/i386.exp: Remove global directive
661 outside proc body.
662 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
663 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
664
913e0fd4
JA
6652020-06-03 Joel Anderson <joelanderson333@gmail.com>
666
667 * windmc.h (struct mc_node): Add id_typecast field.
668 * mcparse.y (message): Initialise the id_typecast field.
669 * windmc.c (write_dbg): Use the id_typecast field as a parameter
670 when calling write_dbg_define.
671 (write_header): Likewise.
672
4a322448
AM
6732020-06-03 Alan Modra <amodra@gmail.com>
674
675 PR 26069
676 * objcopy.c (copy_relocations_in_section): Free relpp on error.
677 Don't accidentally free isection->orelocation.
678
0bee4d1c
AM
6792020-06-02 Alan Modra <amodra@gmail.com>
680
681 * testsuite/binutils-all/ar.exp (obj): Set up object file name
682 extension. Use throughout. Don't completely exclude non-ELF
683 alpha targets. Run long_filenames test for tic30. Exclude thin
684 archive tests for aix, ecoff and vms.
685 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
686 extension. Use throughout. Don't exclude non-ELF alpha targets
687 from "bintest.a".
688
ab7ad287
MF
6892020-05-28 Max Filippov <jcmvbkbc@gmail.com>
690
691 * MAINTAINERS (Xtensa): Add myself as maintainer.
692
3f3c3608
AM
6932020-05-23 Alan Modra <amodra@gmail.com>
694
695 * testsuite/binutils-all/ar.exp (many_files): New test.
696
9db70fc3
AM
6972020-05-21 Alan Modra <amodra@gmail.com>
698
699 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
700 * dlltool.c: Likewise.
701 * elfcomm.c: Likewise.
702 * rddbg.c: Likewise.
703 * readelf.c: Likewise.
704 * stabs.c: Likewise.
705 * windmc.c: Likewise.
706 * windres.c: Likewise.
707 * wrstabs.c: Likewise.
708
c31ab5a0
AM
7092020-05-21 Alan Modra <amodra@gmail.com>
710
711 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
712 access.
713
8f595e9b
NC
7142020-05-20 Nelson Chu <nelson.chu@sifive.com>
715
716 * dwarf.c: Updated since DECLARE_CSR is changed.
717
8ac10c5b
L
7182020-05-19 H.J. Lu <hjl.tools@gmail.com>
719
720 PR binutils/25809
721 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
722 segment doesn't match the .dynamic section and checks are
723 enabled.
724 (struct filedata): Add dynamic_symtab_section and
725 dynamic_strtab_section fields.
726 (process_section_headers): Set dynamic_symtab_section to the
727 .dynsym section. Set dynamic_strtab_section to the .dynstr
728 section.
729 (process_dynamic_section): Warn if the .dynsym section doesn't
730 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
731 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
732
c177f377
AM
7332020-05-19 Alan Modra <amodra@gmail.com>
734
735 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
736 (replace_members): Use bfd_get_filename rather than accessing
737 bfd->filename directly.
738 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
739 * binemul.c (do_ar_emul_append): Likewise.
740 * coffgrok.c (coff_grok): Likewise.
741
83d27139
SH
7422020-05-18 Stafford Horne <shorne@gmail.com>
743
744 * MAINTAINERS (OR1K): Add myself as maintainer.
745
d11a9fab
AB
7462020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * doc/binutils.texi: Mention 'entry address' in the set-start and
749 adjust-start options descriptions.
750
546cb2d8
NC
7512020-05-05 Nick Clifton <nickc@redhat.com>
752
753 * dwarf.c (do_checks): New global variable.
754 (display_formatted_table): Warn about an unexpected number of
755 columns in the table, if checks are enabled. Do not complain
756 about the lack of data following the number of entries in the
757 table if the table is empty.
758 (display_debug_lines_decoded): Only warn about an unexpected
759 number of columns in a table if checks are enabled.
760 * dwarf.h (do_checks): Add a prototype.
761 * elfcomm.c (error): Remove weak attribute.
762 (warn): Likewise.
763 * readelf.c (do_checks): Delete.
764 (warn): Delete.
765 (process_section_headers): Only warn about empty sections if
766 checks are enabled.
767
e052e2ba
FS
7682020-05-04 Fangrui Song <maskray@google.com>
769
770 * objcopy.c (copy_object): Allow empty section.
771 * testsuite/binutils-all/update-section.exp: Add test.
772
070b775f
NC
7732020-05-04 Nick Clifton <nickc@redhat.com>
774
775 PR 25917
776 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
777 supicious number of entries for DWARF-5 format directory and file
778 name tables. Do not display file name table header if the table
779 is empty. Do not allocate space for empty tables.
780
9c7b8e9b
AM
7812020-05-04 Alan Modra <amodra@gmail.com>
782
783 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
784 section. Don't assume endian of host matches nds32 target. Free
785 buffer.
786
60832332
AM
7872020-05-01 Alan Modra <amodra@gmail.com>
788 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
789
790 * objdump.c (disassemble_bytes): Don't scan for zeros when
791 disassembling zeros. Translate "resuming at file offset" message.
792 Formatting. Replace some signed variables with unsigned.
793
09c1e68a
AC
7942020-04-30 Alex Coplan <alex.coplan@arm.com>
795
796 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
797 disassembly.
798 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
799
8a8a1171
NC
8002020-04-30 Nick Clifton <nickc@redhat.com>
801
802 * testsuite/lib/binutils-common.exp (check_pie_support): New
803 proc.
804
cb4c35cf
AB
8052020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
808 range_entries for the same offset.
809
1b513401
NC
8102020-04-29 Nick Clifton <nickc@redhat.com>
811
812 * readelf.c (warn): New function - like elfcomm.c version but only
813 produces output if warnings are enabled.
814 (struct options): Add --lint and --enable-checks.
815 (usage): Add entry for --lint.
816 (parse_args): Handle -L. If checks are enabled but no dumps have
817 been selected then enable all dumps.
818 (process_section_headers): Replace long if-then-else sequence with
819 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
820 SHT_PROGBITS sections.
821 (process_file): Do not complain if the file is an archive and lint
822 mode has been enabled.
823 * elfcomm.c (error): Make the function weak.
824 (warn): Likewise.
825 * NEWS: Mention the new feature.
826 * doc/binutils.texi: Document the new feature.
827 * dwarf.h (report_leb_status): Add file name and line number
828 parameters. Include them in the diagnostic output.
829 (READ_ULEB): Pass file and line number to report_leb_status.
830 (READ_SLEB): Likewise.
831 * dwarf.c (read_and_print_leb128): Pass file and line number to
832 report_leb_status.
833 * testsuite/binutils-all/readelf.exp: Add test of new feature.
834 * testsuite/binutils-all/zero-sec.s: New test source file.
835 * testsuite/binutils-all/zero-sec.r: Expected output from new
836 test.
837
c2e71e57
NC
8382020-04-29 Nick Clifton <nickc@redhat.com>
839
840 * po/sr.po: Updated Serbian translation.
841
90837ea7
AM
8422020-04-26 Alan Modra <amodra@gmail.com>
843
844 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
845 read before dereferencing, and gracefully return. Remove
846 gnu_hash_error variable. Free gnu hash arrays if number of
847 syms found is zero.
848
2482f306
AM
8492020-04-24 Alan Modra <amodra@gmail.com>
850
851 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
852 non-zero.
853 (process_dynamic_section): Call get_num_dynamic_syms once rather
854 than in segment loop. Break out of segment loop on a successful
855 load of dynamic symbols. Formatting.
856 (process_object): Return error status from process_dynamic_section.
857
27456742
AK
8582020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
859
860 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
861 * elf.c (elfcore_grok_arc_v2): New function.
862 (elfcore_grok_note): Call the new function to handle the corresponding
863 note.
864 (elfcore_write_arc_v2): New function.
865 (elfcore_write_register_note): Call the new function to handle the
866 corresponding pseudo-sections.
867
30ce8e47
MF
8682020-04-22 Max Filippov <jcmvbkbc@gmail.com>
869
870 PR ld/25861
871 * readelf.c (is_none_reloc): Recognize
872 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
873 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
874
33b5a830
NC
8752020-04-22 Nick Clifton <nickc@redhat.com>
876
877 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
878
978c4450
AM
8792020-04-22 Alan Modra <amodra@gmail.com>
880
881 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
882 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
883 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
884 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
885 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
886 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
887 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
888 (dynamic_section, symtab_shndx_list, group_count, section_groups),
889 (section_headers_groups): Move to struct filedata. Update use
890 throughout file.
891
6431e409
AM
8922020-04-22 Alan Modra <amodra@gmail.com>
893
894 * readelf.c (struct dump_data): New, used..
895 (cmdline): ..here, and..
896 (struct filedata): ..here. Adjust all uses.
897 (request_dump_bynumber, request_dump, parse_args): Pass in a
898 struct dump_data* rather than Filedata*. Adjust callers.
899 (main): Don't set cmdline.file_name.
900
a5e0be5c
AM
9012020-04-20 Alan Modra <amodra@gmail.com>
902
903 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
904 and nbuckets.
905
8ff66993
AM
9062020-04-20 Alan Modra <amodra@gmail.com>
907
908 * readelf.c (process_section_headers): Free dynamic symbols etc.
909 earlier.
910
ceb9bf11
AM
9112020-04-20 Alan Modra <amodra@gmail.com>
912
913 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
914 on error without freeing.
915 (process_dynamic_section): Don't recreate dynamic symbols from
916 dynamic tag info when the dynamic symbols have already been
917 read via section headers.
918
e409955d
FS
9192020-04-17 Fredrik Strupe <fredrik@strupe.net>
920
921 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
922 conditional VDUP instructions are disassembled correctly.
923 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
924 vdup-cond.d.
925 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
926 that VDUP instructions (which are conditional in A32) can be
927 disassembled in thumb mode.
928 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
929 vdup-thumb.d.
930
ca3f923f
AM
9312020-04-17 Alan Modra <amodra@gmail.com>
932
933 PR 25840
934 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
935
937f6614
AM
9362020-04-16 Alan Modra <amodra@gmail.com>
937
938 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
939 --no-addresses description.
940
b1bc1394
AM
9412020-04-15 Alan Modra <amodra@gmail.com>
942
943 * objdump.c (no_addresses): New static var.
944 (usage): Print help for --no-addresses.
945 (long_options): Add --no-addresses entry.
946 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
947 (disassemble_bytes): Don't print current line address, or reloc
948 address.
949 * doc/binutils.texi: Document objdump --no-addresses.
950
001890e1
AM
9512020-04-15 Alan Modra <amodra@gmail.com>
952
953 PR 25822
954 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
955 reading buckets or chains fails.
956
b71d4fa7
AM
9572020-04-15 Alan Modra <amodra@gmail.com>
958
959 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
960 etc. after freeing.
961
89246a0e
AM
9622020-04-15 Alan Modra <amodra@gmail.com>
963
964 * readelf.c (get_group_flags): Translate text.
965 (get_file_type, get_symbol_binding, get_symbol_type),
966 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
967
c98a4545
AM
9682020-04-15 Alan Modra <amodra@gmail.com>
969
970 PR 25821
971 * readelf.c (get_num_dynamic_syms): Typo fix.
972
645f43a8
AM
9732020-04-14 Alan Modra <amodra@gmail.com>
974
975 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
976 possibility of overflow when checking number of conflicts.
977
10ca4b04
L
9782020-04-14 H.J. Lu <hongjiu.lu@intel.com>
979
980 PR binutils/25707
981 * readelf.c (nbuckets): New.
982 (nchains): Likewise.
983 (buckets): Likewise.
984 (chains): Likewise.
985 (ngnubuckets): Likewise.
986 (gnubuckets): Likewise.
987 (gnuchains): Likewise.
988 (mipsxlat): Likewise.
989 (ngnuchains): Likewise.
990 (gnusymidx): Likewise.
991 (VALID_SYMBOL_NAME): Likewise.
992 (VALID_DYNAMIC_NAME): Use it.
993 (get_dynamic_data): Moved before process_dynamic_section.
994 (get_num_dynamic_syms): New function.
995 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
996 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
997 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
998 table.
999 (get_symbol_index_type): Don't print "bad section index" when
1000 there is no section header.
1001 (print_dynamic_symbol): Rewrite.
1002 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1003 symbol table.
1004
bb897477
RO
10052020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1006
1007 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1008 enable on *-*-solaris*.
1009
00386881
NC
10102020-03-30 Nick Clifton <nickc@redhat.com>
1011
1012 PR binutils/25662
1013 * objcopy.c (copy_object): When copying PE format files set the
1014 timestamp field in the pe_data structure if the preserve_dates
1015 flag is set.
1016 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1017 --preserve-dates in place of the -p option, in order to make its
1018 effect more obvious.
1019
0a6a8b59
AM
10202020-03-28 Alan Modra <amodra@gmail.com>
1021
1022 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1023 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1024
6a81c59b
AM
10252020-03-28 Alan Modra <amodra@gmail.com>
1026
1027 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1028 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1029 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1030 test. Pass "-p" to objcopy for the executable test.
1031
1fafefd5
JL
10322020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1033
1034 PR binutils/25662
1035 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1036 specify whether an object file or executable should be built and tested.
1037 Change test names to report whether an object file or executable is
1038 being tested.
1039 * testsuite/binutils-all/pr25662.ld: New test.
1040 * testsuite/binutils-all/pr25662.s: New test.
1041
80e2a3b6
AM
10422020-03-27 Alan Modra <amodra@gmail.com>
1043
1044 * readelf.c (process_archive): Don't double free qualified_name.
1045 Don't break out of loop with "negative" archive_file_size, just
1046 set file offset to max.
1047
4c836627
AM
10482020-03-25 Alan Modra <amodra@gmail.com>
1049
1050 * readelf.c (process_archive): Prevent endless loop.
1051
1081065c
L
10522020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1053
1054 PR binutils/25708
1055 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1056 with bfd_get_symbol_version_string.
1057 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1058 * objdump.c (objdump_print_symname): Likewise.
1059
7e6e972f
L
10602020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1061
1062 PR binutils/25708
1063 * nm.c (SYM_NAME): Removed.
1064 (print_symname): Add a pointer to struct extended_symbol_info
1065 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1066 version.
1067 (print_symdef_entry): Pass NULL to print_symname.
1068 (print_symbol_info_bsd): Update call to print_symname.
1069 (print_symbol_info_sysv): Likewise.
1070 (print_symbol_info_posix): Likewise.
1071
5a814d6d
AM
10722020-03-24 Alan Modra <amodra@gmail.com>
1073
1074 * readelf.c (process_mips_specific): Free iconf on error path.
1075
0636b245
NC
10762020-03-23 Nick Clifton <nickc@redhat.com>
1077
1078 PR 25714
1079 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1080 * write_stabs_in_sections_debugging_info: Likewise.
1081 * stab_enum_type: Likewise.
1082 * stab_modify_type: Likewise.
1083 * stab_struct_field: Likewise.
1084 * stab_end_struct_type: Likewise.
1085 * stab_start_class_type: Likewise.
1086 * stab_class_static_member: Likewise.
1087 * stab_class_baseclass: Likewise.
1088 * stab_class_start_method: Likewise.
1089 * stab_class_method_var: Likewise.
1090 * stab_class_end_method: Likewise.
1091 * stab_end_class_type: Likewise.
1092 * stab_typedef_type: Likewise.
1093 * stab_start_function: Likewise.
1094 * stab_end_block: Likewise.
1095 * stab_lineno: Likewise.
1096
5844b465
NC
10972020-03-20 Nick Clifton <nickc@redhat.com>
1098
1099 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1100 (process_section_headers): Check the return value from
1101 get_compression_header.
1102 (dump_section_as_strings): Likewise.
1103 (dump_section_as_bytes): Likewise.
1104 (load_specific_debug_section): Likewise.
1105
3d98c460
L
11062020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1107
1108 * ar.c (main): Update bfd_plugin_set_program_name call.
1109 * nm.c (main): Likewise.
1110
f3a08f77
NC
11112020-03-19 Nick Clifton <nickc@redhat.com>
1112
1113 PR 25676
1114 * testsuite/binutils-all/dw4.s: New test source file.
1115 * testsuite/binutils-all/nm.exp: Run the new test.
1116
ef3df110
L
11172020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 * readelf.c (process_symbol_table): Use unsigned long for si.
1120
81a65eb3
AM
11212020-03-19 Alan Modra <amodra@gmail.com>
1122
1123 * elfcomm.c: Don't include bfd.h or bucomm.h.
1124 (program_name): Declare.
1125 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1126 and substitute FALSE and TRUE.
1127 (setup_archive, setup_nested_archive): Likewise.
1128 * elfcomm.h: Likewise.
1129
1cb7d8b1
AM
11302020-03-19 Alan Modra <amodra@gmail.com>
1131
1132 * readelf.c (process_archive): Always return via path freeing
1133 memory. Formatting.
1134
b966f55f
AM
11352020-03-19 Alan Modra <amodra@gmail.com>
1136
1137 * readelf.c (process_netbsd_elf_note): Validate descsz before
1138 accessing descdata. Formatting.
1139
645ba681
AM
11402020-03-19 Alan Modra <amodra@gmail.com>
1141
1142 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1143 * elfcomm.h (setup_archive): Update prototype.
1144
28d13567
AM
11452020-03-16 Alan Modra <amodra@gmail.com>
1146
1147 * readelf.c (get_symbols): New function.
1148 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1149 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1150
60e63c3e
AM
11512020-03-16 Alan Modra <amodra@gmail.com>
1152
1153 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1154 Detect shift overflows and check that terminating byte is found.
1155 Print an error on a bad uleb128.
1156
1bd6175a
AM
11572020-03-14 Alan Modra <amodra@gmail.com>
1158
1159 * readelf.c (process_file): Clean ba_cache.
1160
780f96ae
AM
11612020-03-14 Alan Modra <amodra@gmail.com>
1162
1163 * elfcomm.h (setup_archive): Update prototype.
1164 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1165 check longnames_size.
1166 (setup_nested_archive): Get file size and pass to setup_archive.
1167 * elfedit.c (process_archive): Likewise.
1168 * readelf.c (process_archive): Pass filedata->file_size to
1169 setup_archive.
1170
f761cb13
AM
11712020-03-14 Alan Modra <amodra@gmail.com>
1172
1173 * readelf.c (dump_section_as_strings): Free memory on error exit.
1174 (dump_section_as_bytes, process_notes_at): Likewise.
1175 (get_build_id): Free enote.
1176
06d949ec
KR
11772020-03-13 Kamil Rytarowski <n54@gmx.com>
1178
1179 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1180 NT_NETBSDCORE_LWPSTATUS notes.
1181
fd486f32
AM
11822020-03-13 Alan Modra <amodra@gmail.com>
1183
1184 * elfcomm.c (get_archive_member_name): Always return malloc'd
1185 string or NULL.
1186 * elfedit.c (process_archive): Tidy memory on all return paths.
1187 * readelf.c (process_archive): Likewise.
1188 (process_symbol_table): Likewise.
1189 (ba_cache): New, replacing ..
1190 (get_symbol_for_build_attribute): ..static vars here. Free
1191 strtab and symtab before loading new ones. Reject symtab without
1192 valid strtab in loop, breaking out of loop on valid symtab.
1193 (process_file): Free ba_cache symtab and strtab here, resetting
1194 ba_cache.
1195
8fb879cd
AM
11962020-03-12 Alan Modra <amodra@gmail.com>
1197
1198 * readelf.c (process_section_headers): Don't just set
1199 filedata->section_headers NULL, free it first. Similarly for
1200 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1201 symtab_shndx_list. Zero associated counts too.
1202 (process_object): Free symtab_shndx_list.
1203 (process_file): Free various allocated filedata tables.
1204
5496f3c6
NC
12052020-03-11 Nick Clifton <nickc@redhat.com>
1206
1207 PR 25611
1208 PR 25614
1209 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1210 li_segment_size fields.
1211 * dwarf.c (read_debug_line_header): Record the address size and
1212 segment selector size values (if present) in the lineinfo
1213 structure.
1214 (display_formatted_table): Warn if the format count is empty but
1215 the table itself is not empty.
1216 Display the format count and entry count at the start of the table
1217 dump.
1218 (display_debug_lines_raw): Display the address size and segement
1219 selector size fields, if present.
1220 * testsuite/binutils-all/dw5.W: Update expected output.
1221
9cc89dc0
AM
12222020-03-11 Alan Modra <amodra@gmail.com>
1223
1224 PR 25651
1225 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1226 pad_to_set on second block of code dealing with padding.
1227 Replace "c" with "num_sec" and don't recalculate number of
1228 sections on second block. Size arrays using sizeof (element)
1229 rather than sizeof (element type).
1230
41da0822
AM
12312020-03-10 Alan Modra <amodra@gmail.com>
1232
1233 * objdump.c (disassemble_section): Don't call qsort unless
1234 sym count is at least two.
1235 (disassemble_data): Don't call memcpy with NULL src.
1236
95099889
AM
12372020-03-09 Alan Modra <amodra@gmail.com>
1238
1239 PR 25645
1240 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1241 to get_data rather than multiplying.
1242 (dump_ia64_vms_dynamic_relocs): Likewise.
1243 (process_version_sections): Correct order of size and nmemb args
1244 in get_data call.
1245 (process_mips_specific): Likewise.
1246
a15de1f5
L
12472020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1248
1249 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1250 "memory checkers" in comments.
1251
9979ab66
SM
12522020-03-06 Simon Marchi <simon.marchi@efficios.com>
1253
1254 PR 25491
1255 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1256 * doc/Makefile.in: Re-generate.
1257
a0dcf297
NC
12582020-03-06 Nick Clifton <nickc@redhat.com>
1259
1260 * objcopy.c (check_new_section_flags): New function. Reject the
1261 SEC_COFF_SHARED flag if the target is not a COFF binary.
1262 (copy_object): Call check_new_section_flags.
1263 (setup_section): Likewise.
1264 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1265 flag cannot be applied to ELF binaries.
1266
a9b90127
AM
12672020-03-06 Alan Modra <amodra@gmail.com>
1268
1269 PR 25637
1270 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1271
d1faf7ca
AM
12722020-03-05 Alan Modra <amodra@gmail.com>
1273
1274 PR 25629
1275 * objcopy.c (filter_symbols): Don't segfault on NULL
1276 prefix_symbols_string.
1277
eef64366
CE
12782020-03-04 Christian Eggers <ceggers@gmx.de>
1279
1280 * objcopy.c (copy_object): Convert from bytes to octets for
1281 --gap-fill and --pad-to.
1282
5be2b2f5
NC
12832020-03-03 Nick Clifton <nickc@redhat.com>
1284
1285 PR 25625
1286 * prdbg.c (pr_tag_type): Remove call to abort.
1287
b312fea1
AM
12882020-03-02 Aaron Merey <amerey@redhat.com>
1289
1290 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1291 selection.
1292
ba3265d0
NC
12932020-03-02 Nick Clifton <nickc@redhat.com>
1294
1295 PR 25543
1296 * readelf.c (dump_section_as_strings): Display new-line characters
1297 as \n and then insert a line break.
1298 * testsuite/binutils-all/pr25543.s: New test.
1299 * testsuite/binutils-all/pr25543.d: Test driver.
1300 * testsuite/binutils-all/readelf.exp: Run the new test.
1301
736990c4
NC
13022020-02-27 Nick Clifton <nickc@redhat.com>
1303
1304 PR 25526
1305 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1306 get_data is unable to load the string table.
1307
dc1e8a47
AM
13082020-02-26 Alan Modra <amodra@gmail.com>
1309
1310 * elfedit.c: Indent labels correctly.
1311 * readelf.c: Likewise.
1312 * resres.c: Likewise.
1313
ecda9016
L
13142020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 PR binutils/25584
1317 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1318 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1319
83d4d556
NC
13202020-02-24 Nick Clifton <nickc@redhat.com>
1321
1322 PR 25499
1323 * doc/binutils.texi (objdump): Fix typo in description of
1324 objdump's -g option.
1325
bd0cf5a6
NC
13262020-02-20 Nelson Chu <nelson.chu@sifive.com>
1327
1328 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1329 is changed.
1330
741cb839
EC
13312020-02-19 Jordan Rupprecht <rupprecht@google.com>
1332
1333 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1334
9f1528a1
AB
13352020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * configure: Regenerate.
1338
3a5d12fb
FS
13392020-02-10 Fangrui Song <maskray@google.com>
1340
1341 * objcopy.c (parse_flags): Handle "exclude".
1342 * doc/binutils.texi: Document the support.
1343
678d457f
AM
13442020-02-10 Aaron Merey <amerey@redhat.com>
1345
1346 * binutils/testsuite/binutils-all/debuginfod.exp:
1347 Replace set ::env with setenv.
46471187
AM
1348 Start server before setting environment variable.
1349 Specify tmpdir as the location of the server's
1350 database.
1351 Check additional server metrics at start-up.
678d457f 1352
e8319fde
NC
13532020-02-07 Nick Clifton <nickc@redhat.com>
1354
1355 * README-how-to-make-a-release: Add note about updating the
1356 GAS/NEWS URL in the next release.
1357
9fc0b501
SB
13582020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1359
1360 PR 25469
1361 * readelf.c (get_machine_flags): Add support for Z80N machine
1362 number.
1363
e1104d08
NC
13642020-02-07 Nick Clifton <nickc@redhat.com>
1365
1366 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1367 of the truncated file name.
1368
c2e6f744 13692020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1370
1371 * objdump.c (print_jump_visualisation): New function.
1372 (disassemble_bytes): Call new function.
1373
02e0be69
AM
13742020-02-06 Alan Modra <amodra@gmail.com>
1375
1376 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1377 TCL procedure.
1378 (supports_gnu_osabi): New procedure.
1379 (is_generic): New, from ld-lib.exp.
1380 (supports_gnu_unique): Use the above.
1381
e8b79122
AM
13822020-02-04 Alan Modra <amodra@gmail.com>
1383
1384 * Makefile.am (CFILES): Add od-elf32_avr.c.
1385 * Makefile.in: Regenerate.
1386 * po/POTFILES.in: Regenerate.
1387
27a45f42
AS
13882020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1389
1390 * readelf.c (dump_relocations, dump_relocations)
1391 (decode_arm_unwind_bytecode, process_dynamic_section)
1392 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1393 error message.
1394
0b398d69
ST
13952020-02-03 Sergei Trofimovich <siarheit@google.com>
1396
1397 * coffdump.c (program_name): Drop redundant definition.
1398 * srconv.c (program_name): Likewise
1399 * sysdump.c (program_name): Likewise
1400
a8c4d40b
L
14012020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1402
1403 PR gas/25380
1404 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1405 same file with different section pointers.
1406
cb6ad9bb
NC
14072020-02-01 Nick Clifton <nickc@redhat.com>
1408
1409 * README-how-to-make-a-release: Update with more details on the
1410 release making process.
1411
53943f32
NC
14122020-01-31 Nick Clifton <nickc@redhat.com>
1413
1414 * po/sv.po: Updated Swedish translation.
1415
55be8fd0
NC
14162020-01-28 Nick Clifton <nickc@redhat.com>
1417
1418 * readelf.c (get_build_id): Simplify warning message about corrupt
1419 notes encountered whilst scanning for the build-id.
1420
82ef9cad
RM
14212020-01-27 Roland McGrath <mcgrathr@google.com>
1422
1423 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1424 for overlapping ranges so that (A == B) == (B == A) holds.
1425
e3696f67
AM
14262020-01-27 Alan Modra <amodra@gmail.com>
1427
1428 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1429 case statement with switch statement.
1430
2f796de6
NC
14312020-01-24 Nick Clifton <nickc@redhat.com>
1432
1433 * readelf.c (get_build_id): Fix warning messages about corrupt
1434 notes.
1435
24e648d4
NC
14362020-01-23 Nick Clifton <nickc@redhat.com>
1437
1438 * po/fr.po: Updated French translation.
1439
c48acf6f
YC
14402020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1441
1442 PR 25417
1443 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1444
26916852
NC
14452020-01-20 Nick Clifton <nickc@redhat.com>
1446
1447 * po/pt.po: Updated Portuguese translation.
1448 * po/uk.po: Updated Ukranian translation.
1449
b248e9ce
NC
14502020-01-18 Nick Clifton <nickc@redhat.com>
1451
1452 * README-how-to-make-a-release: Update notes on how to cut a
1453 branch for a release.
1454
1b1bb2c6
NC
14552020-01-18 Nick Clifton <nickc@redhat.com>
1456
1457 * configure: Regenerate.
1458 * po/binutils.pot: Regenerate.
1459
ae774686
NC
14602020-01-18 Nick Clifton <nickc@redhat.com>
1461
1462 Binutils 2.34 branch created.
1463
82a9ed20
TT
14642020-01-17 Thomas Troeger <tstroege@gmx.de>
1465
1466 * objdump.c (jump_info_visualize_address): Discard jumps that are
1467 no longer needed.
1468 (disassemble_bytes): Only compute the maximum level if jumps were
1469 detected.
1470
6a1939f5
NC
14712020-01-13 Nick Clifton <nickc@redhat.com>
1472
c87c17c1 1473 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1474 * testsuite/binutils-all/debuginfod.exp: New tests.
1475
1d67fe3b
TT
14762020-01-13 Thomas Troeger <tstroege@gmx.de>
1477
1478 * objdump.c (visualize_jumps, color_output, extended_color_output)
1479 (detected_jumps): New variables.
1480 (usage): Add the new jump visualization options.
1481 (option_values): Add new option value.
1482 (long_options): Add the new option.
1483 (jump_info_new, jump_info_free): New functions.
1484 (jump_info_min_address, jump_info_max_address): Likewise.
1485 (jump_info_end_address, jump_info_is_start_address): Likewise.
1486 (jump_info_is_end_address, jump_info_size): Likewise.
1487 (jump_info_unlink, jump_info_insert): Likewise.
1488 (jump_info_add_front, jump_info_move_linked): Likewise.
1489 (jump_info_intersect, jump_info_merge): Likewise.
1490 (jump_info_sort, jump_info_visualize_address): Likewise.
1491 (disassemble_jumps): New function - used to locate jumps.
1492 (disassemble_bytes): Add ascii art generation.
1493 (disassemble_section): Add scan to locate jumps.
1494 (main): Parse the new visualization option.
1495 * doc/binutils.texi: Document the new feature.
1496 * NEWS: Mention the new feature.
1497
a788aedd
AM
14982020-01-13 Alan Modra <amodra@gmail.com>
1499
a4f2b7c5
AM
1500 PR 25360
1501 PR 25361
a788aedd
AM
1502 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1503 fde_fc col_type and col_offset.
1504 * readelf.c (apply_relocations): Move symsec check earlier.
1505 (free_debug_section): Free reloc_info.
1506 (process_notes_at): Free pnotes on error path.
1507 (process_object): Free dump_sects here..
1508 (process_archive): ..not here.
1509
805f38bc
AM
15102020-01-13 Alan Modra <amodra@gmail.com>
1511
1512 PR 25362
1513 * nm.c (display_rel_file): Free dyn_syms.
1514
ffebb0bb
NC
15152020-01-09 Nick Clifton <nickc@redhat.com>
1516
1517 PR 25220
1518 * objcopy.c (empty_name): New variable.
1519 (need_sym_before): Prevent an attempt to free a static variable.
1520 (filter_symbols): Avoid strcmp test by checking for pointer
1521 equality.
1522
ade4fd9b
NC
15232020-01-09 Nick Clifton <nickc@redhat.com>
1524
1525 * po/zh_TW.po: Updated Traditional Chinese translation.
1526
15272020-01-09 Aaron Merey <amerey@redhat.com>
1528
1529 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1530 * Makefile.in: Regenerate.
1531 * NEWS: Update.
1532 * config.in: Regenerate.
1533 * configure: Regenerate.
1534 * configure.ac: Call AC_DEBUGINFOD.
1535 * doc/Makefile.in: Regenerate.
1536 * doc/binutils.texi: Add section on using binutils
1537 with debuginfod.
1538 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1539 Query debuginfod servers for the target debug file.
1540 (load_separate_debug_info): Call
1541 debuginfod_fetch_separate_debug_info if configured with
1542 debuginfod.
1543 (load_separate_debug_files): Add file argument to
1544 load_separate_debug_info calls.
1545 * dwarf.h (get_build_id): Add declaration.
1546 * objdump.c (get_build_id): New function. Get build-id of file.
1547 * readelf.c (get_build_id): Likewise.
1548 * testsuite/binutils-all/debuginfod.exp: New tests.
1549 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1550 section.
1551
6655dba2
SB
15522020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1553
1554 * readelf.c: Add support for new Z*) relocations and machine
1555 types.
1556
b14ce8bf
AM
15572020-01-01 Alan Modra <amodra@gmail.com>
1558
1559 Update year range in copyright notice of all files.
1560
0b114740 1561For older changes see ChangeLog-2019
3499769a 1562\f
0b114740 1563Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1564
1565Copying and distribution of this file, with or without modification,
1566are permitted in any medium without royalty provided the copyright
1567notice and this notice are preserved.
1568
1569Local Variables:
1570mode: change-log
1571left-margin: 8
1572fill-column: 74
1573version-control: never
1574End: