[PATCH][GAS][AArch64] Update Cortex-X1 feature flags
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
0cc79db2
SN
12020-10-05 Samanta Navarro <ferivoz@riseup.net>
2
3 * doc/binutils.texi: Fix spelling mistakes.
4
1c9f770d
MW
52020-09-29 Mark Wielaard <mark@klomp.org>
6
7 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
8 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
9
5a805384
AM
102020-09-25 Alan Modra <amodra@gmail.com>
11
12 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
13 more field sizes.
14 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
15 allowed reloc_size. Don't read_leb128 outside of section.
16
debd1a62
MW
172020-09-23 Mark Wielaard <mark@klomp.org>
18
19 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
20 * testsuite/binutils-all/dw5.W: Adjust expected output.
21 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
22
ec47b32a
MW
232020-09-23 Mark Wielaard <mark@klomp.org>
24
25 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
26 for dwarf_version 5 just as version 3 and 4 (only 2 is
27 different).
28 (process_debug_info): Allow DW_UT_partial.
29
a2ab5831
NC
302020-09-24 Nick Clifton <nickc@redhat.com>
31
32 PR 26662
33 * doc/binutils.texi (nm): Document that 'c' is used for small
34 common symbols.
35
427234c7
LC
362020-09-21 Ludovic Courtès <ludo@gnu.org>
37
38 * doc/binutils.texi (objcopy, strip): Say that
39 '--strip-unneeded' implies '--strip-debug'.
40
0690f591
AP
412020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
42
43 * verilog.c (verilog_write_address): Properly handle 64-bit
44 addresses to avoid truncation of the high part.
45
c1229f84
AM
462020-09-16 Alan Modra <amodra@gmail.com>
47
48 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
49 * objcopy.c (is_hidden_symbol): Likewise.
50
5b3eb5ed
NC
512020-09-15 Nick Clifton <nickc@redhat.com>
52
53 * README-how-to-make-a-release (https): Add a reminder to create a
54 new Bugzilla tag for the point release, once it has been published.
55
8d58ed37
L
562020-09-11 H.J. Lu <hongjiu.lu@intel.com>
57
58 * readelf.c (get_note_type): Support NT_X86_CET.
59
ce139cd5
NC
602020-09-11 Nick Clifton <nickc@redhat.com>
61
62 PR 26595
63 * dwarf.c (load_separate_debug_info): Return NULL rather than
64 FALSE in error situations.
65 (load_separate_debug_file): Move code to load debug links to ...
66 (check_for_and_load_links): ... here. New function. Load
67 separate debug information pointed to by debuglink and
68 debugaltlink sections. Recursively scan newly loaded debug
69 information for more links and load them too.
70
dfbee680
AM
712020-09-09 Alan Modra <amodra@gmail.com>
72
73 PR 26578
74 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
75 (load_separate_debug_files): Use a stack var for build_id_data.
76
790147a9
L
772020-09-08 H.J. Lu <hongjiu.lu@intel.com>
78
79 PR ld/26587
80 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
81 to ld on PE targets for PR 25662 test.
82
7d81bc93
JL
832020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
84 Kuan-Lin Chen <kuanlinchentw@gmail.com>
85
86 * readelf.c (target_specific_reloc_handling): Handle
87 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
88
839f41a3
AM
892020-09-02 Alan Modra <amodra@gmail.com>
90
91 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
92
54b8331d
AM
932020-08-30 Alan Modra <amodra@gmail.com>
94
95 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
96 long for "bytes".
97
08d7da7d
NC
982020-08-28 Nick Clifton <nickc@redhat.com>
99
100 PR 26548
101 * dwarf.c (read_leb128): When checking for overflow of a signed
102 read, use a signed shift.
103
0861f561
CQ
1042020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
105
106 * readelf.c (get_csky_section_type_name): New.
107 (get_section_type_name): Add handler for CSKY.
108 (display_csky_attribute): New.
109 (process_arch_specific): Add handler for CSKY.
110 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
111 section.
112
b0191216
JL
1132020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
114
115 * readelf.c (get_msp430x_section_type_name): Rename to ...
116 (get_msp430_section_type_name): ... this.
117 (get_section_type_name): Use get_msp430_section_type_name.
118 (display_msp430x_attribute): Rename to ...
119 (display_msp430_attribute): ... this.
120 (process_arch_specific): Use display_msp430_attribute.
121
9e7ed8b0
JDA
1222020-08-27 John David Anglin <danglin@gcc.gnu.org>
123
124 PR 26356
125 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
126 "-j $PRIVATE$" to command on hppa*-*-hpux*.
127 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
128 dollar-sign quotes before quoting. Do this prior to generating log
129 output.
130
6b5473c9
RH
1312020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
132
133 PR 26088
134 * mclex.c (skip_until_eol): If eol was found, increment line
135 number.
136
5e9b84f7
NA
1372020-08-27 Nick Alcock <nick.alcock@oracle.com>
138
139 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
140 * readelf.c (dump_ctf_errs): Likewise.
141
926c9e76
NA
1422020-08-27 Nick Alcock <nick.alcock@oracle.com>
143
144 * objdump.c (dump_ctf_archive_member): Move error-
145 reporting...
146 (dump_ctf_errs): ... into this separate function.
147 (dump_ctf): Call it on open errors.
148 * readelf.c (dump_ctf_archive_member): Move error-
149 reporting...
150 (dump_ctf_errs): ... into this separate function. Support
151 calls with NULL fp. Adjust for new err parameter to
152 ctf_errwarning_next.
153 (dump_section_as_ctf): Call it on open errors.
154
987cf30a
NA
1552020-08-27 Nick Alcock <nick.alcock@oracle.com>
156
157 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
158 * Makefile.in: Regenerated.
159
3eba3ef3
NC
1602020-08-26 Nick Clifton <nickc@redhat.com>
161
162 PR 26405
163 * readelf.c (get_segment_type): Handle OpenBSD segment types.
164
a68aba2d
AM
1652020-08-26 Alan Modra <amodra@gmail.com>
166
167 PR 26412
168 * objcopy.c (copy_object): Don't fwrite NULL contents.
169
37f628c3
KH
1702020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
171
172 PR 26340
173 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
174
f3da8a96
AM
1752020-08-24 Alan Modra <amodra@gmail.com>
176
177 * readelf.c (dump_section_as_strings) Avoid false positive
178 "may be used uninitialised".
179
3f2e9699
L
1802020-08-22 H.J. Lu <hongjiu.lu@intel.com>
181
182 PR ld/26382
183 * nm.c (print_symname): Display only one '@' for undefined
184 versioned symbols.
185 * doc/binutils.texi: Update nm version information.
186
02391b8b
MW
1872020-08-21 Mark Wielaard <mark@klomp.org>
188
189 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
190 recognize DW_LANG_C11.
191
d1ce973e
AM
1922020-08-19 Alan Modra <amodra@gmail.com>
193
194 PR 26349
195 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
196 and info fields.
197 (dump_section_as_strings): Don't use %tx to display offset.
198
82fcdb39
AM
1992020-08-14 Alan Modra <amodra@gmail.com>
200
201 PR 26388
202 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
203 of debug_information. Correct test of max_loc_offsets and
204 max_range_lists.
205 * rddbg.c (read_debugging_info): Free dhandle on error.
206
fc0efc4b
AM
2072020-08-14 Alan Modra <amodra@gmail.com>
208
209 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
210
75e100a3
AM
2112020-08-13 Alan Modra <amodra@gmail.com>
212
213 PR 26348
214 * objcopy.c (copy_object): Report file name with endian error.
215 Error and return on abfd->read_only.
216
d3511b24
TT
2172020-08-12 Tom Tromey <tromey@adacore.com>
218
219 * dwarf-mode.el (Version): Now 1.6.
220 (dwarf-die-button-action): Tighten DIE reference regexp.
221 (dwarf-font-lock-keywords): Update name regexp.
222
79bc120c
NC
2232020-08-12 Nick Clifton <nickc@redhat.com>
224
225 PR binutils/26331
226 * readelf.c (do_demangle): New option flag.
227 (print_symbol): If do_demangle is enabled, demangle the symbol.
228 (enum long_option_values): New enum to hold long option values.
229 (options): Add demangle, no-demangle, recursion-limit and
230 no-recursion-limit options. Alpha sort the table.
231 (usage): Describe the new options.
232 (parse_args): Handle the new options.
233 * NEWS: Mention the new feature.
234 * doc/binutils.texi: Document the new feature.
235 * testsuite/binutils-all/readelf.exp: Test the new feature.
236 * testsuite/binutils-all/mangled.s: New file - assembler source.
237 * testsuite/binutils-all/readelf.demangled: New file - expected
238 output from readelf.
239
79ddc884
NC
2402020-08-12 Nick Clifton <nickc@redhat.com>
241
242 * po/sr.po: Updated Serbian translation.
243
9b0ac51b
L
2442020-08-10 H.J. Lu <hongjiu.lu@intel.com>
245
246 PR binutils/26302
247 * nm.c (with_symbol_versions): Removed.
248 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
249 (long_options): Update --with-symbol-versions entry.
250 (print_symbol): Remove the with_symbol_versions check.
251 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
252 compatibility.
253 * doc/binutils.texi: Remove --with-symbol-versions.
254
787bbc56
AM
2552020-08-05 Alan Modra <amodra@gmail.com>
256
257 PR 26337
258 * objdump.c (load_specific_debug_section): Revert last change.
259
0b97e818
AM
2602020-08-05 Alan Modra <amodra@gmail.com>
261
262 PR 26337
263 * objdump.c (load_specific_debug_section): Don't malloc space for
264 section contents, use bfd_malloc_and_get_section.
265
c8693053
RO
2662020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
267
268 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
269 * Makefile.in, doc/Makefile.in: Regenerate.
270 * configure: Regenerate.
271
ac2599c4
L
2722020-07-30 H.J. Lu <hongjiu.lu@intel.com>
273
274 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
275 to assembler.
276 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
277 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
278 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
279 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
280 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
281
c77cb2a0
MR
2822020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
283
284 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
285 New test.
286 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
287 New test.
288 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
289 New test.
290 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
291 New test.
292 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
293 New test.
294 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
295 New test.
296 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
297 New test.
298 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
299 New test.
300 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
301 New test.
302 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
303
3f1b17bb
MR
3042020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
305
306 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
307 test.
308 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
309 test.
310 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
311 test.
312 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
313 test.
314 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
315 test.
316 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
317
d70f978b
L
3182020-07-28 H.J. Lu <hongjiu.lu@intel.com>
319
320 PR binutils/26301
321 * configure: Regenerated.
322
377170fa
L
3232020-07-28 H.J. Lu <hongjiu.lu@intel.com>
324
325 PR binutils/26301
326 * configure: Regenerated.
327
8fab9282
AM
3282020-07-27 Alan Modra <amodra@gmail.com>
329
330 * objdump.c (dump_section): Don't return without calling
331 process_section_p.
332
608d61c2
L
3332020-07-27 H.J. Lu <hongjiu.lu@intel.com>
334
335 * doc/binutils.texi: Replace preceeded with preceded.
336
3abf9758
MR
3372020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
338
339 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
340 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
341 procedures.
342 (has_newabi): Remove variable.
343 (has_abi, abi_asflags, abi_ldflags): New associative array
344 variables.
345 (irixemul): New variable.
346 Replace `run_dump_test' calls where applicable throughout with
347 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
348 as appropriate. Use `noarch' for tests that require their own
349 architecture setting.
350 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
351 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
352 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
353 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
354 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
355 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
356 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
357 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
358 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
359 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
360 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
361 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
362 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
363 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
364 GAS flags.
365 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
366 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
367 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
368 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
369 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
370 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
371 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
372
f6720b1c
AM
3732020-07-24 Aaron Merey <amerey@redhat.com>
374
375 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
376 * Makefile.in: Rebuild.
377 * configure: Rebuild.
378 * doc/Makefile.in: Rebuild.
379
bf772a1e
NC
3802020-07-24 Nick Clifton <nickc@redhat.com>
381
382 * README-how-to-make-a-release: Various small updates whilst
383 creating the 2.35 release.
384
0b884151
NA
3852020-07-22 Nick Alcock <nick.alcock@oracle.com>
386
387 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
388 option.
389
3dd6b890
NA
3902020-07-22 Nick Alcock <nick.alcock@oracle.com>
391
392 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
393 (dump_ctf): Likewise.
394
8b37e7b6
NA
3952020-07-22 Nick Alcock <nick.alcock@oracle.com>
396
397 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
398 * readelf.c (dump_ctf_archive_member): Likewise.
399
df16e041
NC
4002020-07-22 Nick Clifton <nickc@redhat.com>
401
402 * readelf.c (parse_args): Silence potential warnings about a
403 memory resource leak when allocating space for ctf option values.
404 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
405 variable.
406
84dc5f0b
NC
4072020-07-21 Nick Clifton <nickc@redhat.com>
408
409 * po/sv.po: Updated Swedish translation.
410
570b0ed6
CZ
4112020-07-14 Claudiu Zissulescu <claziss@gmail.com>
412
413 * testsuite/binutils-all/arc/double_regs.s: New test.
414 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
415
0a5c31d1
NC
4162020-07-13 Nick Clifton <nickc@redhat.com>
417
418 * po/fr.po: Updated French translation.
419
7a34d0ea
AM
4202020-07-13 Alan Modra <amodra@gmail.com>
421
422 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
423 optional machine-os arg.
424
a308b89d
L
4252020-07-11 H.J. Lu <hongjiu.lu@intel.com>
426
427 * readelf.c (decode_x86_feature_2): Handle
428 GNU_PROPERTY_X86_FEATURE_2_TMM.
429
af2b3186
TV
4302020-07-10 Tom de Vries <tdevries@suse.de>
431
432 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
433 information in the end_sequence row.
434 * testsuite/binutils-all/dw5.W: Update.
435 * testsuite/binutils-all/objdump.WL: Update.
436
fe49679d
AM
4372020-07-09 Alan Modra <amodra@gmail.com>
438
439 * dlltool.c: Remove powerpc PE support and comments.
440 * configure.ac: Remove powerpc PE dlltool config.
441 * configure: Regenerate.
442
d90171de
NC
4432020-07-09 Nick Clifton <nickc@redhat.com>
444
445 * rclex.c: Add OWNERDRAW keyword.
446 * rcparse.y: Add OWNERDRAW token.
447 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
448 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
449 BITMAP flags.
450 * windres.c (extended_menuitems): Likewise.
451 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
452
e3fdc001
AM
4532020-07-09 Alan Modra <amodra@gmail.com>
454
455 * readelf (slurp_hppa_unwind_table): Set table_len before use
456 in relocation sanity checks.
457
5a2296ac
AM
4582020-07-07 Alan Modra <amodra@gmail.com>
459
460 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
461 * testsuite/binutils-all/nm.exp: Likewise.
462 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
463 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
464 * testsuite/binutils-all/set-section-alignment.d: Likewise.
465 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
466
efd0ed58
AM
4672020-07-07 Alan Modra <amodra@gmail.com>
468
469 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
470 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
471
17550be7
NC
4722020-07-06 Nick Clifton <nickc@redhat.com>
473
474 * po/bg.po: Updated Bulgarian translation.
475 * po/pt.po: Updated Portuguese translation.
476 * po/uk.po: Updated Ukranian translation.
477
ddb43bab
AM
4782020-07-06 Alan Modra <amodra@gmail.com>
479
480 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
481 find string length.
482
b19d852d
NC
4832020-07-04 Nick Clifton <nickc@redhat.com>
484
485 * configure: Regenerate.
486 * po/binutils.pot: Regenerate.
487
b115b9fd
NC
4882020-07-04 Nick Clifton <nickc@redhat.com>
489
490 Binutils 2.35 branch created.
491
0942c7ab
NC
4922020-07-02 Nick Clifton <nickc@redhat.com>
493
494 PR 26028
495 * readelf.c (print_symbol): Handle truncation of symbol names.
496 (options): Add -T/--silent-truncation option.
497 (parse_args): Handle the option.
498 (print_dynamic_symbol): Correct calculation of width available to
499 display symbol name.
500 * doc/binutils.texi: Document the -T option to readelf.
501 * NEWS: Mention the new feature.
502
bbd19b19
L
5032020-06-30 H.J. Lu <hongjiu.lu@intel.com>
504
505 * NEWS: Mention x86 NaCl target support removal.
506 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
507 x86 NaCl target support.
508 * testsuite/binutils-all/elfedit-1.d: Likewise.
509 * testsuite/binutils-all/i386/i386.exp: Likewise.
510 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
511 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
512 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
513 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
514 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
515 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
516 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
517 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
518 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
519 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
520 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
521 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
522
5568cc9e
NC
5232020-06-30 Nick Clifton <nickc@redhat.com>
524
525 * dwarf.c (read_and_display_attr_value): Support
526 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
527 DW_AT_comp_dir.
528
d74b88ed
AM
5292020-06-30 Alan Modra <amodra@gmail.com>
530
531 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
532 xfail for nds32.
533
9f27c364
HPN
5342020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
535
536 * dwarf.c (display_debug_str_offsets): Rename local variable
537 index to idx. Move to top of function.
538
279edac5
AM
5392020-06-29 Alan Modra <amodra@gmail.com>
540
541 * dwarf.c: Use C style comments.
542 * resrc.c: Likewise.
543
cfc16775
AM
5442020-06-27 Alan Modra <amodra@gmail.com>
545
546 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
547 after freeing.
548 (release_archive): Set fields of arch to NULL after freeing.
549
2f6ecaed
NA
5502020-06-26 Nick Alcock <nick.alcock@oracle.com>
551
552 * readelf.c (dump_section_as_ctf): Support .ctf archives using
553 ctf_arc_bufopen. Automatically load the .ctf member of such
554 archives as the parent of all other members, unless specifically
555 overridden via --ctf-parent. Split out dumping code into...
556 (dump_ctf_archive_member): ... here, as in objdump, and call
557 it once per archive member.
558 (dump_ctf_indent_lines): Code style fix.
559
094e34f2
NA
5602020-06-26 Nick Alcock <nick.alcock@oracle.com>
561
562 * configure.ac [--enable-libctf]: New, default yes.
563 Set ENABLE_LIBCTF accordingly.
564 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
565 * configure: Regenerate.
566 * config.in: Regenerate.
567 * Makefile.in: Regenerate.
568 * aclocal.m4: Regenerate.
569 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
570 (option_values): Likewise.
571 (long_options): Likewise.
572 (main): Likewise.
573 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
574 (make_ctfsect): Likewise.
575 (dump_ctf_archive_member): Likewise.
576 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
577 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
578 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
579 (usage): Likewise.
580 (process_section_contents): Likewise.
581 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
582 (dump_ctf_indent_lines): Likewise.
583 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
584
2a1bb84c
JB
5852020-06-26 Jan Beulich <jbeulich@suse.com>
586
587 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
588 redundant text from x86 specific part of -M section.
589
85f7484a
PB
5902020-06-26 Pat Bernardi <bernardi@adacore.com>
591
592 * readelf.c (display_m68k_gnu_attribute): New function.
593 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
594
d0dded5b
L
5952020-06-23 H.J. Lu <hongjiu.lu@intel.com>
596
597 PR binutils/26160
598 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
599 * testsuite/binutils-all/pr26160.r: Likewise.
600 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
601
39f381cb
NC
6022020-06-23 Nick Clifton <nickc@redhat.com>
603
604 PR 26160
605 * dwarf.c (fetch_indexed_string): Detect and handle old style
606 .debug_str_offset tables.
607 (display_debug_str_offsets): Likewise. Also add support for
608 .debug_str_offsets.dwo sections.
609
80fda85c
L
6102020-06-23 H.J. Lu <hongjiu.lu@intel.com>
611
612 PR binutils/26112
613 * testsuite/binutils-all/pr26112.o.bz2: New file.
614 * testsuite/binutils-all/pr26112.r: Likewise.
615 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
616
d081ffff
AM
6172020-06-23 Alan Modra <amodra@gmail.com>
618
619 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
620 remote_file delete command.
621
e4b7104b
NC
6222020-06-22 Nick Clifton <nickc@redhat.com>
623
624 PR 26112
625 * dwarf.c (display_debug_str_offsets): Add code to display the
626 contents of the .debug_str_offsets section.
627 (display_debug_macro): Add support for DW_MACRO_define_strx and
628 DW_MACRO_undef_strx.
629
d768f160
SJ
6302020-06-22 Saagar Jha <saagar@saagarjha.com>
631
632 * od-macho.c: Dump linkedit data for new load commands.
633
5fd104ad
AM
6342020-06-19 Alan Modra <amodra@gmail.com>
635
636 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
637 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
638 (run_dump_test): Use check_relro_support to decide whether to pass
639 extra ld option "-z norelro".
640
fd17d1e6
AM
6412020-06-11 Alan Modra <amodra@gmail.com>
642
643 * readelf.c (process_mips_specific): Don't alloc memory for
644 Elf_Internal_Options.
645
d0c4e780
AM
6462020-06-11 Alan Modra <amodra@gmail.com>
647
648 * readelf.c (process_mips_specific): Assert size of internal
649 types match size of external types, and simplify allocation of
650 internal buffer. Catch possible integer overflow when sanity
651 checking option size. Don't assume options are a regular array.
652 Sanity check reginfo option against option size. Use PRI macros
653 when printing.
654
25065fcd
RH
6552020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
656
657 PR 26082
658 * mclex.c (yylex): Reject lines that reach end-of-file without a
659 terminating newline character.
660
b37a7714
NC
6612020-06-08 Nick Clifton <nickc@redhat.com>
662
663 PR 26093
664 * doc/binutils.texi (strings): Fix typo.
665
c4b2f181
NC
6662020-06-08 Nick Clifton <nickc@redhat.com>
667
668 PR 26086
669 * dwarf.c (process_debug_info): Check that there is space in the
670 debug_information array before filling in an entry.
671
1424c35d
AM
6722020-06-06 Alan Modra <amodra@gmail.com>
673
674 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
675
8affa48a
JA
6762020-06-05 Joel Anderson <joelanderson333@gmail.com>
677
678 PR 26082
679 * mclex.c (yylex): Add test for an empty input stream.
680
8eca5c7d
SC
6812020-06-04 Stephen Casner <casner@acm.org>
682
683 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
684 for test using section pseudo-ops compatible with pdp11.
685 * testsuite/binutils-all/objcopy.exp: Select alternate source.
686
b3db6d07
JM
6872020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
688
689 * objdump.c (disassemble_data): Set disasm_info.endian_code to
690 disasm_info.endian after the latter is initialized to the
691 endianness reported by BFD.
692
0a4f37af
AM
6932020-06-04 Alan Modra <amodra@gmail.com>
694
695 * testsuite/binutils-all/i386/i386.exp: Remove global directive
696 outside proc body.
697 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
698 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
699
913e0fd4
JA
7002020-06-03 Joel Anderson <joelanderson333@gmail.com>
701
702 * windmc.h (struct mc_node): Add id_typecast field.
703 * mcparse.y (message): Initialise the id_typecast field.
704 * windmc.c (write_dbg): Use the id_typecast field as a parameter
705 when calling write_dbg_define.
706 (write_header): Likewise.
707
4a322448
AM
7082020-06-03 Alan Modra <amodra@gmail.com>
709
710 PR 26069
711 * objcopy.c (copy_relocations_in_section): Free relpp on error.
712 Don't accidentally free isection->orelocation.
713
0bee4d1c
AM
7142020-06-02 Alan Modra <amodra@gmail.com>
715
716 * testsuite/binutils-all/ar.exp (obj): Set up object file name
717 extension. Use throughout. Don't completely exclude non-ELF
718 alpha targets. Run long_filenames test for tic30. Exclude thin
719 archive tests for aix, ecoff and vms.
720 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
721 extension. Use throughout. Don't exclude non-ELF alpha targets
722 from "bintest.a".
723
ab7ad287
MF
7242020-05-28 Max Filippov <jcmvbkbc@gmail.com>
725
726 * MAINTAINERS (Xtensa): Add myself as maintainer.
727
3f3c3608
AM
7282020-05-23 Alan Modra <amodra@gmail.com>
729
730 * testsuite/binutils-all/ar.exp (many_files): New test.
731
9db70fc3
AM
7322020-05-21 Alan Modra <amodra@gmail.com>
733
734 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
735 * dlltool.c: Likewise.
736 * elfcomm.c: Likewise.
737 * rddbg.c: Likewise.
738 * readelf.c: Likewise.
739 * stabs.c: Likewise.
740 * windmc.c: Likewise.
741 * windres.c: Likewise.
742 * wrstabs.c: Likewise.
743
c31ab5a0
AM
7442020-05-21 Alan Modra <amodra@gmail.com>
745
746 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
747 access.
748
8f595e9b
NC
7492020-05-20 Nelson Chu <nelson.chu@sifive.com>
750
751 * dwarf.c: Updated since DECLARE_CSR is changed.
752
8ac10c5b
L
7532020-05-19 H.J. Lu <hjl.tools@gmail.com>
754
755 PR binutils/25809
756 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
757 segment doesn't match the .dynamic section and checks are
758 enabled.
759 (struct filedata): Add dynamic_symtab_section and
760 dynamic_strtab_section fields.
761 (process_section_headers): Set dynamic_symtab_section to the
762 .dynsym section. Set dynamic_strtab_section to the .dynstr
763 section.
764 (process_dynamic_section): Warn if the .dynsym section doesn't
765 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
766 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
767
c177f377
AM
7682020-05-19 Alan Modra <amodra@gmail.com>
769
770 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
771 (replace_members): Use bfd_get_filename rather than accessing
772 bfd->filename directly.
773 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
774 * binemul.c (do_ar_emul_append): Likewise.
775 * coffgrok.c (coff_grok): Likewise.
776
83d27139
SH
7772020-05-18 Stafford Horne <shorne@gmail.com>
778
779 * MAINTAINERS (OR1K): Add myself as maintainer.
780
d11a9fab
AB
7812020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * doc/binutils.texi: Mention 'entry address' in the set-start and
784 adjust-start options descriptions.
785
546cb2d8
NC
7862020-05-05 Nick Clifton <nickc@redhat.com>
787
788 * dwarf.c (do_checks): New global variable.
789 (display_formatted_table): Warn about an unexpected number of
790 columns in the table, if checks are enabled. Do not complain
791 about the lack of data following the number of entries in the
792 table if the table is empty.
793 (display_debug_lines_decoded): Only warn about an unexpected
794 number of columns in a table if checks are enabled.
795 * dwarf.h (do_checks): Add a prototype.
796 * elfcomm.c (error): Remove weak attribute.
797 (warn): Likewise.
798 * readelf.c (do_checks): Delete.
799 (warn): Delete.
800 (process_section_headers): Only warn about empty sections if
801 checks are enabled.
802
e052e2ba
FS
8032020-05-04 Fangrui Song <maskray@google.com>
804
805 * objcopy.c (copy_object): Allow empty section.
806 * testsuite/binutils-all/update-section.exp: Add test.
807
070b775f
NC
8082020-05-04 Nick Clifton <nickc@redhat.com>
809
810 PR 25917
811 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
812 supicious number of entries for DWARF-5 format directory and file
813 name tables. Do not display file name table header if the table
814 is empty. Do not allocate space for empty tables.
815
9c7b8e9b
AM
8162020-05-04 Alan Modra <amodra@gmail.com>
817
818 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
819 section. Don't assume endian of host matches nds32 target. Free
820 buffer.
821
60832332
AM
8222020-05-01 Alan Modra <amodra@gmail.com>
823 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
824
825 * objdump.c (disassemble_bytes): Don't scan for zeros when
826 disassembling zeros. Translate "resuming at file offset" message.
827 Formatting. Replace some signed variables with unsigned.
828
09c1e68a
AC
8292020-04-30 Alex Coplan <alex.coplan@arm.com>
830
831 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
832 disassembly.
833 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
834
8a8a1171
NC
8352020-04-30 Nick Clifton <nickc@redhat.com>
836
837 * testsuite/lib/binutils-common.exp (check_pie_support): New
838 proc.
839
cb4c35cf
AB
8402020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
841
842 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
843 range_entries for the same offset.
844
1b513401
NC
8452020-04-29 Nick Clifton <nickc@redhat.com>
846
847 * readelf.c (warn): New function - like elfcomm.c version but only
848 produces output if warnings are enabled.
849 (struct options): Add --lint and --enable-checks.
850 (usage): Add entry for --lint.
851 (parse_args): Handle -L. If checks are enabled but no dumps have
852 been selected then enable all dumps.
853 (process_section_headers): Replace long if-then-else sequence with
854 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
855 SHT_PROGBITS sections.
856 (process_file): Do not complain if the file is an archive and lint
857 mode has been enabled.
858 * elfcomm.c (error): Make the function weak.
859 (warn): Likewise.
860 * NEWS: Mention the new feature.
861 * doc/binutils.texi: Document the new feature.
862 * dwarf.h (report_leb_status): Add file name and line number
863 parameters. Include them in the diagnostic output.
864 (READ_ULEB): Pass file and line number to report_leb_status.
865 (READ_SLEB): Likewise.
866 * dwarf.c (read_and_print_leb128): Pass file and line number to
867 report_leb_status.
868 * testsuite/binutils-all/readelf.exp: Add test of new feature.
869 * testsuite/binutils-all/zero-sec.s: New test source file.
870 * testsuite/binutils-all/zero-sec.r: Expected output from new
871 test.
872
c2e71e57
NC
8732020-04-29 Nick Clifton <nickc@redhat.com>
874
875 * po/sr.po: Updated Serbian translation.
876
90837ea7
AM
8772020-04-26 Alan Modra <amodra@gmail.com>
878
879 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
880 read before dereferencing, and gracefully return. Remove
881 gnu_hash_error variable. Free gnu hash arrays if number of
882 syms found is zero.
883
2482f306
AM
8842020-04-24 Alan Modra <amodra@gmail.com>
885
886 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
887 non-zero.
888 (process_dynamic_section): Call get_num_dynamic_syms once rather
889 than in segment loop. Break out of segment loop on a successful
890 load of dynamic symbols. Formatting.
891 (process_object): Return error status from process_dynamic_section.
892
27456742
AK
8932020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
894
895 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
896 * elf.c (elfcore_grok_arc_v2): New function.
897 (elfcore_grok_note): Call the new function to handle the corresponding
898 note.
899 (elfcore_write_arc_v2): New function.
900 (elfcore_write_register_note): Call the new function to handle the
901 corresponding pseudo-sections.
902
30ce8e47
MF
9032020-04-22 Max Filippov <jcmvbkbc@gmail.com>
904
905 PR ld/25861
906 * readelf.c (is_none_reloc): Recognize
907 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
908 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
909
33b5a830
NC
9102020-04-22 Nick Clifton <nickc@redhat.com>
911
912 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
913
978c4450
AM
9142020-04-22 Alan Modra <amodra@gmail.com>
915
916 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
917 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
918 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
919 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
920 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
921 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
922 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
923 (dynamic_section, symtab_shndx_list, group_count, section_groups),
924 (section_headers_groups): Move to struct filedata. Update use
925 throughout file.
926
6431e409
AM
9272020-04-22 Alan Modra <amodra@gmail.com>
928
929 * readelf.c (struct dump_data): New, used..
930 (cmdline): ..here, and..
931 (struct filedata): ..here. Adjust all uses.
932 (request_dump_bynumber, request_dump, parse_args): Pass in a
933 struct dump_data* rather than Filedata*. Adjust callers.
934 (main): Don't set cmdline.file_name.
935
a5e0be5c
AM
9362020-04-20 Alan Modra <amodra@gmail.com>
937
938 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
939 and nbuckets.
940
8ff66993
AM
9412020-04-20 Alan Modra <amodra@gmail.com>
942
943 * readelf.c (process_section_headers): Free dynamic symbols etc.
944 earlier.
945
ceb9bf11
AM
9462020-04-20 Alan Modra <amodra@gmail.com>
947
948 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
949 on error without freeing.
950 (process_dynamic_section): Don't recreate dynamic symbols from
951 dynamic tag info when the dynamic symbols have already been
952 read via section headers.
953
e409955d
FS
9542020-04-17 Fredrik Strupe <fredrik@strupe.net>
955
956 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
957 conditional VDUP instructions are disassembled correctly.
958 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
959 vdup-cond.d.
960 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
961 that VDUP instructions (which are conditional in A32) can be
962 disassembled in thumb mode.
963 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
964 vdup-thumb.d.
965
ca3f923f
AM
9662020-04-17 Alan Modra <amodra@gmail.com>
967
968 PR 25840
969 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
970
937f6614
AM
9712020-04-16 Alan Modra <amodra@gmail.com>
972
973 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
974 --no-addresses description.
975
b1bc1394
AM
9762020-04-15 Alan Modra <amodra@gmail.com>
977
978 * objdump.c (no_addresses): New static var.
979 (usage): Print help for --no-addresses.
980 (long_options): Add --no-addresses entry.
981 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
982 (disassemble_bytes): Don't print current line address, or reloc
983 address.
984 * doc/binutils.texi: Document objdump --no-addresses.
985
001890e1
AM
9862020-04-15 Alan Modra <amodra@gmail.com>
987
988 PR 25822
989 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
990 reading buckets or chains fails.
991
b71d4fa7
AM
9922020-04-15 Alan Modra <amodra@gmail.com>
993
994 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
995 etc. after freeing.
996
89246a0e
AM
9972020-04-15 Alan Modra <amodra@gmail.com>
998
999 * readelf.c (get_group_flags): Translate text.
1000 (get_file_type, get_symbol_binding, get_symbol_type),
1001 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1002
c98a4545
AM
10032020-04-15 Alan Modra <amodra@gmail.com>
1004
1005 PR 25821
1006 * readelf.c (get_num_dynamic_syms): Typo fix.
1007
645f43a8
AM
10082020-04-14 Alan Modra <amodra@gmail.com>
1009
1010 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1011 possibility of overflow when checking number of conflicts.
1012
10ca4b04
L
10132020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1014
1015 PR binutils/25707
1016 * readelf.c (nbuckets): New.
1017 (nchains): Likewise.
1018 (buckets): Likewise.
1019 (chains): Likewise.
1020 (ngnubuckets): Likewise.
1021 (gnubuckets): Likewise.
1022 (gnuchains): Likewise.
1023 (mipsxlat): Likewise.
1024 (ngnuchains): Likewise.
1025 (gnusymidx): Likewise.
1026 (VALID_SYMBOL_NAME): Likewise.
1027 (VALID_DYNAMIC_NAME): Use it.
1028 (get_dynamic_data): Moved before process_dynamic_section.
1029 (get_num_dynamic_syms): New function.
1030 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1031 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1032 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1033 table.
1034 (get_symbol_index_type): Don't print "bad section index" when
1035 there is no section header.
1036 (print_dynamic_symbol): Rewrite.
1037 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1038 symbol table.
1039
bb897477
RO
10402020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1041
1042 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1043 enable on *-*-solaris*.
1044
00386881
NC
10452020-03-30 Nick Clifton <nickc@redhat.com>
1046
1047 PR binutils/25662
1048 * objcopy.c (copy_object): When copying PE format files set the
1049 timestamp field in the pe_data structure if the preserve_dates
1050 flag is set.
1051 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1052 --preserve-dates in place of the -p option, in order to make its
1053 effect more obvious.
1054
0a6a8b59
AM
10552020-03-28 Alan Modra <amodra@gmail.com>
1056
1057 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1058 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1059
6a81c59b
AM
10602020-03-28 Alan Modra <amodra@gmail.com>
1061
1062 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1063 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1064 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1065 test. Pass "-p" to objcopy for the executable test.
1066
1fafefd5
JL
10672020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1068
1069 PR binutils/25662
1070 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1071 specify whether an object file or executable should be built and tested.
1072 Change test names to report whether an object file or executable is
1073 being tested.
1074 * testsuite/binutils-all/pr25662.ld: New test.
1075 * testsuite/binutils-all/pr25662.s: New test.
1076
80e2a3b6
AM
10772020-03-27 Alan Modra <amodra@gmail.com>
1078
1079 * readelf.c (process_archive): Don't double free qualified_name.
1080 Don't break out of loop with "negative" archive_file_size, just
1081 set file offset to max.
1082
4c836627
AM
10832020-03-25 Alan Modra <amodra@gmail.com>
1084
1085 * readelf.c (process_archive): Prevent endless loop.
1086
1081065c
L
10872020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 PR binutils/25708
1090 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1091 with bfd_get_symbol_version_string.
1092 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1093 * objdump.c (objdump_print_symname): Likewise.
1094
7e6e972f
L
10952020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1096
1097 PR binutils/25708
1098 * nm.c (SYM_NAME): Removed.
1099 (print_symname): Add a pointer to struct extended_symbol_info
1100 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1101 version.
1102 (print_symdef_entry): Pass NULL to print_symname.
1103 (print_symbol_info_bsd): Update call to print_symname.
1104 (print_symbol_info_sysv): Likewise.
1105 (print_symbol_info_posix): Likewise.
1106
5a814d6d
AM
11072020-03-24 Alan Modra <amodra@gmail.com>
1108
1109 * readelf.c (process_mips_specific): Free iconf on error path.
1110
0636b245
NC
11112020-03-23 Nick Clifton <nickc@redhat.com>
1112
1113 PR 25714
1114 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1115 * write_stabs_in_sections_debugging_info: Likewise.
1116 * stab_enum_type: Likewise.
1117 * stab_modify_type: Likewise.
1118 * stab_struct_field: Likewise.
1119 * stab_end_struct_type: Likewise.
1120 * stab_start_class_type: Likewise.
1121 * stab_class_static_member: Likewise.
1122 * stab_class_baseclass: Likewise.
1123 * stab_class_start_method: Likewise.
1124 * stab_class_method_var: Likewise.
1125 * stab_class_end_method: Likewise.
1126 * stab_end_class_type: Likewise.
1127 * stab_typedef_type: Likewise.
1128 * stab_start_function: Likewise.
1129 * stab_end_block: Likewise.
1130 * stab_lineno: Likewise.
1131
5844b465
NC
11322020-03-20 Nick Clifton <nickc@redhat.com>
1133
1134 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1135 (process_section_headers): Check the return value from
1136 get_compression_header.
1137 (dump_section_as_strings): Likewise.
1138 (dump_section_as_bytes): Likewise.
1139 (load_specific_debug_section): Likewise.
1140
3d98c460
L
11412020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1142
1143 * ar.c (main): Update bfd_plugin_set_program_name call.
1144 * nm.c (main): Likewise.
1145
f3a08f77
NC
11462020-03-19 Nick Clifton <nickc@redhat.com>
1147
1148 PR 25676
1149 * testsuite/binutils-all/dw4.s: New test source file.
1150 * testsuite/binutils-all/nm.exp: Run the new test.
1151
ef3df110
L
11522020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1153
1154 * readelf.c (process_symbol_table): Use unsigned long for si.
1155
81a65eb3
AM
11562020-03-19 Alan Modra <amodra@gmail.com>
1157
1158 * elfcomm.c: Don't include bfd.h or bucomm.h.
1159 (program_name): Declare.
1160 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1161 and substitute FALSE and TRUE.
1162 (setup_archive, setup_nested_archive): Likewise.
1163 * elfcomm.h: Likewise.
1164
1cb7d8b1
AM
11652020-03-19 Alan Modra <amodra@gmail.com>
1166
1167 * readelf.c (process_archive): Always return via path freeing
1168 memory. Formatting.
1169
b966f55f
AM
11702020-03-19 Alan Modra <amodra@gmail.com>
1171
1172 * readelf.c (process_netbsd_elf_note): Validate descsz before
1173 accessing descdata. Formatting.
1174
645ba681
AM
11752020-03-19 Alan Modra <amodra@gmail.com>
1176
1177 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1178 * elfcomm.h (setup_archive): Update prototype.
1179
28d13567
AM
11802020-03-16 Alan Modra <amodra@gmail.com>
1181
1182 * readelf.c (get_symbols): New function.
1183 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1184 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1185
60e63c3e
AM
11862020-03-16 Alan Modra <amodra@gmail.com>
1187
1188 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1189 Detect shift overflows and check that terminating byte is found.
1190 Print an error on a bad uleb128.
1191
1bd6175a
AM
11922020-03-14 Alan Modra <amodra@gmail.com>
1193
1194 * readelf.c (process_file): Clean ba_cache.
1195
780f96ae
AM
11962020-03-14 Alan Modra <amodra@gmail.com>
1197
1198 * elfcomm.h (setup_archive): Update prototype.
1199 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1200 check longnames_size.
1201 (setup_nested_archive): Get file size and pass to setup_archive.
1202 * elfedit.c (process_archive): Likewise.
1203 * readelf.c (process_archive): Pass filedata->file_size to
1204 setup_archive.
1205
f761cb13
AM
12062020-03-14 Alan Modra <amodra@gmail.com>
1207
1208 * readelf.c (dump_section_as_strings): Free memory on error exit.
1209 (dump_section_as_bytes, process_notes_at): Likewise.
1210 (get_build_id): Free enote.
1211
06d949ec
KR
12122020-03-13 Kamil Rytarowski <n54@gmx.com>
1213
1214 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1215 NT_NETBSDCORE_LWPSTATUS notes.
1216
fd486f32
AM
12172020-03-13 Alan Modra <amodra@gmail.com>
1218
1219 * elfcomm.c (get_archive_member_name): Always return malloc'd
1220 string or NULL.
1221 * elfedit.c (process_archive): Tidy memory on all return paths.
1222 * readelf.c (process_archive): Likewise.
1223 (process_symbol_table): Likewise.
1224 (ba_cache): New, replacing ..
1225 (get_symbol_for_build_attribute): ..static vars here. Free
1226 strtab and symtab before loading new ones. Reject symtab without
1227 valid strtab in loop, breaking out of loop on valid symtab.
1228 (process_file): Free ba_cache symtab and strtab here, resetting
1229 ba_cache.
1230
8fb879cd
AM
12312020-03-12 Alan Modra <amodra@gmail.com>
1232
1233 * readelf.c (process_section_headers): Don't just set
1234 filedata->section_headers NULL, free it first. Similarly for
1235 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1236 symtab_shndx_list. Zero associated counts too.
1237 (process_object): Free symtab_shndx_list.
1238 (process_file): Free various allocated filedata tables.
1239
5496f3c6
NC
12402020-03-11 Nick Clifton <nickc@redhat.com>
1241
1242 PR 25611
1243 PR 25614
1244 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1245 li_segment_size fields.
1246 * dwarf.c (read_debug_line_header): Record the address size and
1247 segment selector size values (if present) in the lineinfo
1248 structure.
1249 (display_formatted_table): Warn if the format count is empty but
1250 the table itself is not empty.
1251 Display the format count and entry count at the start of the table
1252 dump.
1253 (display_debug_lines_raw): Display the address size and segement
1254 selector size fields, if present.
1255 * testsuite/binutils-all/dw5.W: Update expected output.
1256
9cc89dc0
AM
12572020-03-11 Alan Modra <amodra@gmail.com>
1258
1259 PR 25651
1260 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1261 pad_to_set on second block of code dealing with padding.
1262 Replace "c" with "num_sec" and don't recalculate number of
1263 sections on second block. Size arrays using sizeof (element)
1264 rather than sizeof (element type).
1265
41da0822
AM
12662020-03-10 Alan Modra <amodra@gmail.com>
1267
1268 * objdump.c (disassemble_section): Don't call qsort unless
1269 sym count is at least two.
1270 (disassemble_data): Don't call memcpy with NULL src.
1271
95099889
AM
12722020-03-09 Alan Modra <amodra@gmail.com>
1273
1274 PR 25645
1275 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1276 to get_data rather than multiplying.
1277 (dump_ia64_vms_dynamic_relocs): Likewise.
1278 (process_version_sections): Correct order of size and nmemb args
1279 in get_data call.
1280 (process_mips_specific): Likewise.
1281
a15de1f5
L
12822020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1283
1284 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1285 "memory checkers" in comments.
1286
9979ab66
SM
12872020-03-06 Simon Marchi <simon.marchi@efficios.com>
1288
1289 PR 25491
1290 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1291 * doc/Makefile.in: Re-generate.
1292
a0dcf297
NC
12932020-03-06 Nick Clifton <nickc@redhat.com>
1294
1295 * objcopy.c (check_new_section_flags): New function. Reject the
1296 SEC_COFF_SHARED flag if the target is not a COFF binary.
1297 (copy_object): Call check_new_section_flags.
1298 (setup_section): Likewise.
1299 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1300 flag cannot be applied to ELF binaries.
1301
a9b90127
AM
13022020-03-06 Alan Modra <amodra@gmail.com>
1303
1304 PR 25637
1305 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1306
d1faf7ca
AM
13072020-03-05 Alan Modra <amodra@gmail.com>
1308
1309 PR 25629
1310 * objcopy.c (filter_symbols): Don't segfault on NULL
1311 prefix_symbols_string.
1312
eef64366
CE
13132020-03-04 Christian Eggers <ceggers@gmx.de>
1314
1315 * objcopy.c (copy_object): Convert from bytes to octets for
1316 --gap-fill and --pad-to.
1317
5be2b2f5
NC
13182020-03-03 Nick Clifton <nickc@redhat.com>
1319
1320 PR 25625
1321 * prdbg.c (pr_tag_type): Remove call to abort.
1322
b312fea1
AM
13232020-03-02 Aaron Merey <amerey@redhat.com>
1324
1325 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1326 selection.
1327
ba3265d0
NC
13282020-03-02 Nick Clifton <nickc@redhat.com>
1329
1330 PR 25543
1331 * readelf.c (dump_section_as_strings): Display new-line characters
1332 as \n and then insert a line break.
1333 * testsuite/binutils-all/pr25543.s: New test.
1334 * testsuite/binutils-all/pr25543.d: Test driver.
1335 * testsuite/binutils-all/readelf.exp: Run the new test.
1336
736990c4
NC
13372020-02-27 Nick Clifton <nickc@redhat.com>
1338
1339 PR 25526
1340 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1341 get_data is unable to load the string table.
1342
dc1e8a47
AM
13432020-02-26 Alan Modra <amodra@gmail.com>
1344
1345 * elfedit.c: Indent labels correctly.
1346 * readelf.c: Likewise.
1347 * resres.c: Likewise.
1348
ecda9016
L
13492020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 PR binutils/25584
1352 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1353 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1354
83d4d556
NC
13552020-02-24 Nick Clifton <nickc@redhat.com>
1356
1357 PR 25499
1358 * doc/binutils.texi (objdump): Fix typo in description of
1359 objdump's -g option.
1360
bd0cf5a6
NC
13612020-02-20 Nelson Chu <nelson.chu@sifive.com>
1362
1363 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1364 is changed.
1365
741cb839
EC
13662020-02-19 Jordan Rupprecht <rupprecht@google.com>
1367
1368 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1369
9f1528a1
AB
13702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * configure: Regenerate.
1373
3a5d12fb
FS
13742020-02-10 Fangrui Song <maskray@google.com>
1375
1376 * objcopy.c (parse_flags): Handle "exclude".
1377 * doc/binutils.texi: Document the support.
1378
678d457f
AM
13792020-02-10 Aaron Merey <amerey@redhat.com>
1380
1381 * binutils/testsuite/binutils-all/debuginfod.exp:
1382 Replace set ::env with setenv.
46471187
AM
1383 Start server before setting environment variable.
1384 Specify tmpdir as the location of the server's
1385 database.
1386 Check additional server metrics at start-up.
678d457f 1387
e8319fde
NC
13882020-02-07 Nick Clifton <nickc@redhat.com>
1389
1390 * README-how-to-make-a-release: Add note about updating the
1391 GAS/NEWS URL in the next release.
1392
9fc0b501
SB
13932020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1394
1395 PR 25469
1396 * readelf.c (get_machine_flags): Add support for Z80N machine
1397 number.
1398
e1104d08
NC
13992020-02-07 Nick Clifton <nickc@redhat.com>
1400
1401 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1402 of the truncated file name.
1403
c2e6f744 14042020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1405
1406 * objdump.c (print_jump_visualisation): New function.
1407 (disassemble_bytes): Call new function.
1408
02e0be69
AM
14092020-02-06 Alan Modra <amodra@gmail.com>
1410
1411 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1412 TCL procedure.
1413 (supports_gnu_osabi): New procedure.
1414 (is_generic): New, from ld-lib.exp.
1415 (supports_gnu_unique): Use the above.
1416
e8b79122
AM
14172020-02-04 Alan Modra <amodra@gmail.com>
1418
1419 * Makefile.am (CFILES): Add od-elf32_avr.c.
1420 * Makefile.in: Regenerate.
1421 * po/POTFILES.in: Regenerate.
1422
27a45f42
AS
14232020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1424
1425 * readelf.c (dump_relocations, dump_relocations)
1426 (decode_arm_unwind_bytecode, process_dynamic_section)
1427 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1428 error message.
1429
0b398d69
ST
14302020-02-03 Sergei Trofimovich <siarheit@google.com>
1431
1432 * coffdump.c (program_name): Drop redundant definition.
1433 * srconv.c (program_name): Likewise
1434 * sysdump.c (program_name): Likewise
1435
a8c4d40b
L
14362020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1437
1438 PR gas/25380
1439 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1440 same file with different section pointers.
1441
cb6ad9bb
NC
14422020-02-01 Nick Clifton <nickc@redhat.com>
1443
1444 * README-how-to-make-a-release: Update with more details on the
1445 release making process.
1446
53943f32
NC
14472020-01-31 Nick Clifton <nickc@redhat.com>
1448
1449 * po/sv.po: Updated Swedish translation.
1450
55be8fd0
NC
14512020-01-28 Nick Clifton <nickc@redhat.com>
1452
1453 * readelf.c (get_build_id): Simplify warning message about corrupt
1454 notes encountered whilst scanning for the build-id.
1455
82ef9cad
RM
14562020-01-27 Roland McGrath <mcgrathr@google.com>
1457
1458 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1459 for overlapping ranges so that (A == B) == (B == A) holds.
1460
e3696f67
AM
14612020-01-27 Alan Modra <amodra@gmail.com>
1462
1463 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1464 case statement with switch statement.
1465
2f796de6
NC
14662020-01-24 Nick Clifton <nickc@redhat.com>
1467
1468 * readelf.c (get_build_id): Fix warning messages about corrupt
1469 notes.
1470
24e648d4
NC
14712020-01-23 Nick Clifton <nickc@redhat.com>
1472
1473 * po/fr.po: Updated French translation.
1474
c48acf6f
YC
14752020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1476
1477 PR 25417
1478 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1479
26916852
NC
14802020-01-20 Nick Clifton <nickc@redhat.com>
1481
1482 * po/pt.po: Updated Portuguese translation.
1483 * po/uk.po: Updated Ukranian translation.
1484
b248e9ce
NC
14852020-01-18 Nick Clifton <nickc@redhat.com>
1486
1487 * README-how-to-make-a-release: Update notes on how to cut a
1488 branch for a release.
1489
1b1bb2c6
NC
14902020-01-18 Nick Clifton <nickc@redhat.com>
1491
1492 * configure: Regenerate.
1493 * po/binutils.pot: Regenerate.
1494
ae774686
NC
14952020-01-18 Nick Clifton <nickc@redhat.com>
1496
1497 Binutils 2.34 branch created.
1498
82a9ed20
TT
14992020-01-17 Thomas Troeger <tstroege@gmx.de>
1500
1501 * objdump.c (jump_info_visualize_address): Discard jumps that are
1502 no longer needed.
1503 (disassemble_bytes): Only compute the maximum level if jumps were
1504 detected.
1505
6a1939f5
NC
15062020-01-13 Nick Clifton <nickc@redhat.com>
1507
c87c17c1 1508 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1509 * testsuite/binutils-all/debuginfod.exp: New tests.
1510
1d67fe3b
TT
15112020-01-13 Thomas Troeger <tstroege@gmx.de>
1512
1513 * objdump.c (visualize_jumps, color_output, extended_color_output)
1514 (detected_jumps): New variables.
1515 (usage): Add the new jump visualization options.
1516 (option_values): Add new option value.
1517 (long_options): Add the new option.
1518 (jump_info_new, jump_info_free): New functions.
1519 (jump_info_min_address, jump_info_max_address): Likewise.
1520 (jump_info_end_address, jump_info_is_start_address): Likewise.
1521 (jump_info_is_end_address, jump_info_size): Likewise.
1522 (jump_info_unlink, jump_info_insert): Likewise.
1523 (jump_info_add_front, jump_info_move_linked): Likewise.
1524 (jump_info_intersect, jump_info_merge): Likewise.
1525 (jump_info_sort, jump_info_visualize_address): Likewise.
1526 (disassemble_jumps): New function - used to locate jumps.
1527 (disassemble_bytes): Add ascii art generation.
1528 (disassemble_section): Add scan to locate jumps.
1529 (main): Parse the new visualization option.
1530 * doc/binutils.texi: Document the new feature.
1531 * NEWS: Mention the new feature.
1532
a788aedd
AM
15332020-01-13 Alan Modra <amodra@gmail.com>
1534
a4f2b7c5
AM
1535 PR 25360
1536 PR 25361
a788aedd
AM
1537 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1538 fde_fc col_type and col_offset.
1539 * readelf.c (apply_relocations): Move symsec check earlier.
1540 (free_debug_section): Free reloc_info.
1541 (process_notes_at): Free pnotes on error path.
1542 (process_object): Free dump_sects here..
1543 (process_archive): ..not here.
1544
805f38bc
AM
15452020-01-13 Alan Modra <amodra@gmail.com>
1546
1547 PR 25362
1548 * nm.c (display_rel_file): Free dyn_syms.
1549
ffebb0bb
NC
15502020-01-09 Nick Clifton <nickc@redhat.com>
1551
1552 PR 25220
1553 * objcopy.c (empty_name): New variable.
1554 (need_sym_before): Prevent an attempt to free a static variable.
1555 (filter_symbols): Avoid strcmp test by checking for pointer
1556 equality.
1557
ade4fd9b
NC
15582020-01-09 Nick Clifton <nickc@redhat.com>
1559
1560 * po/zh_TW.po: Updated Traditional Chinese translation.
1561
15622020-01-09 Aaron Merey <amerey@redhat.com>
1563
1564 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1565 * Makefile.in: Regenerate.
1566 * NEWS: Update.
1567 * config.in: Regenerate.
1568 * configure: Regenerate.
1569 * configure.ac: Call AC_DEBUGINFOD.
1570 * doc/Makefile.in: Regenerate.
1571 * doc/binutils.texi: Add section on using binutils
1572 with debuginfod.
1573 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1574 Query debuginfod servers for the target debug file.
1575 (load_separate_debug_info): Call
1576 debuginfod_fetch_separate_debug_info if configured with
1577 debuginfod.
1578 (load_separate_debug_files): Add file argument to
1579 load_separate_debug_info calls.
1580 * dwarf.h (get_build_id): Add declaration.
1581 * objdump.c (get_build_id): New function. Get build-id of file.
1582 * readelf.c (get_build_id): Likewise.
1583 * testsuite/binutils-all/debuginfod.exp: New tests.
1584 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1585 section.
1586
6655dba2
SB
15872020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1588
1589 * readelf.c: Add support for new Z*) relocations and machine
1590 types.
1591
b14ce8bf
AM
15922020-01-01 Alan Modra <amodra@gmail.com>
1593
1594 Update year range in copyright notice of all files.
1595
0b114740 1596For older changes see ChangeLog-2019
3499769a 1597\f
0b114740 1598Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1599
1600Copying and distribution of this file, with or without modification,
1601are permitted in any medium without royalty provided the copyright
1602notice and this notice are preserved.
1603
1604Local Variables:
1605mode: change-log
1606left-margin: 8
1607fill-column: 74
1608version-control: never
1609End:
This page took 0.312593 seconds and 4 git commands to generate.