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