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