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