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