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