PR26348, Malloc error in write_zeros
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2020-08-13 Alan Modra <amodra@gmail.com>
2
3 PR 26348
4 * objcopy.c (copy_object): Report file name with endian error.
5 Error and return on abfd->read_only.
6
7 2020-08-12 Tom Tromey <tromey@adacore.com>
8
9 * dwarf-mode.el (Version): Now 1.6.
10 (dwarf-die-button-action): Tighten DIE reference regexp.
11 (dwarf-font-lock-keywords): Update name regexp.
12
13 2020-08-12 Nick Clifton <nickc@redhat.com>
14
15 PR binutils/26331
16 * readelf.c (do_demangle): New option flag.
17 (print_symbol): If do_demangle is enabled, demangle the symbol.
18 (enum long_option_values): New enum to hold long option values.
19 (options): Add demangle, no-demangle, recursion-limit and
20 no-recursion-limit options. Alpha sort the table.
21 (usage): Describe the new options.
22 (parse_args): Handle the new options.
23 * NEWS: Mention the new feature.
24 * doc/binutils.texi: Document the new feature.
25 * testsuite/binutils-all/readelf.exp: Test the new feature.
26 * testsuite/binutils-all/mangled.s: New file - assembler source.
27 * testsuite/binutils-all/readelf.demangled: New file - expected
28 output from readelf.
29
30 2020-08-12 Nick Clifton <nickc@redhat.com>
31
32 * po/sr.po: Updated Serbian translation.
33
34 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
35
36 PR binutils/26302
37 * nm.c (with_symbol_versions): Removed.
38 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
39 (long_options): Update --with-symbol-versions entry.
40 (print_symbol): Remove the with_symbol_versions check.
41 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
42 compatibility.
43 * doc/binutils.texi: Remove --with-symbol-versions.
44
45 2020-08-05 Alan Modra <amodra@gmail.com>
46
47 PR 26337
48 * objdump.c (load_specific_debug_section): Revert last change.
49
50 2020-08-05 Alan Modra <amodra@gmail.com>
51
52 PR 26337
53 * objdump.c (load_specific_debug_section): Don't malloc space for
54 section contents, use bfd_malloc_and_get_section.
55
56 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
57
58 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
59 * Makefile.in, doc/Makefile.in: Regenerate.
60 * configure: Regenerate.
61
62 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
63
64 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
65 to assembler.
66 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
67 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
68 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
69 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
70 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
71
72 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
73
74 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
75 New test.
76 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
77 New test.
78 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
79 New test.
80 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
81 New test.
82 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
83 New test.
84 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
85 New test.
86 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
87 New test.
88 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
89 New test.
90 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
91 New test.
92 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
93
94 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
95
96 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
97 test.
98 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
99 test.
100 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
101 test.
102 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
103 test.
104 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
105 test.
106 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
107
108 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR binutils/26301
111 * configure: Regenerated.
112
113 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
114
115 PR binutils/26301
116 * configure: Regenerated.
117
118 2020-07-27 Alan Modra <amodra@gmail.com>
119
120 * objdump.c (dump_section): Don't return without calling
121 process_section_p.
122
123 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
124
125 * doc/binutils.texi: Replace preceeded with preceded.
126
127 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
128
129 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
130 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
131 procedures.
132 (has_newabi): Remove variable.
133 (has_abi, abi_asflags, abi_ldflags): New associative array
134 variables.
135 (irixemul): New variable.
136 Replace `run_dump_test' calls where applicable throughout with
137 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
138 as appropriate. Use `noarch' for tests that require their own
139 architecture setting.
140 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
141 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
142 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
143 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
144 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
145 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
146 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
147 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
148 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
149 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
150 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
151 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
152 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
153 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
154 GAS flags.
155 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
156 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
157 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
158 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
159 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
160 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
161 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
162
163 2020-07-24 Aaron Merey <amerey@redhat.com>
164
165 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
166 * Makefile.in: Rebuild.
167 * configure: Rebuild.
168 * doc/Makefile.in: Rebuild.
169
170 2020-07-24 Nick Clifton <nickc@redhat.com>
171
172 * README-how-to-make-a-release: Various small updates whilst
173 creating the 2.35 release.
174
175 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
176
177 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
178 option.
179
180 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
181
182 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
183 (dump_ctf): Likewise.
184
185 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
186
187 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
188 * readelf.c (dump_ctf_archive_member): Likewise.
189
190 2020-07-22 Nick Clifton <nickc@redhat.com>
191
192 * readelf.c (parse_args): Silence potential warnings about a
193 memory resource leak when allocating space for ctf option values.
194 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
195 variable.
196
197 2020-07-21 Nick Clifton <nickc@redhat.com>
198
199 * po/sv.po: Updated Swedish translation.
200
201 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
202
203 * testsuite/binutils-all/arc/double_regs.s: New test.
204 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
205
206 2020-07-13 Nick Clifton <nickc@redhat.com>
207
208 * po/fr.po: Updated French translation.
209
210 2020-07-13 Alan Modra <amodra@gmail.com>
211
212 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
213 optional machine-os arg.
214
215 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
216
217 * readelf.c (decode_x86_feature_2): Handle
218 GNU_PROPERTY_X86_FEATURE_2_TMM.
219
220 2020-07-10 Tom de Vries <tdevries@suse.de>
221
222 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
223 information in the end_sequence row.
224 * testsuite/binutils-all/dw5.W: Update.
225 * testsuite/binutils-all/objdump.WL: Update.
226
227 2020-07-09 Alan Modra <amodra@gmail.com>
228
229 * dlltool.c: Remove powerpc PE support and comments.
230 * configure.ac: Remove powerpc PE dlltool config.
231 * configure: Regenerate.
232
233 2020-07-09 Nick Clifton <nickc@redhat.com>
234
235 * rclex.c: Add OWNERDRAW keyword.
236 * rcparse.y: Add OWNERDRAW token.
237 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
238 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
239 BITMAP flags.
240 * windres.c (extended_menuitems): Likewise.
241 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
242
243 2020-07-09 Alan Modra <amodra@gmail.com>
244
245 * readelf (slurp_hppa_unwind_table): Set table_len before use
246 in relocation sanity checks.
247
248 2020-07-07 Alan Modra <amodra@gmail.com>
249
250 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
251 * testsuite/binutils-all/nm.exp: Likewise.
252 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
253 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
254 * testsuite/binutils-all/set-section-alignment.d: Likewise.
255 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
256
257 2020-07-07 Alan Modra <amodra@gmail.com>
258
259 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
260 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
261
262 2020-07-06 Nick Clifton <nickc@redhat.com>
263
264 * po/bg.po: Updated Bulgarian translation.
265 * po/pt.po: Updated Portuguese translation.
266 * po/uk.po: Updated Ukranian translation.
267
268 2020-07-06 Alan Modra <amodra@gmail.com>
269
270 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
271 find string length.
272
273 2020-07-04 Nick Clifton <nickc@redhat.com>
274
275 * configure: Regenerate.
276 * po/binutils.pot: Regenerate.
277
278 2020-07-04 Nick Clifton <nickc@redhat.com>
279
280 Binutils 2.35 branch created.
281
282 2020-07-02 Nick Clifton <nickc@redhat.com>
283
284 PR 26028
285 * readelf.c (print_symbol): Handle truncation of symbol names.
286 (options): Add -T/--silent-truncation option.
287 (parse_args): Handle the option.
288 (print_dynamic_symbol): Correct calculation of width available to
289 display symbol name.
290 * doc/binutils.texi: Document the -T option to readelf.
291 * NEWS: Mention the new feature.
292
293 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
294
295 * NEWS: Mention x86 NaCl target support removal.
296 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
297 x86 NaCl target support.
298 * testsuite/binutils-all/elfedit-1.d: Likewise.
299 * testsuite/binutils-all/i386/i386.exp: Likewise.
300 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
301 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
302 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
303 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
304 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
305 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
306 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
307 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
308 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
309 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
310 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
311 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
312
313 2020-06-30 Nick Clifton <nickc@redhat.com>
314
315 * dwarf.c (read_and_display_attr_value): Support
316 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
317 DW_AT_comp_dir.
318
319 2020-06-30 Alan Modra <amodra@gmail.com>
320
321 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
322 xfail for nds32.
323
324 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
325
326 * dwarf.c (display_debug_str_offsets): Rename local variable
327 index to idx. Move to top of function.
328
329 2020-06-29 Alan Modra <amodra@gmail.com>
330
331 * dwarf.c: Use C style comments.
332 * resrc.c: Likewise.
333
334 2020-06-27 Alan Modra <amodra@gmail.com>
335
336 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
337 after freeing.
338 (release_archive): Set fields of arch to NULL after freeing.
339
340 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
341
342 * readelf.c (dump_section_as_ctf): Support .ctf archives using
343 ctf_arc_bufopen. Automatically load the .ctf member of such
344 archives as the parent of all other members, unless specifically
345 overridden via --ctf-parent. Split out dumping code into...
346 (dump_ctf_archive_member): ... here, as in objdump, and call
347 it once per archive member.
348 (dump_ctf_indent_lines): Code style fix.
349
350 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
351
352 * configure.ac [--enable-libctf]: New, default yes.
353 Set ENABLE_LIBCTF accordingly.
354 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
355 * configure: Regenerate.
356 * config.in: Regenerate.
357 * Makefile.in: Regenerate.
358 * aclocal.m4: Regenerate.
359 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
360 (option_values): Likewise.
361 (long_options): Likewise.
362 (main): Likewise.
363 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
364 (make_ctfsect): Likewise.
365 (dump_ctf_archive_member): Likewise.
366 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
367 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
368 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
369 (usage): Likewise.
370 (process_section_contents): Likewise.
371 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
372 (dump_ctf_indent_lines): Likewise.
373 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
374
375 2020-06-26 Jan Beulich <jbeulich@suse.com>
376
377 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
378 redundant text from x86 specific part of -M section.
379
380 2020-06-26 Pat Bernardi <bernardi@adacore.com>
381
382 * readelf.c (display_m68k_gnu_attribute): New function.
383 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
384
385 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
386
387 PR binutils/26160
388 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
389 * testsuite/binutils-all/pr26160.r: Likewise.
390 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
391
392 2020-06-23 Nick Clifton <nickc@redhat.com>
393
394 PR 26160
395 * dwarf.c (fetch_indexed_string): Detect and handle old style
396 .debug_str_offset tables.
397 (display_debug_str_offsets): Likewise. Also add support for
398 .debug_str_offsets.dwo sections.
399
400 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
401
402 PR binutils/26112
403 * testsuite/binutils-all/pr26112.o.bz2: New file.
404 * testsuite/binutils-all/pr26112.r: Likewise.
405 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
406
407 2020-06-23 Alan Modra <amodra@gmail.com>
408
409 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
410 remote_file delete command.
411
412 2020-06-22 Nick Clifton <nickc@redhat.com>
413
414 PR 26112
415 * dwarf.c (display_debug_str_offsets): Add code to display the
416 contents of the .debug_str_offsets section.
417 (display_debug_macro): Add support for DW_MACRO_define_strx and
418 DW_MACRO_undef_strx.
419
420 2020-06-22 Saagar Jha <saagar@saagarjha.com>
421
422 * od-macho.c: Dump linkedit data for new load commands.
423
424 2020-06-19 Alan Modra <amodra@gmail.com>
425
426 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
427 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
428 (run_dump_test): Use check_relro_support to decide whether to pass
429 extra ld option "-z norelro".
430
431 2020-06-11 Alan Modra <amodra@gmail.com>
432
433 * readelf.c (process_mips_specific): Don't alloc memory for
434 Elf_Internal_Options.
435
436 2020-06-11 Alan Modra <amodra@gmail.com>
437
438 * readelf.c (process_mips_specific): Assert size of internal
439 types match size of external types, and simplify allocation of
440 internal buffer. Catch possible integer overflow when sanity
441 checking option size. Don't assume options are a regular array.
442 Sanity check reginfo option against option size. Use PRI macros
443 when printing.
444
445 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
446
447 PR 26082
448 * mclex.c (yylex): Reject lines that reach end-of-file without a
449 terminating newline character.
450
451 2020-06-08 Nick Clifton <nickc@redhat.com>
452
453 PR 26093
454 * doc/binutils.texi (strings): Fix typo.
455
456 2020-06-08 Nick Clifton <nickc@redhat.com>
457
458 PR 26086
459 * dwarf.c (process_debug_info): Check that there is space in the
460 debug_information array before filling in an entry.
461
462 2020-06-06 Alan Modra <amodra@gmail.com>
463
464 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
465
466 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
467
468 PR 26082
469 * mclex.c (yylex): Add test for an empty input stream.
470
471 2020-06-04 Stephen Casner <casner@acm.org>
472
473 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
474 for test using section pseudo-ops compatible with pdp11.
475 * testsuite/binutils-all/objcopy.exp: Select alternate source.
476
477 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
478
479 * objdump.c (disassemble_data): Set disasm_info.endian_code to
480 disasm_info.endian after the latter is initialized to the
481 endianness reported by BFD.
482
483 2020-06-04 Alan Modra <amodra@gmail.com>
484
485 * testsuite/binutils-all/i386/i386.exp: Remove global directive
486 outside proc body.
487 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
488 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
489
490 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
491
492 * windmc.h (struct mc_node): Add id_typecast field.
493 * mcparse.y (message): Initialise the id_typecast field.
494 * windmc.c (write_dbg): Use the id_typecast field as a parameter
495 when calling write_dbg_define.
496 (write_header): Likewise.
497
498 2020-06-03 Alan Modra <amodra@gmail.com>
499
500 PR 26069
501 * objcopy.c (copy_relocations_in_section): Free relpp on error.
502 Don't accidentally free isection->orelocation.
503
504 2020-06-02 Alan Modra <amodra@gmail.com>
505
506 * testsuite/binutils-all/ar.exp (obj): Set up object file name
507 extension. Use throughout. Don't completely exclude non-ELF
508 alpha targets. Run long_filenames test for tic30. Exclude thin
509 archive tests for aix, ecoff and vms.
510 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
511 extension. Use throughout. Don't exclude non-ELF alpha targets
512 from "bintest.a".
513
514 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
515
516 * MAINTAINERS (Xtensa): Add myself as maintainer.
517
518 2020-05-23 Alan Modra <amodra@gmail.com>
519
520 * testsuite/binutils-all/ar.exp (many_files): New test.
521
522 2020-05-21 Alan Modra <amodra@gmail.com>
523
524 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
525 * dlltool.c: Likewise.
526 * elfcomm.c: Likewise.
527 * rddbg.c: Likewise.
528 * readelf.c: Likewise.
529 * stabs.c: Likewise.
530 * windmc.c: Likewise.
531 * windres.c: Likewise.
532 * wrstabs.c: Likewise.
533
534 2020-05-21 Alan Modra <amodra@gmail.com>
535
536 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
537 access.
538
539 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
540
541 * dwarf.c: Updated since DECLARE_CSR is changed.
542
543 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
544
545 PR binutils/25809
546 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
547 segment doesn't match the .dynamic section and checks are
548 enabled.
549 (struct filedata): Add dynamic_symtab_section and
550 dynamic_strtab_section fields.
551 (process_section_headers): Set dynamic_symtab_section to the
552 .dynsym section. Set dynamic_strtab_section to the .dynstr
553 section.
554 (process_dynamic_section): Warn if the .dynsym section doesn't
555 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
556 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
557
558 2020-05-19 Alan Modra <amodra@gmail.com>
559
560 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
561 (replace_members): Use bfd_get_filename rather than accessing
562 bfd->filename directly.
563 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
564 * binemul.c (do_ar_emul_append): Likewise.
565 * coffgrok.c (coff_grok): Likewise.
566
567 2020-05-18 Stafford Horne <shorne@gmail.com>
568
569 * MAINTAINERS (OR1K): Add myself as maintainer.
570
571 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * doc/binutils.texi: Mention 'entry address' in the set-start and
574 adjust-start options descriptions.
575
576 2020-05-05 Nick Clifton <nickc@redhat.com>
577
578 * dwarf.c (do_checks): New global variable.
579 (display_formatted_table): Warn about an unexpected number of
580 columns in the table, if checks are enabled. Do not complain
581 about the lack of data following the number of entries in the
582 table if the table is empty.
583 (display_debug_lines_decoded): Only warn about an unexpected
584 number of columns in a table if checks are enabled.
585 * dwarf.h (do_checks): Add a prototype.
586 * elfcomm.c (error): Remove weak attribute.
587 (warn): Likewise.
588 * readelf.c (do_checks): Delete.
589 (warn): Delete.
590 (process_section_headers): Only warn about empty sections if
591 checks are enabled.
592
593 2020-05-04 Fangrui Song <maskray@google.com>
594
595 * objcopy.c (copy_object): Allow empty section.
596 * testsuite/binutils-all/update-section.exp: Add test.
597
598 2020-05-04 Nick Clifton <nickc@redhat.com>
599
600 PR 25917
601 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
602 supicious number of entries for DWARF-5 format directory and file
603 name tables. Do not display file name table header if the table
604 is empty. Do not allocate space for empty tables.
605
606 2020-05-04 Alan Modra <amodra@gmail.com>
607
608 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
609 section. Don't assume endian of host matches nds32 target. Free
610 buffer.
611
612 2020-05-01 Alan Modra <amodra@gmail.com>
613 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
614
615 * objdump.c (disassemble_bytes): Don't scan for zeros when
616 disassembling zeros. Translate "resuming at file offset" message.
617 Formatting. Replace some signed variables with unsigned.
618
619 2020-04-30 Alex Coplan <alex.coplan@arm.com>
620
621 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
622 disassembly.
623 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
624
625 2020-04-30 Nick Clifton <nickc@redhat.com>
626
627 * testsuite/lib/binutils-common.exp (check_pie_support): New
628 proc.
629
630 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
633 range_entries for the same offset.
634
635 2020-04-29 Nick Clifton <nickc@redhat.com>
636
637 * readelf.c (warn): New function - like elfcomm.c version but only
638 produces output if warnings are enabled.
639 (struct options): Add --lint and --enable-checks.
640 (usage): Add entry for --lint.
641 (parse_args): Handle -L. If checks are enabled but no dumps have
642 been selected then enable all dumps.
643 (process_section_headers): Replace long if-then-else sequence with
644 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
645 SHT_PROGBITS sections.
646 (process_file): Do not complain if the file is an archive and lint
647 mode has been enabled.
648 * elfcomm.c (error): Make the function weak.
649 (warn): Likewise.
650 * NEWS: Mention the new feature.
651 * doc/binutils.texi: Document the new feature.
652 * dwarf.h (report_leb_status): Add file name and line number
653 parameters. Include them in the diagnostic output.
654 (READ_ULEB): Pass file and line number to report_leb_status.
655 (READ_SLEB): Likewise.
656 * dwarf.c (read_and_print_leb128): Pass file and line number to
657 report_leb_status.
658 * testsuite/binutils-all/readelf.exp: Add test of new feature.
659 * testsuite/binutils-all/zero-sec.s: New test source file.
660 * testsuite/binutils-all/zero-sec.r: Expected output from new
661 test.
662
663 2020-04-29 Nick Clifton <nickc@redhat.com>
664
665 * po/sr.po: Updated Serbian translation.
666
667 2020-04-26 Alan Modra <amodra@gmail.com>
668
669 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
670 read before dereferencing, and gracefully return. Remove
671 gnu_hash_error variable. Free gnu hash arrays if number of
672 syms found is zero.
673
674 2020-04-24 Alan Modra <amodra@gmail.com>
675
676 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
677 non-zero.
678 (process_dynamic_section): Call get_num_dynamic_syms once rather
679 than in segment loop. Break out of segment loop on a successful
680 load of dynamic symbols. Formatting.
681 (process_object): Return error status from process_dynamic_section.
682
683 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
684
685 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
686 * elf.c (elfcore_grok_arc_v2): New function.
687 (elfcore_grok_note): Call the new function to handle the corresponding
688 note.
689 (elfcore_write_arc_v2): New function.
690 (elfcore_write_register_note): Call the new function to handle the
691 corresponding pseudo-sections.
692
693 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
694
695 PR ld/25861
696 * readelf.c (is_none_reloc): Recognize
697 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
698 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
699
700 2020-04-22 Nick Clifton <nickc@redhat.com>
701
702 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
703
704 2020-04-22 Alan Modra <amodra@gmail.com>
705
706 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
707 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
708 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
709 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
710 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
711 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
712 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
713 (dynamic_section, symtab_shndx_list, group_count, section_groups),
714 (section_headers_groups): Move to struct filedata. Update use
715 throughout file.
716
717 2020-04-22 Alan Modra <amodra@gmail.com>
718
719 * readelf.c (struct dump_data): New, used..
720 (cmdline): ..here, and..
721 (struct filedata): ..here. Adjust all uses.
722 (request_dump_bynumber, request_dump, parse_args): Pass in a
723 struct dump_data* rather than Filedata*. Adjust callers.
724 (main): Don't set cmdline.file_name.
725
726 2020-04-20 Alan Modra <amodra@gmail.com>
727
728 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
729 and nbuckets.
730
731 2020-04-20 Alan Modra <amodra@gmail.com>
732
733 * readelf.c (process_section_headers): Free dynamic symbols etc.
734 earlier.
735
736 2020-04-20 Alan Modra <amodra@gmail.com>
737
738 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
739 on error without freeing.
740 (process_dynamic_section): Don't recreate dynamic symbols from
741 dynamic tag info when the dynamic symbols have already been
742 read via section headers.
743
744 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
745
746 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
747 conditional VDUP instructions are disassembled correctly.
748 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
749 vdup-cond.d.
750 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
751 that VDUP instructions (which are conditional in A32) can be
752 disassembled in thumb mode.
753 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
754 vdup-thumb.d.
755
756 2020-04-17 Alan Modra <amodra@gmail.com>
757
758 PR 25840
759 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
760
761 2020-04-16 Alan Modra <amodra@gmail.com>
762
763 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
764 --no-addresses description.
765
766 2020-04-15 Alan Modra <amodra@gmail.com>
767
768 * objdump.c (no_addresses): New static var.
769 (usage): Print help for --no-addresses.
770 (long_options): Add --no-addresses entry.
771 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
772 (disassemble_bytes): Don't print current line address, or reloc
773 address.
774 * doc/binutils.texi: Document objdump --no-addresses.
775
776 2020-04-15 Alan Modra <amodra@gmail.com>
777
778 PR 25822
779 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
780 reading buckets or chains fails.
781
782 2020-04-15 Alan Modra <amodra@gmail.com>
783
784 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
785 etc. after freeing.
786
787 2020-04-15 Alan Modra <amodra@gmail.com>
788
789 * readelf.c (get_group_flags): Translate text.
790 (get_file_type, get_symbol_binding, get_symbol_type),
791 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
792
793 2020-04-15 Alan Modra <amodra@gmail.com>
794
795 PR 25821
796 * readelf.c (get_num_dynamic_syms): Typo fix.
797
798 2020-04-14 Alan Modra <amodra@gmail.com>
799
800 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
801 possibility of overflow when checking number of conflicts.
802
803 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
804
805 PR binutils/25707
806 * readelf.c (nbuckets): New.
807 (nchains): Likewise.
808 (buckets): Likewise.
809 (chains): Likewise.
810 (ngnubuckets): Likewise.
811 (gnubuckets): Likewise.
812 (gnuchains): Likewise.
813 (mipsxlat): Likewise.
814 (ngnuchains): Likewise.
815 (gnusymidx): Likewise.
816 (VALID_SYMBOL_NAME): Likewise.
817 (VALID_DYNAMIC_NAME): Use it.
818 (get_dynamic_data): Moved before process_dynamic_section.
819 (get_num_dynamic_syms): New function.
820 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
821 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
822 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
823 table.
824 (get_symbol_index_type): Don't print "bad section index" when
825 there is no section header.
826 (print_dynamic_symbol): Rewrite.
827 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
828 symbol table.
829
830 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
831
832 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
833 enable on *-*-solaris*.
834
835 2020-03-30 Nick Clifton <nickc@redhat.com>
836
837 PR binutils/25662
838 * objcopy.c (copy_object): When copying PE format files set the
839 timestamp field in the pe_data structure if the preserve_dates
840 flag is set.
841 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
842 --preserve-dates in place of the -p option, in order to make its
843 effect more obvious.
844
845 2020-03-28 Alan Modra <amodra@gmail.com>
846
847 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
848 clear_xfail hppa*-*-*elf*. Revert mips xfails.
849
850 2020-03-28 Alan Modra <amodra@gmail.com>
851
852 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
853 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
854 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
855 test. Pass "-p" to objcopy for the executable test.
856
857 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
858
859 PR binutils/25662
860 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
861 specify whether an object file or executable should be built and tested.
862 Change test names to report whether an object file or executable is
863 being tested.
864 * testsuite/binutils-all/pr25662.ld: New test.
865 * testsuite/binutils-all/pr25662.s: New test.
866
867 2020-03-27 Alan Modra <amodra@gmail.com>
868
869 * readelf.c (process_archive): Don't double free qualified_name.
870 Don't break out of loop with "negative" archive_file_size, just
871 set file offset to max.
872
873 2020-03-25 Alan Modra <amodra@gmail.com>
874
875 * readelf.c (process_archive): Prevent endless loop.
876
877 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
878
879 PR binutils/25708
880 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
881 with bfd_get_symbol_version_string.
882 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
883 * objdump.c (objdump_print_symname): Likewise.
884
885 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
886
887 PR binutils/25708
888 * nm.c (SYM_NAME): Removed.
889 (print_symname): Add a pointer to struct extended_symbol_info
890 argument. Call _bfd_elf_get_symbol_version_name to get symbol
891 version.
892 (print_symdef_entry): Pass NULL to print_symname.
893 (print_symbol_info_bsd): Update call to print_symname.
894 (print_symbol_info_sysv): Likewise.
895 (print_symbol_info_posix): Likewise.
896
897 2020-03-24 Alan Modra <amodra@gmail.com>
898
899 * readelf.c (process_mips_specific): Free iconf on error path.
900
901 2020-03-23 Nick Clifton <nickc@redhat.com>
902
903 PR 25714
904 * wrstabs.c (stab_pop_type): Replace assertion with error return.
905 * write_stabs_in_sections_debugging_info: Likewise.
906 * stab_enum_type: Likewise.
907 * stab_modify_type: Likewise.
908 * stab_struct_field: Likewise.
909 * stab_end_struct_type: Likewise.
910 * stab_start_class_type: Likewise.
911 * stab_class_static_member: Likewise.
912 * stab_class_baseclass: Likewise.
913 * stab_class_start_method: Likewise.
914 * stab_class_method_var: Likewise.
915 * stab_class_end_method: Likewise.
916 * stab_end_class_type: Likewise.
917 * stab_typedef_type: Likewise.
918 * stab_start_function: Likewise.
919 * stab_end_block: Likewise.
920 * stab_lineno: Likewise.
921
922 2020-03-20 Nick Clifton <nickc@redhat.com>
923
924 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
925 (process_section_headers): Check the return value from
926 get_compression_header.
927 (dump_section_as_strings): Likewise.
928 (dump_section_as_bytes): Likewise.
929 (load_specific_debug_section): Likewise.
930
931 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
932
933 * ar.c (main): Update bfd_plugin_set_program_name call.
934 * nm.c (main): Likewise.
935
936 2020-03-19 Nick Clifton <nickc@redhat.com>
937
938 PR 25676
939 * testsuite/binutils-all/dw4.s: New test source file.
940 * testsuite/binutils-all/nm.exp: Run the new test.
941
942 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
943
944 * readelf.c (process_symbol_table): Use unsigned long for si.
945
946 2020-03-19 Alan Modra <amodra@gmail.com>
947
948 * elfcomm.c: Don't include bfd.h or bucomm.h.
949 (program_name): Declare.
950 (process_archive_index_and_symbols): Replace bfd_boolean with int,
951 and substitute FALSE and TRUE.
952 (setup_archive, setup_nested_archive): Likewise.
953 * elfcomm.h: Likewise.
954
955 2020-03-19 Alan Modra <amodra@gmail.com>
956
957 * readelf.c (process_archive): Always return via path freeing
958 memory. Formatting.
959
960 2020-03-19 Alan Modra <amodra@gmail.com>
961
962 * readelf.c (process_netbsd_elf_note): Validate descsz before
963 accessing descdata. Formatting.
964
965 2020-03-19 Alan Modra <amodra@gmail.com>
966
967 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
968 * elfcomm.h (setup_archive): Update prototype.
969
970 2020-03-16 Alan Modra <amodra@gmail.com>
971
972 * readelf.c (get_symbols): New function.
973 (process_relocs, ia64_process_unwind, hppa_process_unwind),
974 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
975
976 2020-03-16 Alan Modra <amodra@gmail.com>
977
978 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
979 Detect shift overflows and check that terminating byte is found.
980 Print an error on a bad uleb128.
981
982 2020-03-14 Alan Modra <amodra@gmail.com>
983
984 * readelf.c (process_file): Clean ba_cache.
985
986 2020-03-14 Alan Modra <amodra@gmail.com>
987
988 * elfcomm.h (setup_archive): Update prototype.
989 * elfcomm.c (setup_archive): Add file_size parameter and sanity
990 check longnames_size.
991 (setup_nested_archive): Get file size and pass to setup_archive.
992 * elfedit.c (process_archive): Likewise.
993 * readelf.c (process_archive): Pass filedata->file_size to
994 setup_archive.
995
996 2020-03-14 Alan Modra <amodra@gmail.com>
997
998 * readelf.c (dump_section_as_strings): Free memory on error exit.
999 (dump_section_as_bytes, process_notes_at): Likewise.
1000 (get_build_id): Free enote.
1001
1002 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1003
1004 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1005 NT_NETBSDCORE_LWPSTATUS notes.
1006
1007 2020-03-13 Alan Modra <amodra@gmail.com>
1008
1009 * elfcomm.c (get_archive_member_name): Always return malloc'd
1010 string or NULL.
1011 * elfedit.c (process_archive): Tidy memory on all return paths.
1012 * readelf.c (process_archive): Likewise.
1013 (process_symbol_table): Likewise.
1014 (ba_cache): New, replacing ..
1015 (get_symbol_for_build_attribute): ..static vars here. Free
1016 strtab and symtab before loading new ones. Reject symtab without
1017 valid strtab in loop, breaking out of loop on valid symtab.
1018 (process_file): Free ba_cache symtab and strtab here, resetting
1019 ba_cache.
1020
1021 2020-03-12 Alan Modra <amodra@gmail.com>
1022
1023 * readelf.c (process_section_headers): Don't just set
1024 filedata->section_headers NULL, free it first. Similarly for
1025 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1026 symtab_shndx_list. Zero associated counts too.
1027 (process_object): Free symtab_shndx_list.
1028 (process_file): Free various allocated filedata tables.
1029
1030 2020-03-11 Nick Clifton <nickc@redhat.com>
1031
1032 PR 25611
1033 PR 25614
1034 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1035 li_segment_size fields.
1036 * dwarf.c (read_debug_line_header): Record the address size and
1037 segment selector size values (if present) in the lineinfo
1038 structure.
1039 (display_formatted_table): Warn if the format count is empty but
1040 the table itself is not empty.
1041 Display the format count and entry count at the start of the table
1042 dump.
1043 (display_debug_lines_raw): Display the address size and segement
1044 selector size fields, if present.
1045 * testsuite/binutils-all/dw5.W: Update expected output.
1046
1047 2020-03-11 Alan Modra <amodra@gmail.com>
1048
1049 PR 25651
1050 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1051 pad_to_set on second block of code dealing with padding.
1052 Replace "c" with "num_sec" and don't recalculate number of
1053 sections on second block. Size arrays using sizeof (element)
1054 rather than sizeof (element type).
1055
1056 2020-03-10 Alan Modra <amodra@gmail.com>
1057
1058 * objdump.c (disassemble_section): Don't call qsort unless
1059 sym count is at least two.
1060 (disassemble_data): Don't call memcpy with NULL src.
1061
1062 2020-03-09 Alan Modra <amodra@gmail.com>
1063
1064 PR 25645
1065 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1066 to get_data rather than multiplying.
1067 (dump_ia64_vms_dynamic_relocs): Likewise.
1068 (process_version_sections): Correct order of size and nmemb args
1069 in get_data call.
1070 (process_mips_specific): Likewise.
1071
1072 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1073
1074 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1075 "memory checkers" in comments.
1076
1077 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1078
1079 PR 25491
1080 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1081 * doc/Makefile.in: Re-generate.
1082
1083 2020-03-06 Nick Clifton <nickc@redhat.com>
1084
1085 * objcopy.c (check_new_section_flags): New function. Reject the
1086 SEC_COFF_SHARED flag if the target is not a COFF binary.
1087 (copy_object): Call check_new_section_flags.
1088 (setup_section): Likewise.
1089 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1090 flag cannot be applied to ELF binaries.
1091
1092 2020-03-06 Alan Modra <amodra@gmail.com>
1093
1094 PR 25637
1095 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1096
1097 2020-03-05 Alan Modra <amodra@gmail.com>
1098
1099 PR 25629
1100 * objcopy.c (filter_symbols): Don't segfault on NULL
1101 prefix_symbols_string.
1102
1103 2020-03-04 Christian Eggers <ceggers@gmx.de>
1104
1105 * objcopy.c (copy_object): Convert from bytes to octets for
1106 --gap-fill and --pad-to.
1107
1108 2020-03-03 Nick Clifton <nickc@redhat.com>
1109
1110 PR 25625
1111 * prdbg.c (pr_tag_type): Remove call to abort.
1112
1113 2020-03-02 Aaron Merey <amerey@redhat.com>
1114
1115 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1116 selection.
1117
1118 2020-03-02 Nick Clifton <nickc@redhat.com>
1119
1120 PR 25543
1121 * readelf.c (dump_section_as_strings): Display new-line characters
1122 as \n and then insert a line break.
1123 * testsuite/binutils-all/pr25543.s: New test.
1124 * testsuite/binutils-all/pr25543.d: Test driver.
1125 * testsuite/binutils-all/readelf.exp: Run the new test.
1126
1127 2020-02-27 Nick Clifton <nickc@redhat.com>
1128
1129 PR 25526
1130 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1131 get_data is unable to load the string table.
1132
1133 2020-02-26 Alan Modra <amodra@gmail.com>
1134
1135 * elfedit.c: Indent labels correctly.
1136 * readelf.c: Likewise.
1137 * resres.c: Likewise.
1138
1139 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1140
1141 PR binutils/25584
1142 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1143 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1144
1145 2020-02-24 Nick Clifton <nickc@redhat.com>
1146
1147 PR 25499
1148 * doc/binutils.texi (objdump): Fix typo in description of
1149 objdump's -g option.
1150
1151 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1152
1153 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1154 is changed.
1155
1156 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1157
1158 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1159
1160 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1161
1162 * configure: Regenerate.
1163
1164 2020-02-10 Fangrui Song <maskray@google.com>
1165
1166 * objcopy.c (parse_flags): Handle "exclude".
1167 * doc/binutils.texi: Document the support.
1168
1169 2020-02-10 Aaron Merey <amerey@redhat.com>
1170
1171 * binutils/testsuite/binutils-all/debuginfod.exp:
1172 Replace set ::env with setenv.
1173 Start server before setting environment variable.
1174 Specify tmpdir as the location of the server's
1175 database.
1176 Check additional server metrics at start-up.
1177
1178 2020-02-07 Nick Clifton <nickc@redhat.com>
1179
1180 * README-how-to-make-a-release: Add note about updating the
1181 GAS/NEWS URL in the next release.
1182
1183 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1184
1185 PR 25469
1186 * readelf.c (get_machine_flags): Add support for Z80N machine
1187 number.
1188
1189 2020-02-07 Nick Clifton <nickc@redhat.com>
1190
1191 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1192 of the truncated file name.
1193
1194 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * objdump.c (print_jump_visualisation): New function.
1197 (disassemble_bytes): Call new function.
1198
1199 2020-02-06 Alan Modra <amodra@gmail.com>
1200
1201 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1202 TCL procedure.
1203 (supports_gnu_osabi): New procedure.
1204 (is_generic): New, from ld-lib.exp.
1205 (supports_gnu_unique): Use the above.
1206
1207 2020-02-04 Alan Modra <amodra@gmail.com>
1208
1209 * Makefile.am (CFILES): Add od-elf32_avr.c.
1210 * Makefile.in: Regenerate.
1211 * po/POTFILES.in: Regenerate.
1212
1213 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1214
1215 * readelf.c (dump_relocations, dump_relocations)
1216 (decode_arm_unwind_bytecode, process_dynamic_section)
1217 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1218 error message.
1219
1220 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1221
1222 * coffdump.c (program_name): Drop redundant definition.
1223 * srconv.c (program_name): Likewise
1224 * sysdump.c (program_name): Likewise
1225
1226 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1227
1228 PR gas/25380
1229 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1230 same file with different section pointers.
1231
1232 2020-02-01 Nick Clifton <nickc@redhat.com>
1233
1234 * README-how-to-make-a-release: Update with more details on the
1235 release making process.
1236
1237 2020-01-31 Nick Clifton <nickc@redhat.com>
1238
1239 * po/sv.po: Updated Swedish translation.
1240
1241 2020-01-28 Nick Clifton <nickc@redhat.com>
1242
1243 * readelf.c (get_build_id): Simplify warning message about corrupt
1244 notes encountered whilst scanning for the build-id.
1245
1246 2020-01-27 Roland McGrath <mcgrathr@google.com>
1247
1248 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1249 for overlapping ranges so that (A == B) == (B == A) holds.
1250
1251 2020-01-27 Alan Modra <amodra@gmail.com>
1252
1253 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1254 case statement with switch statement.
1255
1256 2020-01-24 Nick Clifton <nickc@redhat.com>
1257
1258 * readelf.c (get_build_id): Fix warning messages about corrupt
1259 notes.
1260
1261 2020-01-23 Nick Clifton <nickc@redhat.com>
1262
1263 * po/fr.po: Updated French translation.
1264
1265 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1266
1267 PR 25417
1268 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1269
1270 2020-01-20 Nick Clifton <nickc@redhat.com>
1271
1272 * po/pt.po: Updated Portuguese translation.
1273 * po/uk.po: Updated Ukranian translation.
1274
1275 2020-01-18 Nick Clifton <nickc@redhat.com>
1276
1277 * README-how-to-make-a-release: Update notes on how to cut a
1278 branch for a release.
1279
1280 2020-01-18 Nick Clifton <nickc@redhat.com>
1281
1282 * configure: Regenerate.
1283 * po/binutils.pot: Regenerate.
1284
1285 2020-01-18 Nick Clifton <nickc@redhat.com>
1286
1287 Binutils 2.34 branch created.
1288
1289 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1290
1291 * objdump.c (jump_info_visualize_address): Discard jumps that are
1292 no longer needed.
1293 (disassemble_bytes): Only compute the maximum level if jumps were
1294 detected.
1295
1296 2020-01-13 Nick Clifton <nickc@redhat.com>
1297
1298 * objdump.c (disassemble_bytes): Remove C99-ism.
1299 * testsuite/binutils-all/debuginfod.exp: New tests.
1300
1301 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1302
1303 * objdump.c (visualize_jumps, color_output, extended_color_output)
1304 (detected_jumps): New variables.
1305 (usage): Add the new jump visualization options.
1306 (option_values): Add new option value.
1307 (long_options): Add the new option.
1308 (jump_info_new, jump_info_free): New functions.
1309 (jump_info_min_address, jump_info_max_address): Likewise.
1310 (jump_info_end_address, jump_info_is_start_address): Likewise.
1311 (jump_info_is_end_address, jump_info_size): Likewise.
1312 (jump_info_unlink, jump_info_insert): Likewise.
1313 (jump_info_add_front, jump_info_move_linked): Likewise.
1314 (jump_info_intersect, jump_info_merge): Likewise.
1315 (jump_info_sort, jump_info_visualize_address): Likewise.
1316 (disassemble_jumps): New function - used to locate jumps.
1317 (disassemble_bytes): Add ascii art generation.
1318 (disassemble_section): Add scan to locate jumps.
1319 (main): Parse the new visualization option.
1320 * doc/binutils.texi: Document the new feature.
1321 * NEWS: Mention the new feature.
1322
1323 2020-01-13 Alan Modra <amodra@gmail.com>
1324
1325 PR 25360
1326 PR 25361
1327 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1328 fde_fc col_type and col_offset.
1329 * readelf.c (apply_relocations): Move symsec check earlier.
1330 (free_debug_section): Free reloc_info.
1331 (process_notes_at): Free pnotes on error path.
1332 (process_object): Free dump_sects here..
1333 (process_archive): ..not here.
1334
1335 2020-01-13 Alan Modra <amodra@gmail.com>
1336
1337 PR 25362
1338 * nm.c (display_rel_file): Free dyn_syms.
1339
1340 2020-01-09 Nick Clifton <nickc@redhat.com>
1341
1342 PR 25220
1343 * objcopy.c (empty_name): New variable.
1344 (need_sym_before): Prevent an attempt to free a static variable.
1345 (filter_symbols): Avoid strcmp test by checking for pointer
1346 equality.
1347
1348 2020-01-09 Nick Clifton <nickc@redhat.com>
1349
1350 * po/zh_TW.po: Updated Traditional Chinese translation.
1351
1352 2020-01-09 Aaron Merey <amerey@redhat.com>
1353
1354 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1355 * Makefile.in: Regenerate.
1356 * NEWS: Update.
1357 * config.in: Regenerate.
1358 * configure: Regenerate.
1359 * configure.ac: Call AC_DEBUGINFOD.
1360 * doc/Makefile.in: Regenerate.
1361 * doc/binutils.texi: Add section on using binutils
1362 with debuginfod.
1363 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1364 Query debuginfod servers for the target debug file.
1365 (load_separate_debug_info): Call
1366 debuginfod_fetch_separate_debug_info if configured with
1367 debuginfod.
1368 (load_separate_debug_files): Add file argument to
1369 load_separate_debug_info calls.
1370 * dwarf.h (get_build_id): Add declaration.
1371 * objdump.c (get_build_id): New function. Get build-id of file.
1372 * readelf.c (get_build_id): Likewise.
1373 * testsuite/binutils-all/debuginfod.exp: New tests.
1374 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1375 section.
1376
1377 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1378
1379 * readelf.c: Add support for new Z*) relocations and machine
1380 types.
1381
1382 2020-01-01 Alan Modra <amodra@gmail.com>
1383
1384 Update year range in copyright notice of all files.
1385
1386 For older changes see ChangeLog-2019
1387 \f
1388 Copyright (C) 2020 Free Software Foundation, Inc.
1389
1390 Copying and distribution of this file, with or without modification,
1391 are permitted in any medium without royalty provided the copyright
1392 notice and this notice are preserved.
1393
1394 Local Variables:
1395 mode: change-log
1396 left-margin: 8
1397 fill-column: 74
1398 version-control: never
1399 End:
This page took 0.063781 seconds and 5 git commands to generate.