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