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