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