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