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