]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Fix an illegal memory access when parsing corrupt DWARF debug information.
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
c4b2f181
NC
12020-06-08 Nick Clifton <nickc@redhat.com>
2
3 PR 26086
4 * dwarf.c (process_debug_info): Check that there is space in the
5 debug_information array before filling in an entry.
6
1424c35d
AM
72020-06-06 Alan Modra <amodra@gmail.com>
8
9 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
10
8affa48a
JA
112020-06-05 Joel Anderson <joelanderson333@gmail.com>
12
13 PR 26082
14 * mclex.c (yylex): Add test for an empty input stream.
15
8eca5c7d
SC
162020-06-04 Stephen Casner <casner@acm.org>
17
18 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
19 for test using section pseudo-ops compatible with pdp11.
20 * testsuite/binutils-all/objcopy.exp: Select alternate source.
21
b3db6d07
JM
222020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
23
24 * objdump.c (disassemble_data): Set disasm_info.endian_code to
25 disasm_info.endian after the latter is initialized to the
26 endianness reported by BFD.
27
0a4f37af
AM
282020-06-04 Alan Modra <amodra@gmail.com>
29
30 * testsuite/binutils-all/i386/i386.exp: Remove global directive
31 outside proc body.
32 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
33 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
34
913e0fd4
JA
352020-06-03 Joel Anderson <joelanderson333@gmail.com>
36
37 * windmc.h (struct mc_node): Add id_typecast field.
38 * mcparse.y (message): Initialise the id_typecast field.
39 * windmc.c (write_dbg): Use the id_typecast field as a parameter
40 when calling write_dbg_define.
41 (write_header): Likewise.
42
4a322448
AM
432020-06-03 Alan Modra <amodra@gmail.com>
44
45 PR 26069
46 * objcopy.c (copy_relocations_in_section): Free relpp on error.
47 Don't accidentally free isection->orelocation.
48
0bee4d1c
AM
492020-06-02 Alan Modra <amodra@gmail.com>
50
51 * testsuite/binutils-all/ar.exp (obj): Set up object file name
52 extension. Use throughout. Don't completely exclude non-ELF
53 alpha targets. Run long_filenames test for tic30. Exclude thin
54 archive tests for aix, ecoff and vms.
55 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
56 extension. Use throughout. Don't exclude non-ELF alpha targets
57 from "bintest.a".
58
ab7ad287
MF
592020-05-28 Max Filippov <jcmvbkbc@gmail.com>
60
61 * MAINTAINERS (Xtensa): Add myself as maintainer.
62
3f3c3608
AM
632020-05-23 Alan Modra <amodra@gmail.com>
64
65 * testsuite/binutils-all/ar.exp (many_files): New test.
66
9db70fc3
AM
672020-05-21 Alan Modra <amodra@gmail.com>
68
69 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
70 * dlltool.c: Likewise.
71 * elfcomm.c: Likewise.
72 * rddbg.c: Likewise.
73 * readelf.c: Likewise.
74 * stabs.c: Likewise.
75 * windmc.c: Likewise.
76 * windres.c: Likewise.
77 * wrstabs.c: Likewise.
78
c31ab5a0
AM
792020-05-21 Alan Modra <amodra@gmail.com>
80
81 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
82 access.
83
8f595e9b
NC
842020-05-20 Nelson Chu <nelson.chu@sifive.com>
85
86 * dwarf.c: Updated since DECLARE_CSR is changed.
87
8ac10c5b
L
882020-05-19 H.J. Lu <hjl.tools@gmail.com>
89
90 PR binutils/25809
91 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
92 segment doesn't match the .dynamic section and checks are
93 enabled.
94 (struct filedata): Add dynamic_symtab_section and
95 dynamic_strtab_section fields.
96 (process_section_headers): Set dynamic_symtab_section to the
97 .dynsym section. Set dynamic_strtab_section to the .dynstr
98 section.
99 (process_dynamic_section): Warn if the .dynsym section doesn't
100 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
101 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
102
c177f377
AM
1032020-05-19 Alan Modra <amodra@gmail.com>
104
105 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
106 (replace_members): Use bfd_get_filename rather than accessing
107 bfd->filename directly.
108 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
109 * binemul.c (do_ar_emul_append): Likewise.
110 * coffgrok.c (coff_grok): Likewise.
111
83d27139
SH
1122020-05-18 Stafford Horne <shorne@gmail.com>
113
114 * MAINTAINERS (OR1K): Add myself as maintainer.
115
d11a9fab
AB
1162020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
117
118 * doc/binutils.texi: Mention 'entry address' in the set-start and
119 adjust-start options descriptions.
120
546cb2d8
NC
1212020-05-05 Nick Clifton <nickc@redhat.com>
122
123 * dwarf.c (do_checks): New global variable.
124 (display_formatted_table): Warn about an unexpected number of
125 columns in the table, if checks are enabled. Do not complain
126 about the lack of data following the number of entries in the
127 table if the table is empty.
128 (display_debug_lines_decoded): Only warn about an unexpected
129 number of columns in a table if checks are enabled.
130 * dwarf.h (do_checks): Add a prototype.
131 * elfcomm.c (error): Remove weak attribute.
132 (warn): Likewise.
133 * readelf.c (do_checks): Delete.
134 (warn): Delete.
135 (process_section_headers): Only warn about empty sections if
136 checks are enabled.
137
e052e2ba
FS
1382020-05-04 Fangrui Song <maskray@google.com>
139
140 * objcopy.c (copy_object): Allow empty section.
141 * testsuite/binutils-all/update-section.exp: Add test.
142
070b775f
NC
1432020-05-04 Nick Clifton <nickc@redhat.com>
144
145 PR 25917
146 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
147 supicious number of entries for DWARF-5 format directory and file
148 name tables. Do not display file name table header if the table
149 is empty. Do not allocate space for empty tables.
150
9c7b8e9b
AM
1512020-05-04 Alan Modra <amodra@gmail.com>
152
153 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
154 section. Don't assume endian of host matches nds32 target. Free
155 buffer.
156
60832332
AM
1572020-05-01 Alan Modra <amodra@gmail.com>
158 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
159
160 * objdump.c (disassemble_bytes): Don't scan for zeros when
161 disassembling zeros. Translate "resuming at file offset" message.
162 Formatting. Replace some signed variables with unsigned.
163
09c1e68a
AC
1642020-04-30 Alex Coplan <alex.coplan@arm.com>
165
166 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
167 disassembly.
168 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
169
8a8a1171
NC
1702020-04-30 Nick Clifton <nickc@redhat.com>
171
172 * testsuite/lib/binutils-common.exp (check_pie_support): New
173 proc.
174
cb4c35cf
AB
1752020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
178 range_entries for the same offset.
179
1b513401
NC
1802020-04-29 Nick Clifton <nickc@redhat.com>
181
182 * readelf.c (warn): New function - like elfcomm.c version but only
183 produces output if warnings are enabled.
184 (struct options): Add --lint and --enable-checks.
185 (usage): Add entry for --lint.
186 (parse_args): Handle -L. If checks are enabled but no dumps have
187 been selected then enable all dumps.
188 (process_section_headers): Replace long if-then-else sequence with
189 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
190 SHT_PROGBITS sections.
191 (process_file): Do not complain if the file is an archive and lint
192 mode has been enabled.
193 * elfcomm.c (error): Make the function weak.
194 (warn): Likewise.
195 * NEWS: Mention the new feature.
196 * doc/binutils.texi: Document the new feature.
197 * dwarf.h (report_leb_status): Add file name and line number
198 parameters. Include them in the diagnostic output.
199 (READ_ULEB): Pass file and line number to report_leb_status.
200 (READ_SLEB): Likewise.
201 * dwarf.c (read_and_print_leb128): Pass file and line number to
202 report_leb_status.
203 * testsuite/binutils-all/readelf.exp: Add test of new feature.
204 * testsuite/binutils-all/zero-sec.s: New test source file.
205 * testsuite/binutils-all/zero-sec.r: Expected output from new
206 test.
207
c2e71e57
NC
2082020-04-29 Nick Clifton <nickc@redhat.com>
209
210 * po/sr.po: Updated Serbian translation.
211
90837ea7
AM
2122020-04-26 Alan Modra <amodra@gmail.com>
213
214 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
215 read before dereferencing, and gracefully return. Remove
216 gnu_hash_error variable. Free gnu hash arrays if number of
217 syms found is zero.
218
2482f306
AM
2192020-04-24 Alan Modra <amodra@gmail.com>
220
221 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
222 non-zero.
223 (process_dynamic_section): Call get_num_dynamic_syms once rather
224 than in segment loop. Break out of segment loop on a successful
225 load of dynamic symbols. Formatting.
226 (process_object): Return error status from process_dynamic_section.
227
27456742
AK
2282020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
229
230 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
231 * elf.c (elfcore_grok_arc_v2): New function.
232 (elfcore_grok_note): Call the new function to handle the corresponding
233 note.
234 (elfcore_write_arc_v2): New function.
235 (elfcore_write_register_note): Call the new function to handle the
236 corresponding pseudo-sections.
237
30ce8e47
MF
2382020-04-22 Max Filippov <jcmvbkbc@gmail.com>
239
240 PR ld/25861
241 * readelf.c (is_none_reloc): Recognize
242 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
243 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
244
33b5a830
NC
2452020-04-22 Nick Clifton <nickc@redhat.com>
246
247 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
248
978c4450
AM
2492020-04-22 Alan Modra <amodra@gmail.com>
250
251 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
252 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
253 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
254 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
255 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
256 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
257 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
258 (dynamic_section, symtab_shndx_list, group_count, section_groups),
259 (section_headers_groups): Move to struct filedata. Update use
260 throughout file.
261
6431e409
AM
2622020-04-22 Alan Modra <amodra@gmail.com>
263
264 * readelf.c (struct dump_data): New, used..
265 (cmdline): ..here, and..
266 (struct filedata): ..here. Adjust all uses.
267 (request_dump_bynumber, request_dump, parse_args): Pass in a
268 struct dump_data* rather than Filedata*. Adjust callers.
269 (main): Don't set cmdline.file_name.
270
a5e0be5c
AM
2712020-04-20 Alan Modra <amodra@gmail.com>
272
273 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
274 and nbuckets.
275
8ff66993
AM
2762020-04-20 Alan Modra <amodra@gmail.com>
277
278 * readelf.c (process_section_headers): Free dynamic symbols etc.
279 earlier.
280
ceb9bf11
AM
2812020-04-20 Alan Modra <amodra@gmail.com>
282
283 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
284 on error without freeing.
285 (process_dynamic_section): Don't recreate dynamic symbols from
286 dynamic tag info when the dynamic symbols have already been
287 read via section headers.
288
e409955d
FS
2892020-04-17 Fredrik Strupe <fredrik@strupe.net>
290
291 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
292 conditional VDUP instructions are disassembled correctly.
293 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
294 vdup-cond.d.
295 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
296 that VDUP instructions (which are conditional in A32) can be
297 disassembled in thumb mode.
298 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
299 vdup-thumb.d.
300
ca3f923f
AM
3012020-04-17 Alan Modra <amodra@gmail.com>
302
303 PR 25840
304 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
305
937f6614
AM
3062020-04-16 Alan Modra <amodra@gmail.com>
307
308 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
309 --no-addresses description.
310
b1bc1394
AM
3112020-04-15 Alan Modra <amodra@gmail.com>
312
313 * objdump.c (no_addresses): New static var.
314 (usage): Print help for --no-addresses.
315 (long_options): Add --no-addresses entry.
316 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
317 (disassemble_bytes): Don't print current line address, or reloc
318 address.
319 * doc/binutils.texi: Document objdump --no-addresses.
320
001890e1
AM
3212020-04-15 Alan Modra <amodra@gmail.com>
322
323 PR 25822
324 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
325 reading buckets or chains fails.
326
b71d4fa7
AM
3272020-04-15 Alan Modra <amodra@gmail.com>
328
329 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
330 etc. after freeing.
331
89246a0e
AM
3322020-04-15 Alan Modra <amodra@gmail.com>
333
334 * readelf.c (get_group_flags): Translate text.
335 (get_file_type, get_symbol_binding, get_symbol_type),
336 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
337
c98a4545
AM
3382020-04-15 Alan Modra <amodra@gmail.com>
339
340 PR 25821
341 * readelf.c (get_num_dynamic_syms): Typo fix.
342
645f43a8
AM
3432020-04-14 Alan Modra <amodra@gmail.com>
344
345 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
346 possibility of overflow when checking number of conflicts.
347
10ca4b04
L
3482020-04-14 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR binutils/25707
351 * readelf.c (nbuckets): New.
352 (nchains): Likewise.
353 (buckets): Likewise.
354 (chains): Likewise.
355 (ngnubuckets): Likewise.
356 (gnubuckets): Likewise.
357 (gnuchains): Likewise.
358 (mipsxlat): Likewise.
359 (ngnuchains): Likewise.
360 (gnusymidx): Likewise.
361 (VALID_SYMBOL_NAME): Likewise.
362 (VALID_DYNAMIC_NAME): Use it.
363 (get_dynamic_data): Moved before process_dynamic_section.
364 (get_num_dynamic_syms): New function.
365 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
366 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
367 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
368 table.
369 (get_symbol_index_type): Don't print "bad section index" when
370 there is no section header.
371 (print_dynamic_symbol): Rewrite.
372 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
373 symbol table.
374
bb897477
RO
3752020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376
377 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
378 enable on *-*-solaris*.
379
00386881
NC
3802020-03-30 Nick Clifton <nickc@redhat.com>
381
382 PR binutils/25662
383 * objcopy.c (copy_object): When copying PE format files set the
384 timestamp field in the pe_data structure if the preserve_dates
385 flag is set.
386 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
387 --preserve-dates in place of the -p option, in order to make its
388 effect more obvious.
389
0a6a8b59
AM
3902020-03-28 Alan Modra <amodra@gmail.com>
391
392 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
393 clear_xfail hppa*-*-*elf*. Revert mips xfails.
394
6a81c59b
AM
3952020-03-28 Alan Modra <amodra@gmail.com>
396
397 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
398 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
399 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
400 test. Pass "-p" to objcopy for the executable test.
401
1fafefd5
JL
4022020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
403
404 PR binutils/25662
405 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
406 specify whether an object file or executable should be built and tested.
407 Change test names to report whether an object file or executable is
408 being tested.
409 * testsuite/binutils-all/pr25662.ld: New test.
410 * testsuite/binutils-all/pr25662.s: New test.
411
80e2a3b6
AM
4122020-03-27 Alan Modra <amodra@gmail.com>
413
414 * readelf.c (process_archive): Don't double free qualified_name.
415 Don't break out of loop with "negative" archive_file_size, just
416 set file offset to max.
417
4c836627
AM
4182020-03-25 Alan Modra <amodra@gmail.com>
419
420 * readelf.c (process_archive): Prevent endless loop.
421
1081065c
L
4222020-03-24 H.J. Lu <hongjiu.lu@intel.com>
423
424 PR binutils/25708
425 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
426 with bfd_get_symbol_version_string.
427 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
428 * objdump.c (objdump_print_symname): Likewise.
429
7e6e972f
L
4302020-03-24 H.J. Lu <hongjiu.lu@intel.com>
431
432 PR binutils/25708
433 * nm.c (SYM_NAME): Removed.
434 (print_symname): Add a pointer to struct extended_symbol_info
435 argument. Call _bfd_elf_get_symbol_version_name to get symbol
436 version.
437 (print_symdef_entry): Pass NULL to print_symname.
438 (print_symbol_info_bsd): Update call to print_symname.
439 (print_symbol_info_sysv): Likewise.
440 (print_symbol_info_posix): Likewise.
441
5a814d6d
AM
4422020-03-24 Alan Modra <amodra@gmail.com>
443
444 * readelf.c (process_mips_specific): Free iconf on error path.
445
0636b245
NC
4462020-03-23 Nick Clifton <nickc@redhat.com>
447
448 PR 25714
449 * wrstabs.c (stab_pop_type): Replace assertion with error return.
450 * write_stabs_in_sections_debugging_info: Likewise.
451 * stab_enum_type: Likewise.
452 * stab_modify_type: Likewise.
453 * stab_struct_field: Likewise.
454 * stab_end_struct_type: Likewise.
455 * stab_start_class_type: Likewise.
456 * stab_class_static_member: Likewise.
457 * stab_class_baseclass: Likewise.
458 * stab_class_start_method: Likewise.
459 * stab_class_method_var: Likewise.
460 * stab_class_end_method: Likewise.
461 * stab_end_class_type: Likewise.
462 * stab_typedef_type: Likewise.
463 * stab_start_function: Likewise.
464 * stab_end_block: Likewise.
465 * stab_lineno: Likewise.
466
5844b465
NC
4672020-03-20 Nick Clifton <nickc@redhat.com>
468
469 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
470 (process_section_headers): Check the return value from
471 get_compression_header.
472 (dump_section_as_strings): Likewise.
473 (dump_section_as_bytes): Likewise.
474 (load_specific_debug_section): Likewise.
475
3d98c460
L
4762020-03-20 H.J. Lu <hongjiu.lu@intel.com>
477
478 * ar.c (main): Update bfd_plugin_set_program_name call.
479 * nm.c (main): Likewise.
480
f3a08f77
NC
4812020-03-19 Nick Clifton <nickc@redhat.com>
482
483 PR 25676
484 * testsuite/binutils-all/dw4.s: New test source file.
485 * testsuite/binutils-all/nm.exp: Run the new test.
486
ef3df110
L
4872020-03-19 H.J. Lu <hongjiu.lu@intel.com>
488
489 * readelf.c (process_symbol_table): Use unsigned long for si.
490
81a65eb3
AM
4912020-03-19 Alan Modra <amodra@gmail.com>
492
493 * elfcomm.c: Don't include bfd.h or bucomm.h.
494 (program_name): Declare.
495 (process_archive_index_and_symbols): Replace bfd_boolean with int,
496 and substitute FALSE and TRUE.
497 (setup_archive, setup_nested_archive): Likewise.
498 * elfcomm.h: Likewise.
499
1cb7d8b1
AM
5002020-03-19 Alan Modra <amodra@gmail.com>
501
502 * readelf.c (process_archive): Always return via path freeing
503 memory. Formatting.
504
b966f55f
AM
5052020-03-19 Alan Modra <amodra@gmail.com>
506
507 * readelf.c (process_netbsd_elf_note): Validate descsz before
508 accessing descdata. Formatting.
509
645ba681
AM
5102020-03-19 Alan Modra <amodra@gmail.com>
511
512 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
513 * elfcomm.h (setup_archive): Update prototype.
514
28d13567
AM
5152020-03-16 Alan Modra <amodra@gmail.com>
516
517 * readelf.c (get_symbols): New function.
518 (process_relocs, ia64_process_unwind, hppa_process_unwind),
519 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
520
60e63c3e
AM
5212020-03-16 Alan Modra <amodra@gmail.com>
522
523 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
524 Detect shift overflows and check that terminating byte is found.
525 Print an error on a bad uleb128.
526
1bd6175a
AM
5272020-03-14 Alan Modra <amodra@gmail.com>
528
529 * readelf.c (process_file): Clean ba_cache.
530
780f96ae
AM
5312020-03-14 Alan Modra <amodra@gmail.com>
532
533 * elfcomm.h (setup_archive): Update prototype.
534 * elfcomm.c (setup_archive): Add file_size parameter and sanity
535 check longnames_size.
536 (setup_nested_archive): Get file size and pass to setup_archive.
537 * elfedit.c (process_archive): Likewise.
538 * readelf.c (process_archive): Pass filedata->file_size to
539 setup_archive.
540
f761cb13
AM
5412020-03-14 Alan Modra <amodra@gmail.com>
542
543 * readelf.c (dump_section_as_strings): Free memory on error exit.
544 (dump_section_as_bytes, process_notes_at): Likewise.
545 (get_build_id): Free enote.
546
06d949ec
KR
5472020-03-13 Kamil Rytarowski <n54@gmx.com>
548
549 * readelf.c (get_netbsd_elfcore_note_type): Add support for
550 NT_NETBSDCORE_LWPSTATUS notes.
551
fd486f32
AM
5522020-03-13 Alan Modra <amodra@gmail.com>
553
554 * elfcomm.c (get_archive_member_name): Always return malloc'd
555 string or NULL.
556 * elfedit.c (process_archive): Tidy memory on all return paths.
557 * readelf.c (process_archive): Likewise.
558 (process_symbol_table): Likewise.
559 (ba_cache): New, replacing ..
560 (get_symbol_for_build_attribute): ..static vars here. Free
561 strtab and symtab before loading new ones. Reject symtab without
562 valid strtab in loop, breaking out of loop on valid symtab.
563 (process_file): Free ba_cache symtab and strtab here, resetting
564 ba_cache.
565
8fb879cd
AM
5662020-03-12 Alan Modra <amodra@gmail.com>
567
568 * readelf.c (process_section_headers): Don't just set
569 filedata->section_headers NULL, free it first. Similarly for
570 dynamic_symbols, dynamic_strings, dynamic_syminfo and
571 symtab_shndx_list. Zero associated counts too.
572 (process_object): Free symtab_shndx_list.
573 (process_file): Free various allocated filedata tables.
574
5496f3c6
NC
5752020-03-11 Nick Clifton <nickc@redhat.com>
576
577 PR 25611
578 PR 25614
579 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
580 li_segment_size fields.
581 * dwarf.c (read_debug_line_header): Record the address size and
582 segment selector size values (if present) in the lineinfo
583 structure.
584 (display_formatted_table): Warn if the format count is empty but
585 the table itself is not empty.
586 Display the format count and entry count at the start of the table
587 dump.
588 (display_debug_lines_raw): Display the address size and segement
589 selector size fields, if present.
590 * testsuite/binutils-all/dw5.W: Update expected output.
591
9cc89dc0
AM
5922020-03-11 Alan Modra <amodra@gmail.com>
593
594 PR 25651
595 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
596 pad_to_set on second block of code dealing with padding.
597 Replace "c" with "num_sec" and don't recalculate number of
598 sections on second block. Size arrays using sizeof (element)
599 rather than sizeof (element type).
600
41da0822
AM
6012020-03-10 Alan Modra <amodra@gmail.com>
602
603 * objdump.c (disassemble_section): Don't call qsort unless
604 sym count is at least two.
605 (disassemble_data): Don't call memcpy with NULL src.
606
95099889
AM
6072020-03-09 Alan Modra <amodra@gmail.com>
608
609 PR 25645
610 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
611 to get_data rather than multiplying.
612 (dump_ia64_vms_dynamic_relocs): Likewise.
613 (process_version_sections): Correct order of size and nmemb args
614 in get_data call.
615 (process_mips_specific): Likewise.
616
a15de1f5
L
6172020-03-08 H.J. Lu <hongjiu.lu@intel.com>
618
619 * readelf.c (get_dynamic_data): Replace "memory chekers" with
620 "memory checkers" in comments.
621
9979ab66
SM
6222020-03-06 Simon Marchi <simon.marchi@efficios.com>
623
624 PR 25491
625 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
626 * doc/Makefile.in: Re-generate.
627
a0dcf297
NC
6282020-03-06 Nick Clifton <nickc@redhat.com>
629
630 * objcopy.c (check_new_section_flags): New function. Reject the
631 SEC_COFF_SHARED flag if the target is not a COFF binary.
632 (copy_object): Call check_new_section_flags.
633 (setup_section): Likewise.
634 * doc/binutils.texi (objcopy): Add a note that the 'share' section
635 flag cannot be applied to ELF binaries.
636
a9b90127
AM
6372020-03-06 Alan Modra <amodra@gmail.com>
638
639 PR 25637
640 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
641
d1faf7ca
AM
6422020-03-05 Alan Modra <amodra@gmail.com>
643
644 PR 25629
645 * objcopy.c (filter_symbols): Don't segfault on NULL
646 prefix_symbols_string.
647
eef64366
CE
6482020-03-04 Christian Eggers <ceggers@gmx.de>
649
650 * objcopy.c (copy_object): Convert from bytes to octets for
651 --gap-fill and --pad-to.
652
5be2b2f5
NC
6532020-03-03 Nick Clifton <nickc@redhat.com>
654
655 PR 25625
656 * prdbg.c (pr_tag_type): Remove call to abort.
657
b312fea1
AM
6582020-03-02 Aaron Merey <amerey@redhat.com>
659
660 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
661 selection.
662
ba3265d0
NC
6632020-03-02 Nick Clifton <nickc@redhat.com>
664
665 PR 25543
666 * readelf.c (dump_section_as_strings): Display new-line characters
667 as \n and then insert a line break.
668 * testsuite/binutils-all/pr25543.s: New test.
669 * testsuite/binutils-all/pr25543.d: Test driver.
670 * testsuite/binutils-all/readelf.exp: Run the new test.
671
736990c4
NC
6722020-02-27 Nick Clifton <nickc@redhat.com>
673
674 PR 25526
675 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
676 get_data is unable to load the string table.
677
dc1e8a47
AM
6782020-02-26 Alan Modra <amodra@gmail.com>
679
680 * elfedit.c: Indent labels correctly.
681 * readelf.c: Likewise.
682 * resres.c: Likewise.
683
ecda9016
L
6842020-02-25 H.J. Lu <hongjiu.lu@intel.com>
685
686 PR binutils/25584
687 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
688 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
689
83d4d556
NC
6902020-02-24 Nick Clifton <nickc@redhat.com>
691
692 PR 25499
693 * doc/binutils.texi (objdump): Fix typo in description of
694 objdump's -g option.
695
bd0cf5a6
NC
6962020-02-20 Nelson Chu <nelson.chu@sifive.com>
697
698 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
699 is changed.
700
741cb839
EC
7012020-02-19 Jordan Rupprecht <rupprecht@google.com>
702
703 * objdump.c (show_line): call bfd_demangle when using do_demangle.
704
9f1528a1
AB
7052020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
706
707 * configure: Regenerate.
708
3a5d12fb
FS
7092020-02-10 Fangrui Song <maskray@google.com>
710
711 * objcopy.c (parse_flags): Handle "exclude".
712 * doc/binutils.texi: Document the support.
713
678d457f
AM
7142020-02-10 Aaron Merey <amerey@redhat.com>
715
716 * binutils/testsuite/binutils-all/debuginfod.exp:
717 Replace set ::env with setenv.
46471187
AM
718 Start server before setting environment variable.
719 Specify tmpdir as the location of the server's
720 database.
721 Check additional server metrics at start-up.
678d457f 722
e8319fde
NC
7232020-02-07 Nick Clifton <nickc@redhat.com>
724
725 * README-how-to-make-a-release: Add note about updating the
726 GAS/NEWS URL in the next release.
727
9fc0b501
SB
7282020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
729
730 PR 25469
731 * readelf.c (get_machine_flags): Add support for Z80N machine
732 number.
733
e1104d08
NC
7342020-02-07 Nick Clifton <nickc@redhat.com>
735
736 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
737 of the truncated file name.
738
c2e6f744 7392020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
740
741 * objdump.c (print_jump_visualisation): New function.
742 (disassemble_bytes): Call new function.
743
02e0be69
AM
7442020-02-06 Alan Modra <amodra@gmail.com>
745
746 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
747 TCL procedure.
748 (supports_gnu_osabi): New procedure.
749 (is_generic): New, from ld-lib.exp.
750 (supports_gnu_unique): Use the above.
751
e8b79122
AM
7522020-02-04 Alan Modra <amodra@gmail.com>
753
754 * Makefile.am (CFILES): Add od-elf32_avr.c.
755 * Makefile.in: Regenerate.
756 * po/POTFILES.in: Regenerate.
757
27a45f42
AS
7582020-02-03 Andreas Schwab <schwab@linux-m68k.org>
759
760 * readelf.c (dump_relocations, dump_relocations)
761 (decode_arm_unwind_bytecode, process_dynamic_section)
762 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
763 error message.
764
0b398d69
ST
7652020-02-03 Sergei Trofimovich <siarheit@google.com>
766
767 * coffdump.c (program_name): Drop redundant definition.
768 * srconv.c (program_name): Likewise
769 * sysdump.c (program_name): Likewise
770
a8c4d40b
L
7712020-02-02 H.J. Lu <hongjiu.lu@intel.com>
772
773 PR gas/25380
774 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
775 same file with different section pointers.
776
cb6ad9bb
NC
7772020-02-01 Nick Clifton <nickc@redhat.com>
778
779 * README-how-to-make-a-release: Update with more details on the
780 release making process.
781
53943f32
NC
7822020-01-31 Nick Clifton <nickc@redhat.com>
783
784 * po/sv.po: Updated Swedish translation.
785
55be8fd0
NC
7862020-01-28 Nick Clifton <nickc@redhat.com>
787
788 * readelf.c (get_build_id): Simplify warning message about corrupt
789 notes encountered whilst scanning for the build-id.
790
82ef9cad
RM
7912020-01-27 Roland McGrath <mcgrathr@google.com>
792
793 * objcopy.c (compare_gnu_build_notes): Fix comparison results
794 for overlapping ranges so that (A == B) == (B == A) holds.
795
e3696f67
AM
7962020-01-27 Alan Modra <amodra@gmail.com>
797
798 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
799 case statement with switch statement.
800
2f796de6
NC
8012020-01-24 Nick Clifton <nickc@redhat.com>
802
803 * readelf.c (get_build_id): Fix warning messages about corrupt
804 notes.
805
24e648d4
NC
8062020-01-23 Nick Clifton <nickc@redhat.com>
807
808 * po/fr.po: Updated French translation.
809
c48acf6f
YC
8102020-01-22 Yuri Chornoivan <yurchor@mageia.org>
811
812 PR 25417
813 * readelf.c (get_alpha_symbol_other): Fix error message typo.
814
26916852
NC
8152020-01-20 Nick Clifton <nickc@redhat.com>
816
817 * po/pt.po: Updated Portuguese translation.
818 * po/uk.po: Updated Ukranian translation.
819
b248e9ce
NC
8202020-01-18 Nick Clifton <nickc@redhat.com>
821
822 * README-how-to-make-a-release: Update notes on how to cut a
823 branch for a release.
824
1b1bb2c6
NC
8252020-01-18 Nick Clifton <nickc@redhat.com>
826
827 * configure: Regenerate.
828 * po/binutils.pot: Regenerate.
829
ae774686
NC
8302020-01-18 Nick Clifton <nickc@redhat.com>
831
832 Binutils 2.34 branch created.
833
82a9ed20
TT
8342020-01-17 Thomas Troeger <tstroege@gmx.de>
835
836 * objdump.c (jump_info_visualize_address): Discard jumps that are
837 no longer needed.
838 (disassemble_bytes): Only compute the maximum level if jumps were
839 detected.
840
6a1939f5
NC
8412020-01-13 Nick Clifton <nickc@redhat.com>
842
c87c17c1 843 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
844 * testsuite/binutils-all/debuginfod.exp: New tests.
845
1d67fe3b
TT
8462020-01-13 Thomas Troeger <tstroege@gmx.de>
847
848 * objdump.c (visualize_jumps, color_output, extended_color_output)
849 (detected_jumps): New variables.
850 (usage): Add the new jump visualization options.
851 (option_values): Add new option value.
852 (long_options): Add the new option.
853 (jump_info_new, jump_info_free): New functions.
854 (jump_info_min_address, jump_info_max_address): Likewise.
855 (jump_info_end_address, jump_info_is_start_address): Likewise.
856 (jump_info_is_end_address, jump_info_size): Likewise.
857 (jump_info_unlink, jump_info_insert): Likewise.
858 (jump_info_add_front, jump_info_move_linked): Likewise.
859 (jump_info_intersect, jump_info_merge): Likewise.
860 (jump_info_sort, jump_info_visualize_address): Likewise.
861 (disassemble_jumps): New function - used to locate jumps.
862 (disassemble_bytes): Add ascii art generation.
863 (disassemble_section): Add scan to locate jumps.
864 (main): Parse the new visualization option.
865 * doc/binutils.texi: Document the new feature.
866 * NEWS: Mention the new feature.
867
a788aedd
AM
8682020-01-13 Alan Modra <amodra@gmail.com>
869
a4f2b7c5
AM
870 PR 25360
871 PR 25361
a788aedd
AM
872 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
873 fde_fc col_type and col_offset.
874 * readelf.c (apply_relocations): Move symsec check earlier.
875 (free_debug_section): Free reloc_info.
876 (process_notes_at): Free pnotes on error path.
877 (process_object): Free dump_sects here..
878 (process_archive): ..not here.
879
805f38bc
AM
8802020-01-13 Alan Modra <amodra@gmail.com>
881
882 PR 25362
883 * nm.c (display_rel_file): Free dyn_syms.
884
ffebb0bb
NC
8852020-01-09 Nick Clifton <nickc@redhat.com>
886
887 PR 25220
888 * objcopy.c (empty_name): New variable.
889 (need_sym_before): Prevent an attempt to free a static variable.
890 (filter_symbols): Avoid strcmp test by checking for pointer
891 equality.
892
ade4fd9b
NC
8932020-01-09 Nick Clifton <nickc@redhat.com>
894
895 * po/zh_TW.po: Updated Traditional Chinese translation.
896
8972020-01-09 Aaron Merey <amerey@redhat.com>
898
899 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
900 * Makefile.in: Regenerate.
901 * NEWS: Update.
902 * config.in: Regenerate.
903 * configure: Regenerate.
904 * configure.ac: Call AC_DEBUGINFOD.
905 * doc/Makefile.in: Regenerate.
906 * doc/binutils.texi: Add section on using binutils
907 with debuginfod.
908 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
909 Query debuginfod servers for the target debug file.
910 (load_separate_debug_info): Call
911 debuginfod_fetch_separate_debug_info if configured with
912 debuginfod.
913 (load_separate_debug_files): Add file argument to
914 load_separate_debug_info calls.
915 * dwarf.h (get_build_id): Add declaration.
916 * objdump.c (get_build_id): New function. Get build-id of file.
917 * readelf.c (get_build_id): Likewise.
918 * testsuite/binutils-all/debuginfod.exp: New tests.
919 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
920 section.
921
6655dba2
SB
9222020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
923
924 * readelf.c: Add support for new Z*) relocations and machine
925 types.
926
b14ce8bf
AM
9272020-01-01 Alan Modra <amodra@gmail.com>
928
929 Update year range in copyright notice of all files.
930
0b114740 931For older changes see ChangeLog-2019
3499769a 932\f
0b114740 933Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
934
935Copying and distribution of this file, with or without modification,
936are permitted in any medium without royalty provided the copyright
937notice and this notice are preserved.
938
939Local Variables:
940mode: change-log
941left-margin: 8
942fill-column: 74
943version-control: never
944End: