]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
cr16 disassembly error of disp20 fields
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
08d7da7d
NC
12020-08-28 Nick Clifton <nickc@redhat.com>
2
3 PR 26548
4 * dwarf.c (read_leb128): When checking for overflow of a signed
5 read, use a signed shift.
6
0861f561
CQ
72020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
8
9 * readelf.c (get_csky_section_type_name): New.
10 (get_section_type_name): Add handler for CSKY.
11 (display_csky_attribute): New.
12 (process_arch_specific): Add handler for CSKY.
13 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
14 section.
15
b0191216
JL
162020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17
18 * readelf.c (get_msp430x_section_type_name): Rename to ...
19 (get_msp430_section_type_name): ... this.
20 (get_section_type_name): Use get_msp430_section_type_name.
21 (display_msp430x_attribute): Rename to ...
22 (display_msp430_attribute): ... this.
23 (process_arch_specific): Use display_msp430_attribute.
24
9e7ed8b0
JDA
252020-08-27 John David Anglin <danglin@gcc.gnu.org>
26
27 PR 26356
28 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
29 "-j $PRIVATE$" to command on hppa*-*-hpux*.
30 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
31 dollar-sign quotes before quoting. Do this prior to generating log
32 output.
33
6b5473c9
RH
342020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
35
36 PR 26088
37 * mclex.c (skip_until_eol): If eol was found, increment line
38 number.
39
5e9b84f7
NA
402020-08-27 Nick Alcock <nick.alcock@oracle.com>
41
42 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
43 * readelf.c (dump_ctf_errs): Likewise.
44
926c9e76
NA
452020-08-27 Nick Alcock <nick.alcock@oracle.com>
46
47 * objdump.c (dump_ctf_archive_member): Move error-
48 reporting...
49 (dump_ctf_errs): ... into this separate function.
50 (dump_ctf): Call it on open errors.
51 * readelf.c (dump_ctf_archive_member): Move error-
52 reporting...
53 (dump_ctf_errs): ... into this separate function. Support
54 calls with NULL fp. Adjust for new err parameter to
55 ctf_errwarning_next.
56 (dump_section_as_ctf): Call it on open errors.
57
987cf30a
NA
582020-08-27 Nick Alcock <nick.alcock@oracle.com>
59
60 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
61 * Makefile.in: Regenerated.
62
3eba3ef3
NC
632020-08-26 Nick Clifton <nickc@redhat.com>
64
65 PR 26405
66 * readelf.c (get_segment_type): Handle OpenBSD segment types.
67
a68aba2d
AM
682020-08-26 Alan Modra <amodra@gmail.com>
69
70 PR 26412
71 * objcopy.c (copy_object): Don't fwrite NULL contents.
72
37f628c3
KH
732020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
74
75 PR 26340
76 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
77
f3da8a96
AM
782020-08-24 Alan Modra <amodra@gmail.com>
79
80 * readelf.c (dump_section_as_strings) Avoid false positive
81 "may be used uninitialised".
82
3f2e9699
L
832020-08-22 H.J. Lu <hongjiu.lu@intel.com>
84
85 PR ld/26382
86 * nm.c (print_symname): Display only one '@' for undefined
87 versioned symbols.
88 * doc/binutils.texi: Update nm version information.
89
02391b8b
MW
902020-08-21 Mark Wielaard <mark@klomp.org>
91
92 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
93 recognize DW_LANG_C11.
94
d1ce973e
AM
952020-08-19 Alan Modra <amodra@gmail.com>
96
97 PR 26349
98 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
99 and info fields.
100 (dump_section_as_strings): Don't use %tx to display offset.
101
82fcdb39
AM
1022020-08-14 Alan Modra <amodra@gmail.com>
103
104 PR 26388
105 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
106 of debug_information. Correct test of max_loc_offsets and
107 max_range_lists.
108 * rddbg.c (read_debugging_info): Free dhandle on error.
109
fc0efc4b
AM
1102020-08-14 Alan Modra <amodra@gmail.com>
111
112 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
113
75e100a3
AM
1142020-08-13 Alan Modra <amodra@gmail.com>
115
116 PR 26348
117 * objcopy.c (copy_object): Report file name with endian error.
118 Error and return on abfd->read_only.
119
d3511b24
TT
1202020-08-12 Tom Tromey <tromey@adacore.com>
121
122 * dwarf-mode.el (Version): Now 1.6.
123 (dwarf-die-button-action): Tighten DIE reference regexp.
124 (dwarf-font-lock-keywords): Update name regexp.
125
79bc120c
NC
1262020-08-12 Nick Clifton <nickc@redhat.com>
127
128 PR binutils/26331
129 * readelf.c (do_demangle): New option flag.
130 (print_symbol): If do_demangle is enabled, demangle the symbol.
131 (enum long_option_values): New enum to hold long option values.
132 (options): Add demangle, no-demangle, recursion-limit and
133 no-recursion-limit options. Alpha sort the table.
134 (usage): Describe the new options.
135 (parse_args): Handle the new options.
136 * NEWS: Mention the new feature.
137 * doc/binutils.texi: Document the new feature.
138 * testsuite/binutils-all/readelf.exp: Test the new feature.
139 * testsuite/binutils-all/mangled.s: New file - assembler source.
140 * testsuite/binutils-all/readelf.demangled: New file - expected
141 output from readelf.
142
79ddc884
NC
1432020-08-12 Nick Clifton <nickc@redhat.com>
144
145 * po/sr.po: Updated Serbian translation.
146
9b0ac51b
L
1472020-08-10 H.J. Lu <hongjiu.lu@intel.com>
148
149 PR binutils/26302
150 * nm.c (with_symbol_versions): Removed.
151 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
152 (long_options): Update --with-symbol-versions entry.
153 (print_symbol): Remove the with_symbol_versions check.
154 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
155 compatibility.
156 * doc/binutils.texi: Remove --with-symbol-versions.
157
787bbc56
AM
1582020-08-05 Alan Modra <amodra@gmail.com>
159
160 PR 26337
161 * objdump.c (load_specific_debug_section): Revert last change.
162
0b97e818
AM
1632020-08-05 Alan Modra <amodra@gmail.com>
164
165 PR 26337
166 * objdump.c (load_specific_debug_section): Don't malloc space for
167 section contents, use bfd_malloc_and_get_section.
168
c8693053
RO
1692020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
170
171 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
172 * Makefile.in, doc/Makefile.in: Regenerate.
173 * configure: Regenerate.
174
ac2599c4
L
1752020-07-30 H.J. Lu <hongjiu.lu@intel.com>
176
177 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
178 to assembler.
179 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
180 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
181 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
182 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
183 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
184
c77cb2a0
MR
1852020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
186
187 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
188 New test.
189 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
190 New test.
191 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
192 New test.
193 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
194 New test.
195 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
196 New test.
197 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
198 New test.
199 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
200 New test.
201 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
202 New test.
203 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
204 New test.
205 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
206
3f1b17bb
MR
2072020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
208
209 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
210 test.
211 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
212 test.
213 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
214 test.
215 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
216 test.
217 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
218 test.
219 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
220
d70f978b
L
2212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
222
223 PR binutils/26301
224 * configure: Regenerated.
225
377170fa
L
2262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
227
228 PR binutils/26301
229 * configure: Regenerated.
230
8fab9282
AM
2312020-07-27 Alan Modra <amodra@gmail.com>
232
233 * objdump.c (dump_section): Don't return without calling
234 process_section_p.
235
608d61c2
L
2362020-07-27 H.J. Lu <hongjiu.lu@intel.com>
237
238 * doc/binutils.texi: Replace preceeded with preceded.
239
3abf9758
MR
2402020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
241
242 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
243 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
244 procedures.
245 (has_newabi): Remove variable.
246 (has_abi, abi_asflags, abi_ldflags): New associative array
247 variables.
248 (irixemul): New variable.
249 Replace `run_dump_test' calls where applicable throughout with
250 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
251 as appropriate. Use `noarch' for tests that require their own
252 architecture setting.
253 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
254 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
255 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
256 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
257 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
258 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
259 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
260 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
261 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
262 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
263 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
264 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
265 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
266 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
267 GAS flags.
268 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
269 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
270 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
271 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
272 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
273 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
274 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
275
f6720b1c
AM
2762020-07-24 Aaron Merey <amerey@redhat.com>
277
278 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
279 * Makefile.in: Rebuild.
280 * configure: Rebuild.
281 * doc/Makefile.in: Rebuild.
282
bf772a1e
NC
2832020-07-24 Nick Clifton <nickc@redhat.com>
284
285 * README-how-to-make-a-release: Various small updates whilst
286 creating the 2.35 release.
287
0b884151
NA
2882020-07-22 Nick Alcock <nick.alcock@oracle.com>
289
290 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
291 option.
292
3dd6b890
NA
2932020-07-22 Nick Alcock <nick.alcock@oracle.com>
294
295 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
296 (dump_ctf): Likewise.
297
8b37e7b6
NA
2982020-07-22 Nick Alcock <nick.alcock@oracle.com>
299
300 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
301 * readelf.c (dump_ctf_archive_member): Likewise.
302
df16e041
NC
3032020-07-22 Nick Clifton <nickc@redhat.com>
304
305 * readelf.c (parse_args): Silence potential warnings about a
306 memory resource leak when allocating space for ctf option values.
307 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
308 variable.
309
84dc5f0b
NC
3102020-07-21 Nick Clifton <nickc@redhat.com>
311
312 * po/sv.po: Updated Swedish translation.
313
570b0ed6
CZ
3142020-07-14 Claudiu Zissulescu <claziss@gmail.com>
315
316 * testsuite/binutils-all/arc/double_regs.s: New test.
317 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
318
0a5c31d1
NC
3192020-07-13 Nick Clifton <nickc@redhat.com>
320
321 * po/fr.po: Updated French translation.
322
7a34d0ea
AM
3232020-07-13 Alan Modra <amodra@gmail.com>
324
325 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
326 optional machine-os arg.
327
a308b89d
L
3282020-07-11 H.J. Lu <hongjiu.lu@intel.com>
329
330 * readelf.c (decode_x86_feature_2): Handle
331 GNU_PROPERTY_X86_FEATURE_2_TMM.
332
af2b3186
TV
3332020-07-10 Tom de Vries <tdevries@suse.de>
334
335 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
336 information in the end_sequence row.
337 * testsuite/binutils-all/dw5.W: Update.
338 * testsuite/binutils-all/objdump.WL: Update.
339
fe49679d
AM
3402020-07-09 Alan Modra <amodra@gmail.com>
341
342 * dlltool.c: Remove powerpc PE support and comments.
343 * configure.ac: Remove powerpc PE dlltool config.
344 * configure: Regenerate.
345
d90171de
NC
3462020-07-09 Nick Clifton <nickc@redhat.com>
347
348 * rclex.c: Add OWNERDRAW keyword.
349 * rcparse.y: Add OWNERDRAW token.
350 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
351 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
352 BITMAP flags.
353 * windres.c (extended_menuitems): Likewise.
354 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
355
e3fdc001
AM
3562020-07-09 Alan Modra <amodra@gmail.com>
357
358 * readelf (slurp_hppa_unwind_table): Set table_len before use
359 in relocation sanity checks.
360
5a2296ac
AM
3612020-07-07 Alan Modra <amodra@gmail.com>
362
363 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
364 * testsuite/binutils-all/nm.exp: Likewise.
365 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
366 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
367 * testsuite/binutils-all/set-section-alignment.d: Likewise.
368 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
369
efd0ed58
AM
3702020-07-07 Alan Modra <amodra@gmail.com>
371
372 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
373 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
374
17550be7
NC
3752020-07-06 Nick Clifton <nickc@redhat.com>
376
377 * po/bg.po: Updated Bulgarian translation.
378 * po/pt.po: Updated Portuguese translation.
379 * po/uk.po: Updated Ukranian translation.
380
ddb43bab
AM
3812020-07-06 Alan Modra <amodra@gmail.com>
382
383 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
384 find string length.
385
b19d852d
NC
3862020-07-04 Nick Clifton <nickc@redhat.com>
387
388 * configure: Regenerate.
389 * po/binutils.pot: Regenerate.
390
b115b9fd
NC
3912020-07-04 Nick Clifton <nickc@redhat.com>
392
393 Binutils 2.35 branch created.
394
0942c7ab
NC
3952020-07-02 Nick Clifton <nickc@redhat.com>
396
397 PR 26028
398 * readelf.c (print_symbol): Handle truncation of symbol names.
399 (options): Add -T/--silent-truncation option.
400 (parse_args): Handle the option.
401 (print_dynamic_symbol): Correct calculation of width available to
402 display symbol name.
403 * doc/binutils.texi: Document the -T option to readelf.
404 * NEWS: Mention the new feature.
405
bbd19b19
L
4062020-06-30 H.J. Lu <hongjiu.lu@intel.com>
407
408 * NEWS: Mention x86 NaCl target support removal.
409 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
410 x86 NaCl target support.
411 * testsuite/binutils-all/elfedit-1.d: Likewise.
412 * testsuite/binutils-all/i386/i386.exp: Likewise.
413 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
414 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
415 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
416 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
417 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
418 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
419 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
420 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
421 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
422 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
423 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
424 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
425
5568cc9e
NC
4262020-06-30 Nick Clifton <nickc@redhat.com>
427
428 * dwarf.c (read_and_display_attr_value): Support
429 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
430 DW_AT_comp_dir.
431
d74b88ed
AM
4322020-06-30 Alan Modra <amodra@gmail.com>
433
434 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
435 xfail for nds32.
436
9f27c364
HPN
4372020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
438
439 * dwarf.c (display_debug_str_offsets): Rename local variable
440 index to idx. Move to top of function.
441
279edac5
AM
4422020-06-29 Alan Modra <amodra@gmail.com>
443
444 * dwarf.c: Use C style comments.
445 * resrc.c: Likewise.
446
cfc16775
AM
4472020-06-27 Alan Modra <amodra@gmail.com>
448
449 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
450 after freeing.
451 (release_archive): Set fields of arch to NULL after freeing.
452
2f6ecaed
NA
4532020-06-26 Nick Alcock <nick.alcock@oracle.com>
454
455 * readelf.c (dump_section_as_ctf): Support .ctf archives using
456 ctf_arc_bufopen. Automatically load the .ctf member of such
457 archives as the parent of all other members, unless specifically
458 overridden via --ctf-parent. Split out dumping code into...
459 (dump_ctf_archive_member): ... here, as in objdump, and call
460 it once per archive member.
461 (dump_ctf_indent_lines): Code style fix.
462
094e34f2
NA
4632020-06-26 Nick Alcock <nick.alcock@oracle.com>
464
465 * configure.ac [--enable-libctf]: New, default yes.
466 Set ENABLE_LIBCTF accordingly.
467 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
468 * configure: Regenerate.
469 * config.in: Regenerate.
470 * Makefile.in: Regenerate.
471 * aclocal.m4: Regenerate.
472 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
473 (option_values): Likewise.
474 (long_options): Likewise.
475 (main): Likewise.
476 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
477 (make_ctfsect): Likewise.
478 (dump_ctf_archive_member): Likewise.
479 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
480 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
481 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
482 (usage): Likewise.
483 (process_section_contents): Likewise.
484 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
485 (dump_ctf_indent_lines): Likewise.
486 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
487
2a1bb84c
JB
4882020-06-26 Jan Beulich <jbeulich@suse.com>
489
490 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
491 redundant text from x86 specific part of -M section.
492
85f7484a
PB
4932020-06-26 Pat Bernardi <bernardi@adacore.com>
494
495 * readelf.c (display_m68k_gnu_attribute): New function.
496 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
497
d0dded5b
L
4982020-06-23 H.J. Lu <hongjiu.lu@intel.com>
499
500 PR binutils/26160
501 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
502 * testsuite/binutils-all/pr26160.r: Likewise.
503 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
504
39f381cb
NC
5052020-06-23 Nick Clifton <nickc@redhat.com>
506
507 PR 26160
508 * dwarf.c (fetch_indexed_string): Detect and handle old style
509 .debug_str_offset tables.
510 (display_debug_str_offsets): Likewise. Also add support for
511 .debug_str_offsets.dwo sections.
512
80fda85c
L
5132020-06-23 H.J. Lu <hongjiu.lu@intel.com>
514
515 PR binutils/26112
516 * testsuite/binutils-all/pr26112.o.bz2: New file.
517 * testsuite/binutils-all/pr26112.r: Likewise.
518 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
519
d081ffff
AM
5202020-06-23 Alan Modra <amodra@gmail.com>
521
522 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
523 remote_file delete command.
524
e4b7104b
NC
5252020-06-22 Nick Clifton <nickc@redhat.com>
526
527 PR 26112
528 * dwarf.c (display_debug_str_offsets): Add code to display the
529 contents of the .debug_str_offsets section.
530 (display_debug_macro): Add support for DW_MACRO_define_strx and
531 DW_MACRO_undef_strx.
532
d768f160
SJ
5332020-06-22 Saagar Jha <saagar@saagarjha.com>
534
535 * od-macho.c: Dump linkedit data for new load commands.
536
5fd104ad
AM
5372020-06-19 Alan Modra <amodra@gmail.com>
538
539 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
540 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
541 (run_dump_test): Use check_relro_support to decide whether to pass
542 extra ld option "-z norelro".
543
fd17d1e6
AM
5442020-06-11 Alan Modra <amodra@gmail.com>
545
546 * readelf.c (process_mips_specific): Don't alloc memory for
547 Elf_Internal_Options.
548
d0c4e780
AM
5492020-06-11 Alan Modra <amodra@gmail.com>
550
551 * readelf.c (process_mips_specific): Assert size of internal
552 types match size of external types, and simplify allocation of
553 internal buffer. Catch possible integer overflow when sanity
554 checking option size. Don't assume options are a regular array.
555 Sanity check reginfo option against option size. Use PRI macros
556 when printing.
557
25065fcd
RH
5582020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
559
560 PR 26082
561 * mclex.c (yylex): Reject lines that reach end-of-file without a
562 terminating newline character.
563
b37a7714
NC
5642020-06-08 Nick Clifton <nickc@redhat.com>
565
566 PR 26093
567 * doc/binutils.texi (strings): Fix typo.
568
c4b2f181
NC
5692020-06-08 Nick Clifton <nickc@redhat.com>
570
571 PR 26086
572 * dwarf.c (process_debug_info): Check that there is space in the
573 debug_information array before filling in an entry.
574
1424c35d
AM
5752020-06-06 Alan Modra <amodra@gmail.com>
576
577 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
578
8affa48a
JA
5792020-06-05 Joel Anderson <joelanderson333@gmail.com>
580
581 PR 26082
582 * mclex.c (yylex): Add test for an empty input stream.
583
8eca5c7d
SC
5842020-06-04 Stephen Casner <casner@acm.org>
585
586 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
587 for test using section pseudo-ops compatible with pdp11.
588 * testsuite/binutils-all/objcopy.exp: Select alternate source.
589
b3db6d07
JM
5902020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
591
592 * objdump.c (disassemble_data): Set disasm_info.endian_code to
593 disasm_info.endian after the latter is initialized to the
594 endianness reported by BFD.
595
0a4f37af
AM
5962020-06-04 Alan Modra <amodra@gmail.com>
597
598 * testsuite/binutils-all/i386/i386.exp: Remove global directive
599 outside proc body.
600 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
601 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
602
913e0fd4
JA
6032020-06-03 Joel Anderson <joelanderson333@gmail.com>
604
605 * windmc.h (struct mc_node): Add id_typecast field.
606 * mcparse.y (message): Initialise the id_typecast field.
607 * windmc.c (write_dbg): Use the id_typecast field as a parameter
608 when calling write_dbg_define.
609 (write_header): Likewise.
610
4a322448
AM
6112020-06-03 Alan Modra <amodra@gmail.com>
612
613 PR 26069
614 * objcopy.c (copy_relocations_in_section): Free relpp on error.
615 Don't accidentally free isection->orelocation.
616
0bee4d1c
AM
6172020-06-02 Alan Modra <amodra@gmail.com>
618
619 * testsuite/binutils-all/ar.exp (obj): Set up object file name
620 extension. Use throughout. Don't completely exclude non-ELF
621 alpha targets. Run long_filenames test for tic30. Exclude thin
622 archive tests for aix, ecoff and vms.
623 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
624 extension. Use throughout. Don't exclude non-ELF alpha targets
625 from "bintest.a".
626
ab7ad287
MF
6272020-05-28 Max Filippov <jcmvbkbc@gmail.com>
628
629 * MAINTAINERS (Xtensa): Add myself as maintainer.
630
3f3c3608
AM
6312020-05-23 Alan Modra <amodra@gmail.com>
632
633 * testsuite/binutils-all/ar.exp (many_files): New test.
634
9db70fc3
AM
6352020-05-21 Alan Modra <amodra@gmail.com>
636
637 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
638 * dlltool.c: Likewise.
639 * elfcomm.c: Likewise.
640 * rddbg.c: Likewise.
641 * readelf.c: Likewise.
642 * stabs.c: Likewise.
643 * windmc.c: Likewise.
644 * windres.c: Likewise.
645 * wrstabs.c: Likewise.
646
c31ab5a0
AM
6472020-05-21 Alan Modra <amodra@gmail.com>
648
649 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
650 access.
651
8f595e9b
NC
6522020-05-20 Nelson Chu <nelson.chu@sifive.com>
653
654 * dwarf.c: Updated since DECLARE_CSR is changed.
655
8ac10c5b
L
6562020-05-19 H.J. Lu <hjl.tools@gmail.com>
657
658 PR binutils/25809
659 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
660 segment doesn't match the .dynamic section and checks are
661 enabled.
662 (struct filedata): Add dynamic_symtab_section and
663 dynamic_strtab_section fields.
664 (process_section_headers): Set dynamic_symtab_section to the
665 .dynsym section. Set dynamic_strtab_section to the .dynstr
666 section.
667 (process_dynamic_section): Warn if the .dynsym section doesn't
668 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
669 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
670
c177f377
AM
6712020-05-19 Alan Modra <amodra@gmail.com>
672
673 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
674 (replace_members): Use bfd_get_filename rather than accessing
675 bfd->filename directly.
676 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
677 * binemul.c (do_ar_emul_append): Likewise.
678 * coffgrok.c (coff_grok): Likewise.
679
83d27139
SH
6802020-05-18 Stafford Horne <shorne@gmail.com>
681
682 * MAINTAINERS (OR1K): Add myself as maintainer.
683
d11a9fab
AB
6842020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * doc/binutils.texi: Mention 'entry address' in the set-start and
687 adjust-start options descriptions.
688
546cb2d8
NC
6892020-05-05 Nick Clifton <nickc@redhat.com>
690
691 * dwarf.c (do_checks): New global variable.
692 (display_formatted_table): Warn about an unexpected number of
693 columns in the table, if checks are enabled. Do not complain
694 about the lack of data following the number of entries in the
695 table if the table is empty.
696 (display_debug_lines_decoded): Only warn about an unexpected
697 number of columns in a table if checks are enabled.
698 * dwarf.h (do_checks): Add a prototype.
699 * elfcomm.c (error): Remove weak attribute.
700 (warn): Likewise.
701 * readelf.c (do_checks): Delete.
702 (warn): Delete.
703 (process_section_headers): Only warn about empty sections if
704 checks are enabled.
705
e052e2ba
FS
7062020-05-04 Fangrui Song <maskray@google.com>
707
708 * objcopy.c (copy_object): Allow empty section.
709 * testsuite/binutils-all/update-section.exp: Add test.
710
070b775f
NC
7112020-05-04 Nick Clifton <nickc@redhat.com>
712
713 PR 25917
714 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
715 supicious number of entries for DWARF-5 format directory and file
716 name tables. Do not display file name table header if the table
717 is empty. Do not allocate space for empty tables.
718
9c7b8e9b
AM
7192020-05-04 Alan Modra <amodra@gmail.com>
720
721 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
722 section. Don't assume endian of host matches nds32 target. Free
723 buffer.
724
60832332
AM
7252020-05-01 Alan Modra <amodra@gmail.com>
726 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
727
728 * objdump.c (disassemble_bytes): Don't scan for zeros when
729 disassembling zeros. Translate "resuming at file offset" message.
730 Formatting. Replace some signed variables with unsigned.
731
09c1e68a
AC
7322020-04-30 Alex Coplan <alex.coplan@arm.com>
733
734 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
735 disassembly.
736 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
737
8a8a1171
NC
7382020-04-30 Nick Clifton <nickc@redhat.com>
739
740 * testsuite/lib/binutils-common.exp (check_pie_support): New
741 proc.
742
cb4c35cf
AB
7432020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
746 range_entries for the same offset.
747
1b513401
NC
7482020-04-29 Nick Clifton <nickc@redhat.com>
749
750 * readelf.c (warn): New function - like elfcomm.c version but only
751 produces output if warnings are enabled.
752 (struct options): Add --lint and --enable-checks.
753 (usage): Add entry for --lint.
754 (parse_args): Handle -L. If checks are enabled but no dumps have
755 been selected then enable all dumps.
756 (process_section_headers): Replace long if-then-else sequence with
757 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
758 SHT_PROGBITS sections.
759 (process_file): Do not complain if the file is an archive and lint
760 mode has been enabled.
761 * elfcomm.c (error): Make the function weak.
762 (warn): Likewise.
763 * NEWS: Mention the new feature.
764 * doc/binutils.texi: Document the new feature.
765 * dwarf.h (report_leb_status): Add file name and line number
766 parameters. Include them in the diagnostic output.
767 (READ_ULEB): Pass file and line number to report_leb_status.
768 (READ_SLEB): Likewise.
769 * dwarf.c (read_and_print_leb128): Pass file and line number to
770 report_leb_status.
771 * testsuite/binutils-all/readelf.exp: Add test of new feature.
772 * testsuite/binutils-all/zero-sec.s: New test source file.
773 * testsuite/binutils-all/zero-sec.r: Expected output from new
774 test.
775
c2e71e57
NC
7762020-04-29 Nick Clifton <nickc@redhat.com>
777
778 * po/sr.po: Updated Serbian translation.
779
90837ea7
AM
7802020-04-26 Alan Modra <amodra@gmail.com>
781
782 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
783 read before dereferencing, and gracefully return. Remove
784 gnu_hash_error variable. Free gnu hash arrays if number of
785 syms found is zero.
786
2482f306
AM
7872020-04-24 Alan Modra <amodra@gmail.com>
788
789 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
790 non-zero.
791 (process_dynamic_section): Call get_num_dynamic_syms once rather
792 than in segment loop. Break out of segment loop on a successful
793 load of dynamic symbols. Formatting.
794 (process_object): Return error status from process_dynamic_section.
795
27456742
AK
7962020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
797
798 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
799 * elf.c (elfcore_grok_arc_v2): New function.
800 (elfcore_grok_note): Call the new function to handle the corresponding
801 note.
802 (elfcore_write_arc_v2): New function.
803 (elfcore_write_register_note): Call the new function to handle the
804 corresponding pseudo-sections.
805
30ce8e47
MF
8062020-04-22 Max Filippov <jcmvbkbc@gmail.com>
807
808 PR ld/25861
809 * readelf.c (is_none_reloc): Recognize
810 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
811 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
812
33b5a830
NC
8132020-04-22 Nick Clifton <nickc@redhat.com>
814
815 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
816
978c4450
AM
8172020-04-22 Alan Modra <amodra@gmail.com>
818
819 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
820 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
821 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
822 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
823 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
824 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
825 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
826 (dynamic_section, symtab_shndx_list, group_count, section_groups),
827 (section_headers_groups): Move to struct filedata. Update use
828 throughout file.
829
6431e409
AM
8302020-04-22 Alan Modra <amodra@gmail.com>
831
832 * readelf.c (struct dump_data): New, used..
833 (cmdline): ..here, and..
834 (struct filedata): ..here. Adjust all uses.
835 (request_dump_bynumber, request_dump, parse_args): Pass in a
836 struct dump_data* rather than Filedata*. Adjust callers.
837 (main): Don't set cmdline.file_name.
838
a5e0be5c
AM
8392020-04-20 Alan Modra <amodra@gmail.com>
840
841 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
842 and nbuckets.
843
8ff66993
AM
8442020-04-20 Alan Modra <amodra@gmail.com>
845
846 * readelf.c (process_section_headers): Free dynamic symbols etc.
847 earlier.
848
ceb9bf11
AM
8492020-04-20 Alan Modra <amodra@gmail.com>
850
851 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
852 on error without freeing.
853 (process_dynamic_section): Don't recreate dynamic symbols from
854 dynamic tag info when the dynamic symbols have already been
855 read via section headers.
856
e409955d
FS
8572020-04-17 Fredrik Strupe <fredrik@strupe.net>
858
859 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
860 conditional VDUP instructions are disassembled correctly.
861 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
862 vdup-cond.d.
863 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
864 that VDUP instructions (which are conditional in A32) can be
865 disassembled in thumb mode.
866 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
867 vdup-thumb.d.
868
ca3f923f
AM
8692020-04-17 Alan Modra <amodra@gmail.com>
870
871 PR 25840
872 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
873
937f6614
AM
8742020-04-16 Alan Modra <amodra@gmail.com>
875
876 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
877 --no-addresses description.
878
b1bc1394
AM
8792020-04-15 Alan Modra <amodra@gmail.com>
880
881 * objdump.c (no_addresses): New static var.
882 (usage): Print help for --no-addresses.
883 (long_options): Add --no-addresses entry.
884 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
885 (disassemble_bytes): Don't print current line address, or reloc
886 address.
887 * doc/binutils.texi: Document objdump --no-addresses.
888
001890e1
AM
8892020-04-15 Alan Modra <amodra@gmail.com>
890
891 PR 25822
892 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
893 reading buckets or chains fails.
894
b71d4fa7
AM
8952020-04-15 Alan Modra <amodra@gmail.com>
896
897 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
898 etc. after freeing.
899
89246a0e
AM
9002020-04-15 Alan Modra <amodra@gmail.com>
901
902 * readelf.c (get_group_flags): Translate text.
903 (get_file_type, get_symbol_binding, get_symbol_type),
904 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
905
c98a4545
AM
9062020-04-15 Alan Modra <amodra@gmail.com>
907
908 PR 25821
909 * readelf.c (get_num_dynamic_syms): Typo fix.
910
645f43a8
AM
9112020-04-14 Alan Modra <amodra@gmail.com>
912
913 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
914 possibility of overflow when checking number of conflicts.
915
10ca4b04
L
9162020-04-14 H.J. Lu <hongjiu.lu@intel.com>
917
918 PR binutils/25707
919 * readelf.c (nbuckets): New.
920 (nchains): Likewise.
921 (buckets): Likewise.
922 (chains): Likewise.
923 (ngnubuckets): Likewise.
924 (gnubuckets): Likewise.
925 (gnuchains): Likewise.
926 (mipsxlat): Likewise.
927 (ngnuchains): Likewise.
928 (gnusymidx): Likewise.
929 (VALID_SYMBOL_NAME): Likewise.
930 (VALID_DYNAMIC_NAME): Use it.
931 (get_dynamic_data): Moved before process_dynamic_section.
932 (get_num_dynamic_syms): New function.
933 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
934 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
935 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
936 table.
937 (get_symbol_index_type): Don't print "bad section index" when
938 there is no section header.
939 (print_dynamic_symbol): Rewrite.
940 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
941 symbol table.
942
bb897477
RO
9432020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
944
945 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
946 enable on *-*-solaris*.
947
00386881
NC
9482020-03-30 Nick Clifton <nickc@redhat.com>
949
950 PR binutils/25662
951 * objcopy.c (copy_object): When copying PE format files set the
952 timestamp field in the pe_data structure if the preserve_dates
953 flag is set.
954 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
955 --preserve-dates in place of the -p option, in order to make its
956 effect more obvious.
957
0a6a8b59
AM
9582020-03-28 Alan Modra <amodra@gmail.com>
959
960 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
961 clear_xfail hppa*-*-*elf*. Revert mips xfails.
962
6a81c59b
AM
9632020-03-28 Alan Modra <amodra@gmail.com>
964
965 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
966 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
967 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
968 test. Pass "-p" to objcopy for the executable test.
969
1fafefd5
JL
9702020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
971
972 PR binutils/25662
973 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
974 specify whether an object file or executable should be built and tested.
975 Change test names to report whether an object file or executable is
976 being tested.
977 * testsuite/binutils-all/pr25662.ld: New test.
978 * testsuite/binutils-all/pr25662.s: New test.
979
80e2a3b6
AM
9802020-03-27 Alan Modra <amodra@gmail.com>
981
982 * readelf.c (process_archive): Don't double free qualified_name.
983 Don't break out of loop with "negative" archive_file_size, just
984 set file offset to max.
985
4c836627
AM
9862020-03-25 Alan Modra <amodra@gmail.com>
987
988 * readelf.c (process_archive): Prevent endless loop.
989
1081065c
L
9902020-03-24 H.J. Lu <hongjiu.lu@intel.com>
991
992 PR binutils/25708
993 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
994 with bfd_get_symbol_version_string.
995 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
996 * objdump.c (objdump_print_symname): Likewise.
997
7e6e972f
L
9982020-03-24 H.J. Lu <hongjiu.lu@intel.com>
999
1000 PR binutils/25708
1001 * nm.c (SYM_NAME): Removed.
1002 (print_symname): Add a pointer to struct extended_symbol_info
1003 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1004 version.
1005 (print_symdef_entry): Pass NULL to print_symname.
1006 (print_symbol_info_bsd): Update call to print_symname.
1007 (print_symbol_info_sysv): Likewise.
1008 (print_symbol_info_posix): Likewise.
1009
5a814d6d
AM
10102020-03-24 Alan Modra <amodra@gmail.com>
1011
1012 * readelf.c (process_mips_specific): Free iconf on error path.
1013
0636b245
NC
10142020-03-23 Nick Clifton <nickc@redhat.com>
1015
1016 PR 25714
1017 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1018 * write_stabs_in_sections_debugging_info: Likewise.
1019 * stab_enum_type: Likewise.
1020 * stab_modify_type: Likewise.
1021 * stab_struct_field: Likewise.
1022 * stab_end_struct_type: Likewise.
1023 * stab_start_class_type: Likewise.
1024 * stab_class_static_member: Likewise.
1025 * stab_class_baseclass: Likewise.
1026 * stab_class_start_method: Likewise.
1027 * stab_class_method_var: Likewise.
1028 * stab_class_end_method: Likewise.
1029 * stab_end_class_type: Likewise.
1030 * stab_typedef_type: Likewise.
1031 * stab_start_function: Likewise.
1032 * stab_end_block: Likewise.
1033 * stab_lineno: Likewise.
1034
5844b465
NC
10352020-03-20 Nick Clifton <nickc@redhat.com>
1036
1037 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1038 (process_section_headers): Check the return value from
1039 get_compression_header.
1040 (dump_section_as_strings): Likewise.
1041 (dump_section_as_bytes): Likewise.
1042 (load_specific_debug_section): Likewise.
1043
3d98c460
L
10442020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1045
1046 * ar.c (main): Update bfd_plugin_set_program_name call.
1047 * nm.c (main): Likewise.
1048
f3a08f77
NC
10492020-03-19 Nick Clifton <nickc@redhat.com>
1050
1051 PR 25676
1052 * testsuite/binutils-all/dw4.s: New test source file.
1053 * testsuite/binutils-all/nm.exp: Run the new test.
1054
ef3df110
L
10552020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1056
1057 * readelf.c (process_symbol_table): Use unsigned long for si.
1058
81a65eb3
AM
10592020-03-19 Alan Modra <amodra@gmail.com>
1060
1061 * elfcomm.c: Don't include bfd.h or bucomm.h.
1062 (program_name): Declare.
1063 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1064 and substitute FALSE and TRUE.
1065 (setup_archive, setup_nested_archive): Likewise.
1066 * elfcomm.h: Likewise.
1067
1cb7d8b1
AM
10682020-03-19 Alan Modra <amodra@gmail.com>
1069
1070 * readelf.c (process_archive): Always return via path freeing
1071 memory. Formatting.
1072
b966f55f
AM
10732020-03-19 Alan Modra <amodra@gmail.com>
1074
1075 * readelf.c (process_netbsd_elf_note): Validate descsz before
1076 accessing descdata. Formatting.
1077
645ba681
AM
10782020-03-19 Alan Modra <amodra@gmail.com>
1079
1080 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1081 * elfcomm.h (setup_archive): Update prototype.
1082
28d13567
AM
10832020-03-16 Alan Modra <amodra@gmail.com>
1084
1085 * readelf.c (get_symbols): New function.
1086 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1087 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1088
60e63c3e
AM
10892020-03-16 Alan Modra <amodra@gmail.com>
1090
1091 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1092 Detect shift overflows and check that terminating byte is found.
1093 Print an error on a bad uleb128.
1094
1bd6175a
AM
10952020-03-14 Alan Modra <amodra@gmail.com>
1096
1097 * readelf.c (process_file): Clean ba_cache.
1098
780f96ae
AM
10992020-03-14 Alan Modra <amodra@gmail.com>
1100
1101 * elfcomm.h (setup_archive): Update prototype.
1102 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1103 check longnames_size.
1104 (setup_nested_archive): Get file size and pass to setup_archive.
1105 * elfedit.c (process_archive): Likewise.
1106 * readelf.c (process_archive): Pass filedata->file_size to
1107 setup_archive.
1108
f761cb13
AM
11092020-03-14 Alan Modra <amodra@gmail.com>
1110
1111 * readelf.c (dump_section_as_strings): Free memory on error exit.
1112 (dump_section_as_bytes, process_notes_at): Likewise.
1113 (get_build_id): Free enote.
1114
06d949ec
KR
11152020-03-13 Kamil Rytarowski <n54@gmx.com>
1116
1117 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1118 NT_NETBSDCORE_LWPSTATUS notes.
1119
fd486f32
AM
11202020-03-13 Alan Modra <amodra@gmail.com>
1121
1122 * elfcomm.c (get_archive_member_name): Always return malloc'd
1123 string or NULL.
1124 * elfedit.c (process_archive): Tidy memory on all return paths.
1125 * readelf.c (process_archive): Likewise.
1126 (process_symbol_table): Likewise.
1127 (ba_cache): New, replacing ..
1128 (get_symbol_for_build_attribute): ..static vars here. Free
1129 strtab and symtab before loading new ones. Reject symtab without
1130 valid strtab in loop, breaking out of loop on valid symtab.
1131 (process_file): Free ba_cache symtab and strtab here, resetting
1132 ba_cache.
1133
8fb879cd
AM
11342020-03-12 Alan Modra <amodra@gmail.com>
1135
1136 * readelf.c (process_section_headers): Don't just set
1137 filedata->section_headers NULL, free it first. Similarly for
1138 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1139 symtab_shndx_list. Zero associated counts too.
1140 (process_object): Free symtab_shndx_list.
1141 (process_file): Free various allocated filedata tables.
1142
5496f3c6
NC
11432020-03-11 Nick Clifton <nickc@redhat.com>
1144
1145 PR 25611
1146 PR 25614
1147 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1148 li_segment_size fields.
1149 * dwarf.c (read_debug_line_header): Record the address size and
1150 segment selector size values (if present) in the lineinfo
1151 structure.
1152 (display_formatted_table): Warn if the format count is empty but
1153 the table itself is not empty.
1154 Display the format count and entry count at the start of the table
1155 dump.
1156 (display_debug_lines_raw): Display the address size and segement
1157 selector size fields, if present.
1158 * testsuite/binutils-all/dw5.W: Update expected output.
1159
9cc89dc0
AM
11602020-03-11 Alan Modra <amodra@gmail.com>
1161
1162 PR 25651
1163 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1164 pad_to_set on second block of code dealing with padding.
1165 Replace "c" with "num_sec" and don't recalculate number of
1166 sections on second block. Size arrays using sizeof (element)
1167 rather than sizeof (element type).
1168
41da0822
AM
11692020-03-10 Alan Modra <amodra@gmail.com>
1170
1171 * objdump.c (disassemble_section): Don't call qsort unless
1172 sym count is at least two.
1173 (disassemble_data): Don't call memcpy with NULL src.
1174
95099889
AM
11752020-03-09 Alan Modra <amodra@gmail.com>
1176
1177 PR 25645
1178 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1179 to get_data rather than multiplying.
1180 (dump_ia64_vms_dynamic_relocs): Likewise.
1181 (process_version_sections): Correct order of size and nmemb args
1182 in get_data call.
1183 (process_mips_specific): Likewise.
1184
a15de1f5
L
11852020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1186
1187 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1188 "memory checkers" in comments.
1189
9979ab66
SM
11902020-03-06 Simon Marchi <simon.marchi@efficios.com>
1191
1192 PR 25491
1193 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1194 * doc/Makefile.in: Re-generate.
1195
a0dcf297
NC
11962020-03-06 Nick Clifton <nickc@redhat.com>
1197
1198 * objcopy.c (check_new_section_flags): New function. Reject the
1199 SEC_COFF_SHARED flag if the target is not a COFF binary.
1200 (copy_object): Call check_new_section_flags.
1201 (setup_section): Likewise.
1202 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1203 flag cannot be applied to ELF binaries.
1204
a9b90127
AM
12052020-03-06 Alan Modra <amodra@gmail.com>
1206
1207 PR 25637
1208 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1209
d1faf7ca
AM
12102020-03-05 Alan Modra <amodra@gmail.com>
1211
1212 PR 25629
1213 * objcopy.c (filter_symbols): Don't segfault on NULL
1214 prefix_symbols_string.
1215
eef64366
CE
12162020-03-04 Christian Eggers <ceggers@gmx.de>
1217
1218 * objcopy.c (copy_object): Convert from bytes to octets for
1219 --gap-fill and --pad-to.
1220
5be2b2f5
NC
12212020-03-03 Nick Clifton <nickc@redhat.com>
1222
1223 PR 25625
1224 * prdbg.c (pr_tag_type): Remove call to abort.
1225
b312fea1
AM
12262020-03-02 Aaron Merey <amerey@redhat.com>
1227
1228 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1229 selection.
1230
ba3265d0
NC
12312020-03-02 Nick Clifton <nickc@redhat.com>
1232
1233 PR 25543
1234 * readelf.c (dump_section_as_strings): Display new-line characters
1235 as \n and then insert a line break.
1236 * testsuite/binutils-all/pr25543.s: New test.
1237 * testsuite/binutils-all/pr25543.d: Test driver.
1238 * testsuite/binutils-all/readelf.exp: Run the new test.
1239
736990c4
NC
12402020-02-27 Nick Clifton <nickc@redhat.com>
1241
1242 PR 25526
1243 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1244 get_data is unable to load the string table.
1245
dc1e8a47
AM
12462020-02-26 Alan Modra <amodra@gmail.com>
1247
1248 * elfedit.c: Indent labels correctly.
1249 * readelf.c: Likewise.
1250 * resres.c: Likewise.
1251
ecda9016
L
12522020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1253
1254 PR binutils/25584
1255 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1256 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1257
83d4d556
NC
12582020-02-24 Nick Clifton <nickc@redhat.com>
1259
1260 PR 25499
1261 * doc/binutils.texi (objdump): Fix typo in description of
1262 objdump's -g option.
1263
bd0cf5a6
NC
12642020-02-20 Nelson Chu <nelson.chu@sifive.com>
1265
1266 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1267 is changed.
1268
741cb839
EC
12692020-02-19 Jordan Rupprecht <rupprecht@google.com>
1270
1271 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1272
9f1528a1
AB
12732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * configure: Regenerate.
1276
3a5d12fb
FS
12772020-02-10 Fangrui Song <maskray@google.com>
1278
1279 * objcopy.c (parse_flags): Handle "exclude".
1280 * doc/binutils.texi: Document the support.
1281
678d457f
AM
12822020-02-10 Aaron Merey <amerey@redhat.com>
1283
1284 * binutils/testsuite/binutils-all/debuginfod.exp:
1285 Replace set ::env with setenv.
46471187
AM
1286 Start server before setting environment variable.
1287 Specify tmpdir as the location of the server's
1288 database.
1289 Check additional server metrics at start-up.
678d457f 1290
e8319fde
NC
12912020-02-07 Nick Clifton <nickc@redhat.com>
1292
1293 * README-how-to-make-a-release: Add note about updating the
1294 GAS/NEWS URL in the next release.
1295
9fc0b501
SB
12962020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1297
1298 PR 25469
1299 * readelf.c (get_machine_flags): Add support for Z80N machine
1300 number.
1301
e1104d08
NC
13022020-02-07 Nick Clifton <nickc@redhat.com>
1303
1304 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1305 of the truncated file name.
1306
c2e6f744 13072020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1308
1309 * objdump.c (print_jump_visualisation): New function.
1310 (disassemble_bytes): Call new function.
1311
02e0be69
AM
13122020-02-06 Alan Modra <amodra@gmail.com>
1313
1314 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1315 TCL procedure.
1316 (supports_gnu_osabi): New procedure.
1317 (is_generic): New, from ld-lib.exp.
1318 (supports_gnu_unique): Use the above.
1319
e8b79122
AM
13202020-02-04 Alan Modra <amodra@gmail.com>
1321
1322 * Makefile.am (CFILES): Add od-elf32_avr.c.
1323 * Makefile.in: Regenerate.
1324 * po/POTFILES.in: Regenerate.
1325
27a45f42
AS
13262020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1327
1328 * readelf.c (dump_relocations, dump_relocations)
1329 (decode_arm_unwind_bytecode, process_dynamic_section)
1330 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1331 error message.
1332
0b398d69
ST
13332020-02-03 Sergei Trofimovich <siarheit@google.com>
1334
1335 * coffdump.c (program_name): Drop redundant definition.
1336 * srconv.c (program_name): Likewise
1337 * sysdump.c (program_name): Likewise
1338
a8c4d40b
L
13392020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1340
1341 PR gas/25380
1342 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1343 same file with different section pointers.
1344
cb6ad9bb
NC
13452020-02-01 Nick Clifton <nickc@redhat.com>
1346
1347 * README-how-to-make-a-release: Update with more details on the
1348 release making process.
1349
53943f32
NC
13502020-01-31 Nick Clifton <nickc@redhat.com>
1351
1352 * po/sv.po: Updated Swedish translation.
1353
55be8fd0
NC
13542020-01-28 Nick Clifton <nickc@redhat.com>
1355
1356 * readelf.c (get_build_id): Simplify warning message about corrupt
1357 notes encountered whilst scanning for the build-id.
1358
82ef9cad
RM
13592020-01-27 Roland McGrath <mcgrathr@google.com>
1360
1361 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1362 for overlapping ranges so that (A == B) == (B == A) holds.
1363
e3696f67
AM
13642020-01-27 Alan Modra <amodra@gmail.com>
1365
1366 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1367 case statement with switch statement.
1368
2f796de6
NC
13692020-01-24 Nick Clifton <nickc@redhat.com>
1370
1371 * readelf.c (get_build_id): Fix warning messages about corrupt
1372 notes.
1373
24e648d4
NC
13742020-01-23 Nick Clifton <nickc@redhat.com>
1375
1376 * po/fr.po: Updated French translation.
1377
c48acf6f
YC
13782020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1379
1380 PR 25417
1381 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1382
26916852
NC
13832020-01-20 Nick Clifton <nickc@redhat.com>
1384
1385 * po/pt.po: Updated Portuguese translation.
1386 * po/uk.po: Updated Ukranian translation.
1387
b248e9ce
NC
13882020-01-18 Nick Clifton <nickc@redhat.com>
1389
1390 * README-how-to-make-a-release: Update notes on how to cut a
1391 branch for a release.
1392
1b1bb2c6
NC
13932020-01-18 Nick Clifton <nickc@redhat.com>
1394
1395 * configure: Regenerate.
1396 * po/binutils.pot: Regenerate.
1397
ae774686
NC
13982020-01-18 Nick Clifton <nickc@redhat.com>
1399
1400 Binutils 2.34 branch created.
1401
82a9ed20
TT
14022020-01-17 Thomas Troeger <tstroege@gmx.de>
1403
1404 * objdump.c (jump_info_visualize_address): Discard jumps that are
1405 no longer needed.
1406 (disassemble_bytes): Only compute the maximum level if jumps were
1407 detected.
1408
6a1939f5
NC
14092020-01-13 Nick Clifton <nickc@redhat.com>
1410
c87c17c1 1411 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1412 * testsuite/binutils-all/debuginfod.exp: New tests.
1413
1d67fe3b
TT
14142020-01-13 Thomas Troeger <tstroege@gmx.de>
1415
1416 * objdump.c (visualize_jumps, color_output, extended_color_output)
1417 (detected_jumps): New variables.
1418 (usage): Add the new jump visualization options.
1419 (option_values): Add new option value.
1420 (long_options): Add the new option.
1421 (jump_info_new, jump_info_free): New functions.
1422 (jump_info_min_address, jump_info_max_address): Likewise.
1423 (jump_info_end_address, jump_info_is_start_address): Likewise.
1424 (jump_info_is_end_address, jump_info_size): Likewise.
1425 (jump_info_unlink, jump_info_insert): Likewise.
1426 (jump_info_add_front, jump_info_move_linked): Likewise.
1427 (jump_info_intersect, jump_info_merge): Likewise.
1428 (jump_info_sort, jump_info_visualize_address): Likewise.
1429 (disassemble_jumps): New function - used to locate jumps.
1430 (disassemble_bytes): Add ascii art generation.
1431 (disassemble_section): Add scan to locate jumps.
1432 (main): Parse the new visualization option.
1433 * doc/binutils.texi: Document the new feature.
1434 * NEWS: Mention the new feature.
1435
a788aedd
AM
14362020-01-13 Alan Modra <amodra@gmail.com>
1437
a4f2b7c5
AM
1438 PR 25360
1439 PR 25361
a788aedd
AM
1440 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1441 fde_fc col_type and col_offset.
1442 * readelf.c (apply_relocations): Move symsec check earlier.
1443 (free_debug_section): Free reloc_info.
1444 (process_notes_at): Free pnotes on error path.
1445 (process_object): Free dump_sects here..
1446 (process_archive): ..not here.
1447
805f38bc
AM
14482020-01-13 Alan Modra <amodra@gmail.com>
1449
1450 PR 25362
1451 * nm.c (display_rel_file): Free dyn_syms.
1452
ffebb0bb
NC
14532020-01-09 Nick Clifton <nickc@redhat.com>
1454
1455 PR 25220
1456 * objcopy.c (empty_name): New variable.
1457 (need_sym_before): Prevent an attempt to free a static variable.
1458 (filter_symbols): Avoid strcmp test by checking for pointer
1459 equality.
1460
ade4fd9b
NC
14612020-01-09 Nick Clifton <nickc@redhat.com>
1462
1463 * po/zh_TW.po: Updated Traditional Chinese translation.
1464
14652020-01-09 Aaron Merey <amerey@redhat.com>
1466
1467 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1468 * Makefile.in: Regenerate.
1469 * NEWS: Update.
1470 * config.in: Regenerate.
1471 * configure: Regenerate.
1472 * configure.ac: Call AC_DEBUGINFOD.
1473 * doc/Makefile.in: Regenerate.
1474 * doc/binutils.texi: Add section on using binutils
1475 with debuginfod.
1476 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1477 Query debuginfod servers for the target debug file.
1478 (load_separate_debug_info): Call
1479 debuginfod_fetch_separate_debug_info if configured with
1480 debuginfod.
1481 (load_separate_debug_files): Add file argument to
1482 load_separate_debug_info calls.
1483 * dwarf.h (get_build_id): Add declaration.
1484 * objdump.c (get_build_id): New function. Get build-id of file.
1485 * readelf.c (get_build_id): Likewise.
1486 * testsuite/binutils-all/debuginfod.exp: New tests.
1487 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1488 section.
1489
6655dba2
SB
14902020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1491
1492 * readelf.c: Add support for new Z*) relocations and machine
1493 types.
1494
b14ce8bf
AM
14952020-01-01 Alan Modra <amodra@gmail.com>
1496
1497 Update year range in copyright notice of all files.
1498
0b114740 1499For older changes see ChangeLog-2019
3499769a 1500\f
0b114740 1501Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1502
1503Copying and distribution of this file, with or without modification,
1504are permitted in any medium without royalty provided the copyright
1505notice and this notice are preserved.
1506
1507Local Variables:
1508mode: change-log
1509left-margin: 8
1510fill-column: 74
1511version-control: never
1512End: