bpf: add xBPF ISA
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
37f628c3
KH
12020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
2
3 PR 26340
4 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
5
f3da8a96
AM
62020-08-24 Alan Modra <amodra@gmail.com>
7
8 * readelf.c (dump_section_as_strings) Avoid false positive
9 "may be used uninitialised".
10
3f2e9699
L
112020-08-22 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR ld/26382
14 * nm.c (print_symname): Display only one '@' for undefined
15 versioned symbols.
16 * doc/binutils.texi: Update nm version information.
17
02391b8b
MW
182020-08-21 Mark Wielaard <mark@klomp.org>
19
20 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
21 recognize DW_LANG_C11.
22
d1ce973e
AM
232020-08-19 Alan Modra <amodra@gmail.com>
24
25 PR 26349
26 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
27 and info fields.
28 (dump_section_as_strings): Don't use %tx to display offset.
29
82fcdb39
AM
302020-08-14 Alan Modra <amodra@gmail.com>
31
32 PR 26388
33 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
34 of debug_information. Correct test of max_loc_offsets and
35 max_range_lists.
36 * rddbg.c (read_debugging_info): Free dhandle on error.
37
fc0efc4b
AM
382020-08-14 Alan Modra <amodra@gmail.com>
39
40 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
41
75e100a3
AM
422020-08-13 Alan Modra <amodra@gmail.com>
43
44 PR 26348
45 * objcopy.c (copy_object): Report file name with endian error.
46 Error and return on abfd->read_only.
47
d3511b24
TT
482020-08-12 Tom Tromey <tromey@adacore.com>
49
50 * dwarf-mode.el (Version): Now 1.6.
51 (dwarf-die-button-action): Tighten DIE reference regexp.
52 (dwarf-font-lock-keywords): Update name regexp.
53
79bc120c
NC
542020-08-12 Nick Clifton <nickc@redhat.com>
55
56 PR binutils/26331
57 * readelf.c (do_demangle): New option flag.
58 (print_symbol): If do_demangle is enabled, demangle the symbol.
59 (enum long_option_values): New enum to hold long option values.
60 (options): Add demangle, no-demangle, recursion-limit and
61 no-recursion-limit options. Alpha sort the table.
62 (usage): Describe the new options.
63 (parse_args): Handle the new options.
64 * NEWS: Mention the new feature.
65 * doc/binutils.texi: Document the new feature.
66 * testsuite/binutils-all/readelf.exp: Test the new feature.
67 * testsuite/binutils-all/mangled.s: New file - assembler source.
68 * testsuite/binutils-all/readelf.demangled: New file - expected
69 output from readelf.
70
79ddc884
NC
712020-08-12 Nick Clifton <nickc@redhat.com>
72
73 * po/sr.po: Updated Serbian translation.
74
9b0ac51b
L
752020-08-10 H.J. Lu <hongjiu.lu@intel.com>
76
77 PR binutils/26302
78 * nm.c (with_symbol_versions): Removed.
79 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
80 (long_options): Update --with-symbol-versions entry.
81 (print_symbol): Remove the with_symbol_versions check.
82 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
83 compatibility.
84 * doc/binutils.texi: Remove --with-symbol-versions.
85
787bbc56
AM
862020-08-05 Alan Modra <amodra@gmail.com>
87
88 PR 26337
89 * objdump.c (load_specific_debug_section): Revert last change.
90
0b97e818
AM
912020-08-05 Alan Modra <amodra@gmail.com>
92
93 PR 26337
94 * objdump.c (load_specific_debug_section): Don't malloc space for
95 section contents, use bfd_malloc_and_get_section.
96
c8693053
RO
972020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
98
99 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
100 * Makefile.in, doc/Makefile.in: Regenerate.
101 * configure: Regenerate.
102
ac2599c4
L
1032020-07-30 H.J. Lu <hongjiu.lu@intel.com>
104
105 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
106 to assembler.
107 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
108 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
109 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
110 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
111 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
112
c77cb2a0
MR
1132020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
114
115 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
116 New test.
117 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
118 New test.
119 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
120 New test.
121 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
122 New test.
123 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
124 New test.
125 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
126 New test.
127 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
128 New test.
129 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
130 New test.
131 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
132 New test.
133 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
134
3f1b17bb
MR
1352020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
136
137 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
138 test.
139 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
140 test.
141 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
142 test.
143 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
144 test.
145 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
146 test.
147 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
148
d70f978b
L
1492020-07-28 H.J. Lu <hongjiu.lu@intel.com>
150
151 PR binutils/26301
152 * configure: Regenerated.
153
377170fa
L
1542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
155
156 PR binutils/26301
157 * configure: Regenerated.
158
8fab9282
AM
1592020-07-27 Alan Modra <amodra@gmail.com>
160
161 * objdump.c (dump_section): Don't return without calling
162 process_section_p.
163
608d61c2
L
1642020-07-27 H.J. Lu <hongjiu.lu@intel.com>
165
166 * doc/binutils.texi: Replace preceeded with preceded.
167
3abf9758
MR
1682020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
169
170 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
171 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
172 procedures.
173 (has_newabi): Remove variable.
174 (has_abi, abi_asflags, abi_ldflags): New associative array
175 variables.
176 (irixemul): New variable.
177 Replace `run_dump_test' calls where applicable throughout with
178 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
179 as appropriate. Use `noarch' for tests that require their own
180 architecture setting.
181 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
182 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
183 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
184 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
185 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
186 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
187 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
188 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
189 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
190 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
191 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
192 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
193 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
194 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
195 GAS flags.
196 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
197 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
198 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
199 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
200 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
201 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
202 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
203
f6720b1c
AM
2042020-07-24 Aaron Merey <amerey@redhat.com>
205
206 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
207 * Makefile.in: Rebuild.
208 * configure: Rebuild.
209 * doc/Makefile.in: Rebuild.
210
bf772a1e
NC
2112020-07-24 Nick Clifton <nickc@redhat.com>
212
213 * README-how-to-make-a-release: Various small updates whilst
214 creating the 2.35 release.
215
0b884151
NA
2162020-07-22 Nick Alcock <nick.alcock@oracle.com>
217
218 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
219 option.
220
3dd6b890
NA
2212020-07-22 Nick Alcock <nick.alcock@oracle.com>
222
223 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
224 (dump_ctf): Likewise.
225
8b37e7b6
NA
2262020-07-22 Nick Alcock <nick.alcock@oracle.com>
227
228 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
229 * readelf.c (dump_ctf_archive_member): Likewise.
230
df16e041
NC
2312020-07-22 Nick Clifton <nickc@redhat.com>
232
233 * readelf.c (parse_args): Silence potential warnings about a
234 memory resource leak when allocating space for ctf option values.
235 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
236 variable.
237
84dc5f0b
NC
2382020-07-21 Nick Clifton <nickc@redhat.com>
239
240 * po/sv.po: Updated Swedish translation.
241
570b0ed6
CZ
2422020-07-14 Claudiu Zissulescu <claziss@gmail.com>
243
244 * testsuite/binutils-all/arc/double_regs.s: New test.
245 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
246
0a5c31d1
NC
2472020-07-13 Nick Clifton <nickc@redhat.com>
248
249 * po/fr.po: Updated French translation.
250
7a34d0ea
AM
2512020-07-13 Alan Modra <amodra@gmail.com>
252
253 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
254 optional machine-os arg.
255
a308b89d
L
2562020-07-11 H.J. Lu <hongjiu.lu@intel.com>
257
258 * readelf.c (decode_x86_feature_2): Handle
259 GNU_PROPERTY_X86_FEATURE_2_TMM.
260
af2b3186
TV
2612020-07-10 Tom de Vries <tdevries@suse.de>
262
263 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
264 information in the end_sequence row.
265 * testsuite/binutils-all/dw5.W: Update.
266 * testsuite/binutils-all/objdump.WL: Update.
267
fe49679d
AM
2682020-07-09 Alan Modra <amodra@gmail.com>
269
270 * dlltool.c: Remove powerpc PE support and comments.
271 * configure.ac: Remove powerpc PE dlltool config.
272 * configure: Regenerate.
273
d90171de
NC
2742020-07-09 Nick Clifton <nickc@redhat.com>
275
276 * rclex.c: Add OWNERDRAW keyword.
277 * rcparse.y: Add OWNERDRAW token.
278 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
279 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
280 BITMAP flags.
281 * windres.c (extended_menuitems): Likewise.
282 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
283
e3fdc001
AM
2842020-07-09 Alan Modra <amodra@gmail.com>
285
286 * readelf (slurp_hppa_unwind_table): Set table_len before use
287 in relocation sanity checks.
288
5a2296ac
AM
2892020-07-07 Alan Modra <amodra@gmail.com>
290
291 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
292 * testsuite/binutils-all/nm.exp: Likewise.
293 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
294 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
295 * testsuite/binutils-all/set-section-alignment.d: Likewise.
296 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
297
efd0ed58
AM
2982020-07-07 Alan Modra <amodra@gmail.com>
299
300 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
301 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
302
17550be7
NC
3032020-07-06 Nick Clifton <nickc@redhat.com>
304
305 * po/bg.po: Updated Bulgarian translation.
306 * po/pt.po: Updated Portuguese translation.
307 * po/uk.po: Updated Ukranian translation.
308
ddb43bab
AM
3092020-07-06 Alan Modra <amodra@gmail.com>
310
311 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
312 find string length.
313
b19d852d
NC
3142020-07-04 Nick Clifton <nickc@redhat.com>
315
316 * configure: Regenerate.
317 * po/binutils.pot: Regenerate.
318
b115b9fd
NC
3192020-07-04 Nick Clifton <nickc@redhat.com>
320
321 Binutils 2.35 branch created.
322
0942c7ab
NC
3232020-07-02 Nick Clifton <nickc@redhat.com>
324
325 PR 26028
326 * readelf.c (print_symbol): Handle truncation of symbol names.
327 (options): Add -T/--silent-truncation option.
328 (parse_args): Handle the option.
329 (print_dynamic_symbol): Correct calculation of width available to
330 display symbol name.
331 * doc/binutils.texi: Document the -T option to readelf.
332 * NEWS: Mention the new feature.
333
bbd19b19
L
3342020-06-30 H.J. Lu <hongjiu.lu@intel.com>
335
336 * NEWS: Mention x86 NaCl target support removal.
337 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
338 x86 NaCl target support.
339 * testsuite/binutils-all/elfedit-1.d: Likewise.
340 * testsuite/binutils-all/i386/i386.exp: Likewise.
341 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
342 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
343 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
344 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
345 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
346 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
347 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
348 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
349 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
350 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
351 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
352 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
353
5568cc9e
NC
3542020-06-30 Nick Clifton <nickc@redhat.com>
355
356 * dwarf.c (read_and_display_attr_value): Support
357 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
358 DW_AT_comp_dir.
359
d74b88ed
AM
3602020-06-30 Alan Modra <amodra@gmail.com>
361
362 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
363 xfail for nds32.
364
9f27c364
HPN
3652020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
366
367 * dwarf.c (display_debug_str_offsets): Rename local variable
368 index to idx. Move to top of function.
369
279edac5
AM
3702020-06-29 Alan Modra <amodra@gmail.com>
371
372 * dwarf.c: Use C style comments.
373 * resrc.c: Likewise.
374
cfc16775
AM
3752020-06-27 Alan Modra <amodra@gmail.com>
376
377 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
378 after freeing.
379 (release_archive): Set fields of arch to NULL after freeing.
380
2f6ecaed
NA
3812020-06-26 Nick Alcock <nick.alcock@oracle.com>
382
383 * readelf.c (dump_section_as_ctf): Support .ctf archives using
384 ctf_arc_bufopen. Automatically load the .ctf member of such
385 archives as the parent of all other members, unless specifically
386 overridden via --ctf-parent. Split out dumping code into...
387 (dump_ctf_archive_member): ... here, as in objdump, and call
388 it once per archive member.
389 (dump_ctf_indent_lines): Code style fix.
390
094e34f2
NA
3912020-06-26 Nick Alcock <nick.alcock@oracle.com>
392
393 * configure.ac [--enable-libctf]: New, default yes.
394 Set ENABLE_LIBCTF accordingly.
395 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
396 * configure: Regenerate.
397 * config.in: Regenerate.
398 * Makefile.in: Regenerate.
399 * aclocal.m4: Regenerate.
400 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
401 (option_values): Likewise.
402 (long_options): Likewise.
403 (main): Likewise.
404 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
405 (make_ctfsect): Likewise.
406 (dump_ctf_archive_member): Likewise.
407 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
408 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
409 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
410 (usage): Likewise.
411 (process_section_contents): Likewise.
412 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
413 (dump_ctf_indent_lines): Likewise.
414 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
415
2a1bb84c
JB
4162020-06-26 Jan Beulich <jbeulich@suse.com>
417
418 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
419 redundant text from x86 specific part of -M section.
420
85f7484a
PB
4212020-06-26 Pat Bernardi <bernardi@adacore.com>
422
423 * readelf.c (display_m68k_gnu_attribute): New function.
424 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
425
d0dded5b
L
4262020-06-23 H.J. Lu <hongjiu.lu@intel.com>
427
428 PR binutils/26160
429 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
430 * testsuite/binutils-all/pr26160.r: Likewise.
431 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
432
39f381cb
NC
4332020-06-23 Nick Clifton <nickc@redhat.com>
434
435 PR 26160
436 * dwarf.c (fetch_indexed_string): Detect and handle old style
437 .debug_str_offset tables.
438 (display_debug_str_offsets): Likewise. Also add support for
439 .debug_str_offsets.dwo sections.
440
80fda85c
L
4412020-06-23 H.J. Lu <hongjiu.lu@intel.com>
442
443 PR binutils/26112
444 * testsuite/binutils-all/pr26112.o.bz2: New file.
445 * testsuite/binutils-all/pr26112.r: Likewise.
446 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
447
d081ffff
AM
4482020-06-23 Alan Modra <amodra@gmail.com>
449
450 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
451 remote_file delete command.
452
e4b7104b
NC
4532020-06-22 Nick Clifton <nickc@redhat.com>
454
455 PR 26112
456 * dwarf.c (display_debug_str_offsets): Add code to display the
457 contents of the .debug_str_offsets section.
458 (display_debug_macro): Add support for DW_MACRO_define_strx and
459 DW_MACRO_undef_strx.
460
d768f160
SJ
4612020-06-22 Saagar Jha <saagar@saagarjha.com>
462
463 * od-macho.c: Dump linkedit data for new load commands.
464
5fd104ad
AM
4652020-06-19 Alan Modra <amodra@gmail.com>
466
467 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
468 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
469 (run_dump_test): Use check_relro_support to decide whether to pass
470 extra ld option "-z norelro".
471
fd17d1e6
AM
4722020-06-11 Alan Modra <amodra@gmail.com>
473
474 * readelf.c (process_mips_specific): Don't alloc memory for
475 Elf_Internal_Options.
476
d0c4e780
AM
4772020-06-11 Alan Modra <amodra@gmail.com>
478
479 * readelf.c (process_mips_specific): Assert size of internal
480 types match size of external types, and simplify allocation of
481 internal buffer. Catch possible integer overflow when sanity
482 checking option size. Don't assume options are a regular array.
483 Sanity check reginfo option against option size. Use PRI macros
484 when printing.
485
25065fcd
RH
4862020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
487
488 PR 26082
489 * mclex.c (yylex): Reject lines that reach end-of-file without a
490 terminating newline character.
491
b37a7714
NC
4922020-06-08 Nick Clifton <nickc@redhat.com>
493
494 PR 26093
495 * doc/binutils.texi (strings): Fix typo.
496
c4b2f181
NC
4972020-06-08 Nick Clifton <nickc@redhat.com>
498
499 PR 26086
500 * dwarf.c (process_debug_info): Check that there is space in the
501 debug_information array before filling in an entry.
502
1424c35d
AM
5032020-06-06 Alan Modra <amodra@gmail.com>
504
505 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
506
8affa48a
JA
5072020-06-05 Joel Anderson <joelanderson333@gmail.com>
508
509 PR 26082
510 * mclex.c (yylex): Add test for an empty input stream.
511
8eca5c7d
SC
5122020-06-04 Stephen Casner <casner@acm.org>
513
514 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
515 for test using section pseudo-ops compatible with pdp11.
516 * testsuite/binutils-all/objcopy.exp: Select alternate source.
517
b3db6d07
JM
5182020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
519
520 * objdump.c (disassemble_data): Set disasm_info.endian_code to
521 disasm_info.endian after the latter is initialized to the
522 endianness reported by BFD.
523
0a4f37af
AM
5242020-06-04 Alan Modra <amodra@gmail.com>
525
526 * testsuite/binutils-all/i386/i386.exp: Remove global directive
527 outside proc body.
528 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
529 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
530
913e0fd4
JA
5312020-06-03 Joel Anderson <joelanderson333@gmail.com>
532
533 * windmc.h (struct mc_node): Add id_typecast field.
534 * mcparse.y (message): Initialise the id_typecast field.
535 * windmc.c (write_dbg): Use the id_typecast field as a parameter
536 when calling write_dbg_define.
537 (write_header): Likewise.
538
4a322448
AM
5392020-06-03 Alan Modra <amodra@gmail.com>
540
541 PR 26069
542 * objcopy.c (copy_relocations_in_section): Free relpp on error.
543 Don't accidentally free isection->orelocation.
544
0bee4d1c
AM
5452020-06-02 Alan Modra <amodra@gmail.com>
546
547 * testsuite/binutils-all/ar.exp (obj): Set up object file name
548 extension. Use throughout. Don't completely exclude non-ELF
549 alpha targets. Run long_filenames test for tic30. Exclude thin
550 archive tests for aix, ecoff and vms.
551 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
552 extension. Use throughout. Don't exclude non-ELF alpha targets
553 from "bintest.a".
554
ab7ad287
MF
5552020-05-28 Max Filippov <jcmvbkbc@gmail.com>
556
557 * MAINTAINERS (Xtensa): Add myself as maintainer.
558
3f3c3608
AM
5592020-05-23 Alan Modra <amodra@gmail.com>
560
561 * testsuite/binutils-all/ar.exp (many_files): New test.
562
9db70fc3
AM
5632020-05-21 Alan Modra <amodra@gmail.com>
564
565 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
566 * dlltool.c: Likewise.
567 * elfcomm.c: Likewise.
568 * rddbg.c: Likewise.
569 * readelf.c: Likewise.
570 * stabs.c: Likewise.
571 * windmc.c: Likewise.
572 * windres.c: Likewise.
573 * wrstabs.c: Likewise.
574
c31ab5a0
AM
5752020-05-21 Alan Modra <amodra@gmail.com>
576
577 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
578 access.
579
8f595e9b
NC
5802020-05-20 Nelson Chu <nelson.chu@sifive.com>
581
582 * dwarf.c: Updated since DECLARE_CSR is changed.
583
8ac10c5b
L
5842020-05-19 H.J. Lu <hjl.tools@gmail.com>
585
586 PR binutils/25809
587 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
588 segment doesn't match the .dynamic section and checks are
589 enabled.
590 (struct filedata): Add dynamic_symtab_section and
591 dynamic_strtab_section fields.
592 (process_section_headers): Set dynamic_symtab_section to the
593 .dynsym section. Set dynamic_strtab_section to the .dynstr
594 section.
595 (process_dynamic_section): Warn if the .dynsym section doesn't
596 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
597 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
598
c177f377
AM
5992020-05-19 Alan Modra <amodra@gmail.com>
600
601 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
602 (replace_members): Use bfd_get_filename rather than accessing
603 bfd->filename directly.
604 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
605 * binemul.c (do_ar_emul_append): Likewise.
606 * coffgrok.c (coff_grok): Likewise.
607
83d27139
SH
6082020-05-18 Stafford Horne <shorne@gmail.com>
609
610 * MAINTAINERS (OR1K): Add myself as maintainer.
611
d11a9fab
AB
6122020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * doc/binutils.texi: Mention 'entry address' in the set-start and
615 adjust-start options descriptions.
616
546cb2d8
NC
6172020-05-05 Nick Clifton <nickc@redhat.com>
618
619 * dwarf.c (do_checks): New global variable.
620 (display_formatted_table): Warn about an unexpected number of
621 columns in the table, if checks are enabled. Do not complain
622 about the lack of data following the number of entries in the
623 table if the table is empty.
624 (display_debug_lines_decoded): Only warn about an unexpected
625 number of columns in a table if checks are enabled.
626 * dwarf.h (do_checks): Add a prototype.
627 * elfcomm.c (error): Remove weak attribute.
628 (warn): Likewise.
629 * readelf.c (do_checks): Delete.
630 (warn): Delete.
631 (process_section_headers): Only warn about empty sections if
632 checks are enabled.
633
e052e2ba
FS
6342020-05-04 Fangrui Song <maskray@google.com>
635
636 * objcopy.c (copy_object): Allow empty section.
637 * testsuite/binutils-all/update-section.exp: Add test.
638
070b775f
NC
6392020-05-04 Nick Clifton <nickc@redhat.com>
640
641 PR 25917
642 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
643 supicious number of entries for DWARF-5 format directory and file
644 name tables. Do not display file name table header if the table
645 is empty. Do not allocate space for empty tables.
646
9c7b8e9b
AM
6472020-05-04 Alan Modra <amodra@gmail.com>
648
649 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
650 section. Don't assume endian of host matches nds32 target. Free
651 buffer.
652
60832332
AM
6532020-05-01 Alan Modra <amodra@gmail.com>
654 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
655
656 * objdump.c (disassemble_bytes): Don't scan for zeros when
657 disassembling zeros. Translate "resuming at file offset" message.
658 Formatting. Replace some signed variables with unsigned.
659
09c1e68a
AC
6602020-04-30 Alex Coplan <alex.coplan@arm.com>
661
662 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
663 disassembly.
664 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
665
8a8a1171
NC
6662020-04-30 Nick Clifton <nickc@redhat.com>
667
668 * testsuite/lib/binutils-common.exp (check_pie_support): New
669 proc.
670
cb4c35cf
AB
6712020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
674 range_entries for the same offset.
675
1b513401
NC
6762020-04-29 Nick Clifton <nickc@redhat.com>
677
678 * readelf.c (warn): New function - like elfcomm.c version but only
679 produces output if warnings are enabled.
680 (struct options): Add --lint and --enable-checks.
681 (usage): Add entry for --lint.
682 (parse_args): Handle -L. If checks are enabled but no dumps have
683 been selected then enable all dumps.
684 (process_section_headers): Replace long if-then-else sequence with
685 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
686 SHT_PROGBITS sections.
687 (process_file): Do not complain if the file is an archive and lint
688 mode has been enabled.
689 * elfcomm.c (error): Make the function weak.
690 (warn): Likewise.
691 * NEWS: Mention the new feature.
692 * doc/binutils.texi: Document the new feature.
693 * dwarf.h (report_leb_status): Add file name and line number
694 parameters. Include them in the diagnostic output.
695 (READ_ULEB): Pass file and line number to report_leb_status.
696 (READ_SLEB): Likewise.
697 * dwarf.c (read_and_print_leb128): Pass file and line number to
698 report_leb_status.
699 * testsuite/binutils-all/readelf.exp: Add test of new feature.
700 * testsuite/binutils-all/zero-sec.s: New test source file.
701 * testsuite/binutils-all/zero-sec.r: Expected output from new
702 test.
703
c2e71e57
NC
7042020-04-29 Nick Clifton <nickc@redhat.com>
705
706 * po/sr.po: Updated Serbian translation.
707
90837ea7
AM
7082020-04-26 Alan Modra <amodra@gmail.com>
709
710 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
711 read before dereferencing, and gracefully return. Remove
712 gnu_hash_error variable. Free gnu hash arrays if number of
713 syms found is zero.
714
2482f306
AM
7152020-04-24 Alan Modra <amodra@gmail.com>
716
717 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
718 non-zero.
719 (process_dynamic_section): Call get_num_dynamic_syms once rather
720 than in segment loop. Break out of segment loop on a successful
721 load of dynamic symbols. Formatting.
722 (process_object): Return error status from process_dynamic_section.
723
27456742
AK
7242020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
725
726 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
727 * elf.c (elfcore_grok_arc_v2): New function.
728 (elfcore_grok_note): Call the new function to handle the corresponding
729 note.
730 (elfcore_write_arc_v2): New function.
731 (elfcore_write_register_note): Call the new function to handle the
732 corresponding pseudo-sections.
733
30ce8e47
MF
7342020-04-22 Max Filippov <jcmvbkbc@gmail.com>
735
736 PR ld/25861
737 * readelf.c (is_none_reloc): Recognize
738 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
739 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
740
33b5a830
NC
7412020-04-22 Nick Clifton <nickc@redhat.com>
742
743 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
744
978c4450
AM
7452020-04-22 Alan Modra <amodra@gmail.com>
746
747 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
748 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
749 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
750 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
751 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
752 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
753 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
754 (dynamic_section, symtab_shndx_list, group_count, section_groups),
755 (section_headers_groups): Move to struct filedata. Update use
756 throughout file.
757
6431e409
AM
7582020-04-22 Alan Modra <amodra@gmail.com>
759
760 * readelf.c (struct dump_data): New, used..
761 (cmdline): ..here, and..
762 (struct filedata): ..here. Adjust all uses.
763 (request_dump_bynumber, request_dump, parse_args): Pass in a
764 struct dump_data* rather than Filedata*. Adjust callers.
765 (main): Don't set cmdline.file_name.
766
a5e0be5c
AM
7672020-04-20 Alan Modra <amodra@gmail.com>
768
769 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
770 and nbuckets.
771
8ff66993
AM
7722020-04-20 Alan Modra <amodra@gmail.com>
773
774 * readelf.c (process_section_headers): Free dynamic symbols etc.
775 earlier.
776
ceb9bf11
AM
7772020-04-20 Alan Modra <amodra@gmail.com>
778
779 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
780 on error without freeing.
781 (process_dynamic_section): Don't recreate dynamic symbols from
782 dynamic tag info when the dynamic symbols have already been
783 read via section headers.
784
e409955d
FS
7852020-04-17 Fredrik Strupe <fredrik@strupe.net>
786
787 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
788 conditional VDUP instructions are disassembled correctly.
789 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
790 vdup-cond.d.
791 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
792 that VDUP instructions (which are conditional in A32) can be
793 disassembled in thumb mode.
794 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
795 vdup-thumb.d.
796
ca3f923f
AM
7972020-04-17 Alan Modra <amodra@gmail.com>
798
799 PR 25840
800 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
801
937f6614
AM
8022020-04-16 Alan Modra <amodra@gmail.com>
803
804 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
805 --no-addresses description.
806
b1bc1394
AM
8072020-04-15 Alan Modra <amodra@gmail.com>
808
809 * objdump.c (no_addresses): New static var.
810 (usage): Print help for --no-addresses.
811 (long_options): Add --no-addresses entry.
812 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
813 (disassemble_bytes): Don't print current line address, or reloc
814 address.
815 * doc/binutils.texi: Document objdump --no-addresses.
816
001890e1
AM
8172020-04-15 Alan Modra <amodra@gmail.com>
818
819 PR 25822
820 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
821 reading buckets or chains fails.
822
b71d4fa7
AM
8232020-04-15 Alan Modra <amodra@gmail.com>
824
825 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
826 etc. after freeing.
827
89246a0e
AM
8282020-04-15 Alan Modra <amodra@gmail.com>
829
830 * readelf.c (get_group_flags): Translate text.
831 (get_file_type, get_symbol_binding, get_symbol_type),
832 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
833
c98a4545
AM
8342020-04-15 Alan Modra <amodra@gmail.com>
835
836 PR 25821
837 * readelf.c (get_num_dynamic_syms): Typo fix.
838
645f43a8
AM
8392020-04-14 Alan Modra <amodra@gmail.com>
840
841 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
842 possibility of overflow when checking number of conflicts.
843
10ca4b04
L
8442020-04-14 H.J. Lu <hongjiu.lu@intel.com>
845
846 PR binutils/25707
847 * readelf.c (nbuckets): New.
848 (nchains): Likewise.
849 (buckets): Likewise.
850 (chains): Likewise.
851 (ngnubuckets): Likewise.
852 (gnubuckets): Likewise.
853 (gnuchains): Likewise.
854 (mipsxlat): Likewise.
855 (ngnuchains): Likewise.
856 (gnusymidx): Likewise.
857 (VALID_SYMBOL_NAME): Likewise.
858 (VALID_DYNAMIC_NAME): Use it.
859 (get_dynamic_data): Moved before process_dynamic_section.
860 (get_num_dynamic_syms): New function.
861 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
862 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
863 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
864 table.
865 (get_symbol_index_type): Don't print "bad section index" when
866 there is no section header.
867 (print_dynamic_symbol): Rewrite.
868 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
869 symbol table.
870
bb897477
RO
8712020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
872
873 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
874 enable on *-*-solaris*.
875
00386881
NC
8762020-03-30 Nick Clifton <nickc@redhat.com>
877
878 PR binutils/25662
879 * objcopy.c (copy_object): When copying PE format files set the
880 timestamp field in the pe_data structure if the preserve_dates
881 flag is set.
882 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
883 --preserve-dates in place of the -p option, in order to make its
884 effect more obvious.
885
0a6a8b59
AM
8862020-03-28 Alan Modra <amodra@gmail.com>
887
888 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
889 clear_xfail hppa*-*-*elf*. Revert mips xfails.
890
6a81c59b
AM
8912020-03-28 Alan Modra <amodra@gmail.com>
892
893 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
894 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
895 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
896 test. Pass "-p" to objcopy for the executable test.
897
1fafefd5
JL
8982020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
899
900 PR binutils/25662
901 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
902 specify whether an object file or executable should be built and tested.
903 Change test names to report whether an object file or executable is
904 being tested.
905 * testsuite/binutils-all/pr25662.ld: New test.
906 * testsuite/binutils-all/pr25662.s: New test.
907
80e2a3b6
AM
9082020-03-27 Alan Modra <amodra@gmail.com>
909
910 * readelf.c (process_archive): Don't double free qualified_name.
911 Don't break out of loop with "negative" archive_file_size, just
912 set file offset to max.
913
4c836627
AM
9142020-03-25 Alan Modra <amodra@gmail.com>
915
916 * readelf.c (process_archive): Prevent endless loop.
917
1081065c
L
9182020-03-24 H.J. Lu <hongjiu.lu@intel.com>
919
920 PR binutils/25708
921 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
922 with bfd_get_symbol_version_string.
923 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
924 * objdump.c (objdump_print_symname): Likewise.
925
7e6e972f
L
9262020-03-24 H.J. Lu <hongjiu.lu@intel.com>
927
928 PR binutils/25708
929 * nm.c (SYM_NAME): Removed.
930 (print_symname): Add a pointer to struct extended_symbol_info
931 argument. Call _bfd_elf_get_symbol_version_name to get symbol
932 version.
933 (print_symdef_entry): Pass NULL to print_symname.
934 (print_symbol_info_bsd): Update call to print_symname.
935 (print_symbol_info_sysv): Likewise.
936 (print_symbol_info_posix): Likewise.
937
5a814d6d
AM
9382020-03-24 Alan Modra <amodra@gmail.com>
939
940 * readelf.c (process_mips_specific): Free iconf on error path.
941
0636b245
NC
9422020-03-23 Nick Clifton <nickc@redhat.com>
943
944 PR 25714
945 * wrstabs.c (stab_pop_type): Replace assertion with error return.
946 * write_stabs_in_sections_debugging_info: Likewise.
947 * stab_enum_type: Likewise.
948 * stab_modify_type: Likewise.
949 * stab_struct_field: Likewise.
950 * stab_end_struct_type: Likewise.
951 * stab_start_class_type: Likewise.
952 * stab_class_static_member: Likewise.
953 * stab_class_baseclass: Likewise.
954 * stab_class_start_method: Likewise.
955 * stab_class_method_var: Likewise.
956 * stab_class_end_method: Likewise.
957 * stab_end_class_type: Likewise.
958 * stab_typedef_type: Likewise.
959 * stab_start_function: Likewise.
960 * stab_end_block: Likewise.
961 * stab_lineno: Likewise.
962
5844b465
NC
9632020-03-20 Nick Clifton <nickc@redhat.com>
964
965 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
966 (process_section_headers): Check the return value from
967 get_compression_header.
968 (dump_section_as_strings): Likewise.
969 (dump_section_as_bytes): Likewise.
970 (load_specific_debug_section): Likewise.
971
3d98c460
L
9722020-03-20 H.J. Lu <hongjiu.lu@intel.com>
973
974 * ar.c (main): Update bfd_plugin_set_program_name call.
975 * nm.c (main): Likewise.
976
f3a08f77
NC
9772020-03-19 Nick Clifton <nickc@redhat.com>
978
979 PR 25676
980 * testsuite/binutils-all/dw4.s: New test source file.
981 * testsuite/binutils-all/nm.exp: Run the new test.
982
ef3df110
L
9832020-03-19 H.J. Lu <hongjiu.lu@intel.com>
984
985 * readelf.c (process_symbol_table): Use unsigned long for si.
986
81a65eb3
AM
9872020-03-19 Alan Modra <amodra@gmail.com>
988
989 * elfcomm.c: Don't include bfd.h or bucomm.h.
990 (program_name): Declare.
991 (process_archive_index_and_symbols): Replace bfd_boolean with int,
992 and substitute FALSE and TRUE.
993 (setup_archive, setup_nested_archive): Likewise.
994 * elfcomm.h: Likewise.
995
1cb7d8b1
AM
9962020-03-19 Alan Modra <amodra@gmail.com>
997
998 * readelf.c (process_archive): Always return via path freeing
999 memory. Formatting.
1000
b966f55f
AM
10012020-03-19 Alan Modra <amodra@gmail.com>
1002
1003 * readelf.c (process_netbsd_elf_note): Validate descsz before
1004 accessing descdata. Formatting.
1005
645ba681
AM
10062020-03-19 Alan Modra <amodra@gmail.com>
1007
1008 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1009 * elfcomm.h (setup_archive): Update prototype.
1010
28d13567
AM
10112020-03-16 Alan Modra <amodra@gmail.com>
1012
1013 * readelf.c (get_symbols): New function.
1014 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1015 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1016
60e63c3e
AM
10172020-03-16 Alan Modra <amodra@gmail.com>
1018
1019 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1020 Detect shift overflows and check that terminating byte is found.
1021 Print an error on a bad uleb128.
1022
1bd6175a
AM
10232020-03-14 Alan Modra <amodra@gmail.com>
1024
1025 * readelf.c (process_file): Clean ba_cache.
1026
780f96ae
AM
10272020-03-14 Alan Modra <amodra@gmail.com>
1028
1029 * elfcomm.h (setup_archive): Update prototype.
1030 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1031 check longnames_size.
1032 (setup_nested_archive): Get file size and pass to setup_archive.
1033 * elfedit.c (process_archive): Likewise.
1034 * readelf.c (process_archive): Pass filedata->file_size to
1035 setup_archive.
1036
f761cb13
AM
10372020-03-14 Alan Modra <amodra@gmail.com>
1038
1039 * readelf.c (dump_section_as_strings): Free memory on error exit.
1040 (dump_section_as_bytes, process_notes_at): Likewise.
1041 (get_build_id): Free enote.
1042
06d949ec
KR
10432020-03-13 Kamil Rytarowski <n54@gmx.com>
1044
1045 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1046 NT_NETBSDCORE_LWPSTATUS notes.
1047
fd486f32
AM
10482020-03-13 Alan Modra <amodra@gmail.com>
1049
1050 * elfcomm.c (get_archive_member_name): Always return malloc'd
1051 string or NULL.
1052 * elfedit.c (process_archive): Tidy memory on all return paths.
1053 * readelf.c (process_archive): Likewise.
1054 (process_symbol_table): Likewise.
1055 (ba_cache): New, replacing ..
1056 (get_symbol_for_build_attribute): ..static vars here. Free
1057 strtab and symtab before loading new ones. Reject symtab without
1058 valid strtab in loop, breaking out of loop on valid symtab.
1059 (process_file): Free ba_cache symtab and strtab here, resetting
1060 ba_cache.
1061
8fb879cd
AM
10622020-03-12 Alan Modra <amodra@gmail.com>
1063
1064 * readelf.c (process_section_headers): Don't just set
1065 filedata->section_headers NULL, free it first. Similarly for
1066 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1067 symtab_shndx_list. Zero associated counts too.
1068 (process_object): Free symtab_shndx_list.
1069 (process_file): Free various allocated filedata tables.
1070
5496f3c6
NC
10712020-03-11 Nick Clifton <nickc@redhat.com>
1072
1073 PR 25611
1074 PR 25614
1075 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1076 li_segment_size fields.
1077 * dwarf.c (read_debug_line_header): Record the address size and
1078 segment selector size values (if present) in the lineinfo
1079 structure.
1080 (display_formatted_table): Warn if the format count is empty but
1081 the table itself is not empty.
1082 Display the format count and entry count at the start of the table
1083 dump.
1084 (display_debug_lines_raw): Display the address size and segement
1085 selector size fields, if present.
1086 * testsuite/binutils-all/dw5.W: Update expected output.
1087
9cc89dc0
AM
10882020-03-11 Alan Modra <amodra@gmail.com>
1089
1090 PR 25651
1091 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1092 pad_to_set on second block of code dealing with padding.
1093 Replace "c" with "num_sec" and don't recalculate number of
1094 sections on second block. Size arrays using sizeof (element)
1095 rather than sizeof (element type).
1096
41da0822
AM
10972020-03-10 Alan Modra <amodra@gmail.com>
1098
1099 * objdump.c (disassemble_section): Don't call qsort unless
1100 sym count is at least two.
1101 (disassemble_data): Don't call memcpy with NULL src.
1102
95099889
AM
11032020-03-09 Alan Modra <amodra@gmail.com>
1104
1105 PR 25645
1106 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1107 to get_data rather than multiplying.
1108 (dump_ia64_vms_dynamic_relocs): Likewise.
1109 (process_version_sections): Correct order of size and nmemb args
1110 in get_data call.
1111 (process_mips_specific): Likewise.
1112
a15de1f5
L
11132020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1114
1115 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1116 "memory checkers" in comments.
1117
9979ab66
SM
11182020-03-06 Simon Marchi <simon.marchi@efficios.com>
1119
1120 PR 25491
1121 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1122 * doc/Makefile.in: Re-generate.
1123
a0dcf297
NC
11242020-03-06 Nick Clifton <nickc@redhat.com>
1125
1126 * objcopy.c (check_new_section_flags): New function. Reject the
1127 SEC_COFF_SHARED flag if the target is not a COFF binary.
1128 (copy_object): Call check_new_section_flags.
1129 (setup_section): Likewise.
1130 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1131 flag cannot be applied to ELF binaries.
1132
a9b90127
AM
11332020-03-06 Alan Modra <amodra@gmail.com>
1134
1135 PR 25637
1136 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1137
d1faf7ca
AM
11382020-03-05 Alan Modra <amodra@gmail.com>
1139
1140 PR 25629
1141 * objcopy.c (filter_symbols): Don't segfault on NULL
1142 prefix_symbols_string.
1143
eef64366
CE
11442020-03-04 Christian Eggers <ceggers@gmx.de>
1145
1146 * objcopy.c (copy_object): Convert from bytes to octets for
1147 --gap-fill and --pad-to.
1148
5be2b2f5
NC
11492020-03-03 Nick Clifton <nickc@redhat.com>
1150
1151 PR 25625
1152 * prdbg.c (pr_tag_type): Remove call to abort.
1153
b312fea1
AM
11542020-03-02 Aaron Merey <amerey@redhat.com>
1155
1156 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1157 selection.
1158
ba3265d0
NC
11592020-03-02 Nick Clifton <nickc@redhat.com>
1160
1161 PR 25543
1162 * readelf.c (dump_section_as_strings): Display new-line characters
1163 as \n and then insert a line break.
1164 * testsuite/binutils-all/pr25543.s: New test.
1165 * testsuite/binutils-all/pr25543.d: Test driver.
1166 * testsuite/binutils-all/readelf.exp: Run the new test.
1167
736990c4
NC
11682020-02-27 Nick Clifton <nickc@redhat.com>
1169
1170 PR 25526
1171 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1172 get_data is unable to load the string table.
1173
dc1e8a47
AM
11742020-02-26 Alan Modra <amodra@gmail.com>
1175
1176 * elfedit.c: Indent labels correctly.
1177 * readelf.c: Likewise.
1178 * resres.c: Likewise.
1179
ecda9016
L
11802020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1181
1182 PR binutils/25584
1183 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1184 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1185
83d4d556
NC
11862020-02-24 Nick Clifton <nickc@redhat.com>
1187
1188 PR 25499
1189 * doc/binutils.texi (objdump): Fix typo in description of
1190 objdump's -g option.
1191
bd0cf5a6
NC
11922020-02-20 Nelson Chu <nelson.chu@sifive.com>
1193
1194 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1195 is changed.
1196
741cb839
EC
11972020-02-19 Jordan Rupprecht <rupprecht@google.com>
1198
1199 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1200
9f1528a1
AB
12012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * configure: Regenerate.
1204
3a5d12fb
FS
12052020-02-10 Fangrui Song <maskray@google.com>
1206
1207 * objcopy.c (parse_flags): Handle "exclude".
1208 * doc/binutils.texi: Document the support.
1209
678d457f
AM
12102020-02-10 Aaron Merey <amerey@redhat.com>
1211
1212 * binutils/testsuite/binutils-all/debuginfod.exp:
1213 Replace set ::env with setenv.
46471187
AM
1214 Start server before setting environment variable.
1215 Specify tmpdir as the location of the server's
1216 database.
1217 Check additional server metrics at start-up.
678d457f 1218
e8319fde
NC
12192020-02-07 Nick Clifton <nickc@redhat.com>
1220
1221 * README-how-to-make-a-release: Add note about updating the
1222 GAS/NEWS URL in the next release.
1223
9fc0b501
SB
12242020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1225
1226 PR 25469
1227 * readelf.c (get_machine_flags): Add support for Z80N machine
1228 number.
1229
e1104d08
NC
12302020-02-07 Nick Clifton <nickc@redhat.com>
1231
1232 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1233 of the truncated file name.
1234
c2e6f744 12352020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1236
1237 * objdump.c (print_jump_visualisation): New function.
1238 (disassemble_bytes): Call new function.
1239
02e0be69
AM
12402020-02-06 Alan Modra <amodra@gmail.com>
1241
1242 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1243 TCL procedure.
1244 (supports_gnu_osabi): New procedure.
1245 (is_generic): New, from ld-lib.exp.
1246 (supports_gnu_unique): Use the above.
1247
e8b79122
AM
12482020-02-04 Alan Modra <amodra@gmail.com>
1249
1250 * Makefile.am (CFILES): Add od-elf32_avr.c.
1251 * Makefile.in: Regenerate.
1252 * po/POTFILES.in: Regenerate.
1253
27a45f42
AS
12542020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1255
1256 * readelf.c (dump_relocations, dump_relocations)
1257 (decode_arm_unwind_bytecode, process_dynamic_section)
1258 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1259 error message.
1260
0b398d69
ST
12612020-02-03 Sergei Trofimovich <siarheit@google.com>
1262
1263 * coffdump.c (program_name): Drop redundant definition.
1264 * srconv.c (program_name): Likewise
1265 * sysdump.c (program_name): Likewise
1266
a8c4d40b
L
12672020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1268
1269 PR gas/25380
1270 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1271 same file with different section pointers.
1272
cb6ad9bb
NC
12732020-02-01 Nick Clifton <nickc@redhat.com>
1274
1275 * README-how-to-make-a-release: Update with more details on the
1276 release making process.
1277
53943f32
NC
12782020-01-31 Nick Clifton <nickc@redhat.com>
1279
1280 * po/sv.po: Updated Swedish translation.
1281
55be8fd0
NC
12822020-01-28 Nick Clifton <nickc@redhat.com>
1283
1284 * readelf.c (get_build_id): Simplify warning message about corrupt
1285 notes encountered whilst scanning for the build-id.
1286
82ef9cad
RM
12872020-01-27 Roland McGrath <mcgrathr@google.com>
1288
1289 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1290 for overlapping ranges so that (A == B) == (B == A) holds.
1291
e3696f67
AM
12922020-01-27 Alan Modra <amodra@gmail.com>
1293
1294 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1295 case statement with switch statement.
1296
2f796de6
NC
12972020-01-24 Nick Clifton <nickc@redhat.com>
1298
1299 * readelf.c (get_build_id): Fix warning messages about corrupt
1300 notes.
1301
24e648d4
NC
13022020-01-23 Nick Clifton <nickc@redhat.com>
1303
1304 * po/fr.po: Updated French translation.
1305
c48acf6f
YC
13062020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1307
1308 PR 25417
1309 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1310
26916852
NC
13112020-01-20 Nick Clifton <nickc@redhat.com>
1312
1313 * po/pt.po: Updated Portuguese translation.
1314 * po/uk.po: Updated Ukranian translation.
1315
b248e9ce
NC
13162020-01-18 Nick Clifton <nickc@redhat.com>
1317
1318 * README-how-to-make-a-release: Update notes on how to cut a
1319 branch for a release.
1320
1b1bb2c6
NC
13212020-01-18 Nick Clifton <nickc@redhat.com>
1322
1323 * configure: Regenerate.
1324 * po/binutils.pot: Regenerate.
1325
ae774686
NC
13262020-01-18 Nick Clifton <nickc@redhat.com>
1327
1328 Binutils 2.34 branch created.
1329
82a9ed20
TT
13302020-01-17 Thomas Troeger <tstroege@gmx.de>
1331
1332 * objdump.c (jump_info_visualize_address): Discard jumps that are
1333 no longer needed.
1334 (disassemble_bytes): Only compute the maximum level if jumps were
1335 detected.
1336
6a1939f5
NC
13372020-01-13 Nick Clifton <nickc@redhat.com>
1338
c87c17c1 1339 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1340 * testsuite/binutils-all/debuginfod.exp: New tests.
1341
1d67fe3b
TT
13422020-01-13 Thomas Troeger <tstroege@gmx.de>
1343
1344 * objdump.c (visualize_jumps, color_output, extended_color_output)
1345 (detected_jumps): New variables.
1346 (usage): Add the new jump visualization options.
1347 (option_values): Add new option value.
1348 (long_options): Add the new option.
1349 (jump_info_new, jump_info_free): New functions.
1350 (jump_info_min_address, jump_info_max_address): Likewise.
1351 (jump_info_end_address, jump_info_is_start_address): Likewise.
1352 (jump_info_is_end_address, jump_info_size): Likewise.
1353 (jump_info_unlink, jump_info_insert): Likewise.
1354 (jump_info_add_front, jump_info_move_linked): Likewise.
1355 (jump_info_intersect, jump_info_merge): Likewise.
1356 (jump_info_sort, jump_info_visualize_address): Likewise.
1357 (disassemble_jumps): New function - used to locate jumps.
1358 (disassemble_bytes): Add ascii art generation.
1359 (disassemble_section): Add scan to locate jumps.
1360 (main): Parse the new visualization option.
1361 * doc/binutils.texi: Document the new feature.
1362 * NEWS: Mention the new feature.
1363
a788aedd
AM
13642020-01-13 Alan Modra <amodra@gmail.com>
1365
a4f2b7c5
AM
1366 PR 25360
1367 PR 25361
a788aedd
AM
1368 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1369 fde_fc col_type and col_offset.
1370 * readelf.c (apply_relocations): Move symsec check earlier.
1371 (free_debug_section): Free reloc_info.
1372 (process_notes_at): Free pnotes on error path.
1373 (process_object): Free dump_sects here..
1374 (process_archive): ..not here.
1375
805f38bc
AM
13762020-01-13 Alan Modra <amodra@gmail.com>
1377
1378 PR 25362
1379 * nm.c (display_rel_file): Free dyn_syms.
1380
ffebb0bb
NC
13812020-01-09 Nick Clifton <nickc@redhat.com>
1382
1383 PR 25220
1384 * objcopy.c (empty_name): New variable.
1385 (need_sym_before): Prevent an attempt to free a static variable.
1386 (filter_symbols): Avoid strcmp test by checking for pointer
1387 equality.
1388
ade4fd9b
NC
13892020-01-09 Nick Clifton <nickc@redhat.com>
1390
1391 * po/zh_TW.po: Updated Traditional Chinese translation.
1392
13932020-01-09 Aaron Merey <amerey@redhat.com>
1394
1395 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1396 * Makefile.in: Regenerate.
1397 * NEWS: Update.
1398 * config.in: Regenerate.
1399 * configure: Regenerate.
1400 * configure.ac: Call AC_DEBUGINFOD.
1401 * doc/Makefile.in: Regenerate.
1402 * doc/binutils.texi: Add section on using binutils
1403 with debuginfod.
1404 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1405 Query debuginfod servers for the target debug file.
1406 (load_separate_debug_info): Call
1407 debuginfod_fetch_separate_debug_info if configured with
1408 debuginfod.
1409 (load_separate_debug_files): Add file argument to
1410 load_separate_debug_info calls.
1411 * dwarf.h (get_build_id): Add declaration.
1412 * objdump.c (get_build_id): New function. Get build-id of file.
1413 * readelf.c (get_build_id): Likewise.
1414 * testsuite/binutils-all/debuginfod.exp: New tests.
1415 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1416 section.
1417
6655dba2
SB
14182020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1419
1420 * readelf.c: Add support for new Z*) relocations and machine
1421 types.
1422
b14ce8bf
AM
14232020-01-01 Alan Modra <amodra@gmail.com>
1424
1425 Update year range in copyright notice of all files.
1426
0b114740 1427For older changes see ChangeLog-2019
3499769a 1428\f
0b114740 1429Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1430
1431Copying and distribution of this file, with or without modification,
1432are permitted in any medium without royalty provided the copyright
1433notice and this notice are preserved.
1434
1435Local Variables:
1436mode: change-log
1437left-margin: 8
1438fill-column: 74
1439version-control: never
1440End:
This page took 0.684723 seconds and 4 git commands to generate.