]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Fix --enable-libctf and --disable-static
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
2a1bb84c
JB
12020-06-26 Jan Beulich <jbeulich@suse.com>
2
3 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
4 redundant text from x86 specific part of -M section.
5
85f7484a
PB
62020-06-26 Pat Bernardi <bernardi@adacore.com>
7
8 * readelf.c (display_m68k_gnu_attribute): New function.
9 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
10
d0dded5b
L
112020-06-23 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR binutils/26160
14 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
15 * testsuite/binutils-all/pr26160.r: Likewise.
16 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
17
39f381cb
NC
182020-06-23 Nick Clifton <nickc@redhat.com>
19
20 PR 26160
21 * dwarf.c (fetch_indexed_string): Detect and handle old style
22 .debug_str_offset tables.
23 (display_debug_str_offsets): Likewise. Also add support for
24 .debug_str_offsets.dwo sections.
25
80fda85c
L
262020-06-23 H.J. Lu <hongjiu.lu@intel.com>
27
28 PR binutils/26112
29 * testsuite/binutils-all/pr26112.o.bz2: New file.
30 * testsuite/binutils-all/pr26112.r: Likewise.
31 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
32
d081ffff
AM
332020-06-23 Alan Modra <amodra@gmail.com>
34
35 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
36 remote_file delete command.
37
e4b7104b
NC
382020-06-22 Nick Clifton <nickc@redhat.com>
39
40 PR 26112
41 * dwarf.c (display_debug_str_offsets): Add code to display the
42 contents of the .debug_str_offsets section.
43 (display_debug_macro): Add support for DW_MACRO_define_strx and
44 DW_MACRO_undef_strx.
45
d768f160
SJ
462020-06-22 Saagar Jha <saagar@saagarjha.com>
47
48 * od-macho.c: Dump linkedit data for new load commands.
49
5fd104ad
AM
502020-06-19 Alan Modra <amodra@gmail.com>
51
52 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
53 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
54 (run_dump_test): Use check_relro_support to decide whether to pass
55 extra ld option "-z norelro".
56
fd17d1e6
AM
572020-06-11 Alan Modra <amodra@gmail.com>
58
59 * readelf.c (process_mips_specific): Don't alloc memory for
60 Elf_Internal_Options.
61
d0c4e780
AM
622020-06-11 Alan Modra <amodra@gmail.com>
63
64 * readelf.c (process_mips_specific): Assert size of internal
65 types match size of external types, and simplify allocation of
66 internal buffer. Catch possible integer overflow when sanity
67 checking option size. Don't assume options are a regular array.
68 Sanity check reginfo option against option size. Use PRI macros
69 when printing.
70
25065fcd
RH
712020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
72
73 PR 26082
74 * mclex.c (yylex): Reject lines that reach end-of-file without a
75 terminating newline character.
76
b37a7714
NC
772020-06-08 Nick Clifton <nickc@redhat.com>
78
79 PR 26093
80 * doc/binutils.texi (strings): Fix typo.
81
c4b2f181
NC
822020-06-08 Nick Clifton <nickc@redhat.com>
83
84 PR 26086
85 * dwarf.c (process_debug_info): Check that there is space in the
86 debug_information array before filling in an entry.
87
1424c35d
AM
882020-06-06 Alan Modra <amodra@gmail.com>
89
90 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
91
8affa48a
JA
922020-06-05 Joel Anderson <joelanderson333@gmail.com>
93
94 PR 26082
95 * mclex.c (yylex): Add test for an empty input stream.
96
8eca5c7d
SC
972020-06-04 Stephen Casner <casner@acm.org>
98
99 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
100 for test using section pseudo-ops compatible with pdp11.
101 * testsuite/binutils-all/objcopy.exp: Select alternate source.
102
b3db6d07
JM
1032020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
104
105 * objdump.c (disassemble_data): Set disasm_info.endian_code to
106 disasm_info.endian after the latter is initialized to the
107 endianness reported by BFD.
108
0a4f37af
AM
1092020-06-04 Alan Modra <amodra@gmail.com>
110
111 * testsuite/binutils-all/i386/i386.exp: Remove global directive
112 outside proc body.
113 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
114 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
115
913e0fd4
JA
1162020-06-03 Joel Anderson <joelanderson333@gmail.com>
117
118 * windmc.h (struct mc_node): Add id_typecast field.
119 * mcparse.y (message): Initialise the id_typecast field.
120 * windmc.c (write_dbg): Use the id_typecast field as a parameter
121 when calling write_dbg_define.
122 (write_header): Likewise.
123
4a322448
AM
1242020-06-03 Alan Modra <amodra@gmail.com>
125
126 PR 26069
127 * objcopy.c (copy_relocations_in_section): Free relpp on error.
128 Don't accidentally free isection->orelocation.
129
0bee4d1c
AM
1302020-06-02 Alan Modra <amodra@gmail.com>
131
132 * testsuite/binutils-all/ar.exp (obj): Set up object file name
133 extension. Use throughout. Don't completely exclude non-ELF
134 alpha targets. Run long_filenames test for tic30. Exclude thin
135 archive tests for aix, ecoff and vms.
136 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
137 extension. Use throughout. Don't exclude non-ELF alpha targets
138 from "bintest.a".
139
ab7ad287
MF
1402020-05-28 Max Filippov <jcmvbkbc@gmail.com>
141
142 * MAINTAINERS (Xtensa): Add myself as maintainer.
143
3f3c3608
AM
1442020-05-23 Alan Modra <amodra@gmail.com>
145
146 * testsuite/binutils-all/ar.exp (many_files): New test.
147
9db70fc3
AM
1482020-05-21 Alan Modra <amodra@gmail.com>
149
150 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
151 * dlltool.c: Likewise.
152 * elfcomm.c: Likewise.
153 * rddbg.c: Likewise.
154 * readelf.c: Likewise.
155 * stabs.c: Likewise.
156 * windmc.c: Likewise.
157 * windres.c: Likewise.
158 * wrstabs.c: Likewise.
159
c31ab5a0
AM
1602020-05-21 Alan Modra <amodra@gmail.com>
161
162 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
163 access.
164
8f595e9b
NC
1652020-05-20 Nelson Chu <nelson.chu@sifive.com>
166
167 * dwarf.c: Updated since DECLARE_CSR is changed.
168
8ac10c5b
L
1692020-05-19 H.J. Lu <hjl.tools@gmail.com>
170
171 PR binutils/25809
172 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
173 segment doesn't match the .dynamic section and checks are
174 enabled.
175 (struct filedata): Add dynamic_symtab_section and
176 dynamic_strtab_section fields.
177 (process_section_headers): Set dynamic_symtab_section to the
178 .dynsym section. Set dynamic_strtab_section to the .dynstr
179 section.
180 (process_dynamic_section): Warn if the .dynsym section doesn't
181 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
182 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
183
c177f377
AM
1842020-05-19 Alan Modra <amodra@gmail.com>
185
186 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
187 (replace_members): Use bfd_get_filename rather than accessing
188 bfd->filename directly.
189 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
190 * binemul.c (do_ar_emul_append): Likewise.
191 * coffgrok.c (coff_grok): Likewise.
192
83d27139
SH
1932020-05-18 Stafford Horne <shorne@gmail.com>
194
195 * MAINTAINERS (OR1K): Add myself as maintainer.
196
d11a9fab
AB
1972020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * doc/binutils.texi: Mention 'entry address' in the set-start and
200 adjust-start options descriptions.
201
546cb2d8
NC
2022020-05-05 Nick Clifton <nickc@redhat.com>
203
204 * dwarf.c (do_checks): New global variable.
205 (display_formatted_table): Warn about an unexpected number of
206 columns in the table, if checks are enabled. Do not complain
207 about the lack of data following the number of entries in the
208 table if the table is empty.
209 (display_debug_lines_decoded): Only warn about an unexpected
210 number of columns in a table if checks are enabled.
211 * dwarf.h (do_checks): Add a prototype.
212 * elfcomm.c (error): Remove weak attribute.
213 (warn): Likewise.
214 * readelf.c (do_checks): Delete.
215 (warn): Delete.
216 (process_section_headers): Only warn about empty sections if
217 checks are enabled.
218
e052e2ba
FS
2192020-05-04 Fangrui Song <maskray@google.com>
220
221 * objcopy.c (copy_object): Allow empty section.
222 * testsuite/binutils-all/update-section.exp: Add test.
223
070b775f
NC
2242020-05-04 Nick Clifton <nickc@redhat.com>
225
226 PR 25917
227 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
228 supicious number of entries for DWARF-5 format directory and file
229 name tables. Do not display file name table header if the table
230 is empty. Do not allocate space for empty tables.
231
9c7b8e9b
AM
2322020-05-04 Alan Modra <amodra@gmail.com>
233
234 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
235 section. Don't assume endian of host matches nds32 target. Free
236 buffer.
237
60832332
AM
2382020-05-01 Alan Modra <amodra@gmail.com>
239 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
240
241 * objdump.c (disassemble_bytes): Don't scan for zeros when
242 disassembling zeros. Translate "resuming at file offset" message.
243 Formatting. Replace some signed variables with unsigned.
244
09c1e68a
AC
2452020-04-30 Alex Coplan <alex.coplan@arm.com>
246
247 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
248 disassembly.
249 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
250
8a8a1171
NC
2512020-04-30 Nick Clifton <nickc@redhat.com>
252
253 * testsuite/lib/binutils-common.exp (check_pie_support): New
254 proc.
255
cb4c35cf
AB
2562020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
259 range_entries for the same offset.
260
1b513401
NC
2612020-04-29 Nick Clifton <nickc@redhat.com>
262
263 * readelf.c (warn): New function - like elfcomm.c version but only
264 produces output if warnings are enabled.
265 (struct options): Add --lint and --enable-checks.
266 (usage): Add entry for --lint.
267 (parse_args): Handle -L. If checks are enabled but no dumps have
268 been selected then enable all dumps.
269 (process_section_headers): Replace long if-then-else sequence with
270 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
271 SHT_PROGBITS sections.
272 (process_file): Do not complain if the file is an archive and lint
273 mode has been enabled.
274 * elfcomm.c (error): Make the function weak.
275 (warn): Likewise.
276 * NEWS: Mention the new feature.
277 * doc/binutils.texi: Document the new feature.
278 * dwarf.h (report_leb_status): Add file name and line number
279 parameters. Include them in the diagnostic output.
280 (READ_ULEB): Pass file and line number to report_leb_status.
281 (READ_SLEB): Likewise.
282 * dwarf.c (read_and_print_leb128): Pass file and line number to
283 report_leb_status.
284 * testsuite/binutils-all/readelf.exp: Add test of new feature.
285 * testsuite/binutils-all/zero-sec.s: New test source file.
286 * testsuite/binutils-all/zero-sec.r: Expected output from new
287 test.
288
c2e71e57
NC
2892020-04-29 Nick Clifton <nickc@redhat.com>
290
291 * po/sr.po: Updated Serbian translation.
292
90837ea7
AM
2932020-04-26 Alan Modra <amodra@gmail.com>
294
295 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
296 read before dereferencing, and gracefully return. Remove
297 gnu_hash_error variable. Free gnu hash arrays if number of
298 syms found is zero.
299
2482f306
AM
3002020-04-24 Alan Modra <amodra@gmail.com>
301
302 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
303 non-zero.
304 (process_dynamic_section): Call get_num_dynamic_syms once rather
305 than in segment loop. Break out of segment loop on a successful
306 load of dynamic symbols. Formatting.
307 (process_object): Return error status from process_dynamic_section.
308
27456742
AK
3092020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
310
311 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
312 * elf.c (elfcore_grok_arc_v2): New function.
313 (elfcore_grok_note): Call the new function to handle the corresponding
314 note.
315 (elfcore_write_arc_v2): New function.
316 (elfcore_write_register_note): Call the new function to handle the
317 corresponding pseudo-sections.
318
30ce8e47
MF
3192020-04-22 Max Filippov <jcmvbkbc@gmail.com>
320
321 PR ld/25861
322 * readelf.c (is_none_reloc): Recognize
323 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
324 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
325
33b5a830
NC
3262020-04-22 Nick Clifton <nickc@redhat.com>
327
328 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
329
978c4450
AM
3302020-04-22 Alan Modra <amodra@gmail.com>
331
332 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
333 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
334 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
335 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
336 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
337 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
338 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
339 (dynamic_section, symtab_shndx_list, group_count, section_groups),
340 (section_headers_groups): Move to struct filedata. Update use
341 throughout file.
342
6431e409
AM
3432020-04-22 Alan Modra <amodra@gmail.com>
344
345 * readelf.c (struct dump_data): New, used..
346 (cmdline): ..here, and..
347 (struct filedata): ..here. Adjust all uses.
348 (request_dump_bynumber, request_dump, parse_args): Pass in a
349 struct dump_data* rather than Filedata*. Adjust callers.
350 (main): Don't set cmdline.file_name.
351
a5e0be5c
AM
3522020-04-20 Alan Modra <amodra@gmail.com>
353
354 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
355 and nbuckets.
356
8ff66993
AM
3572020-04-20 Alan Modra <amodra@gmail.com>
358
359 * readelf.c (process_section_headers): Free dynamic symbols etc.
360 earlier.
361
ceb9bf11
AM
3622020-04-20 Alan Modra <amodra@gmail.com>
363
364 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
365 on error without freeing.
366 (process_dynamic_section): Don't recreate dynamic symbols from
367 dynamic tag info when the dynamic symbols have already been
368 read via section headers.
369
e409955d
FS
3702020-04-17 Fredrik Strupe <fredrik@strupe.net>
371
372 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
373 conditional VDUP instructions are disassembled correctly.
374 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
375 vdup-cond.d.
376 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
377 that VDUP instructions (which are conditional in A32) can be
378 disassembled in thumb mode.
379 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
380 vdup-thumb.d.
381
ca3f923f
AM
3822020-04-17 Alan Modra <amodra@gmail.com>
383
384 PR 25840
385 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
386
937f6614
AM
3872020-04-16 Alan Modra <amodra@gmail.com>
388
389 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
390 --no-addresses description.
391
b1bc1394
AM
3922020-04-15 Alan Modra <amodra@gmail.com>
393
394 * objdump.c (no_addresses): New static var.
395 (usage): Print help for --no-addresses.
396 (long_options): Add --no-addresses entry.
397 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
398 (disassemble_bytes): Don't print current line address, or reloc
399 address.
400 * doc/binutils.texi: Document objdump --no-addresses.
401
001890e1
AM
4022020-04-15 Alan Modra <amodra@gmail.com>
403
404 PR 25822
405 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
406 reading buckets or chains fails.
407
b71d4fa7
AM
4082020-04-15 Alan Modra <amodra@gmail.com>
409
410 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
411 etc. after freeing.
412
89246a0e
AM
4132020-04-15 Alan Modra <amodra@gmail.com>
414
415 * readelf.c (get_group_flags): Translate text.
416 (get_file_type, get_symbol_binding, get_symbol_type),
417 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
418
c98a4545
AM
4192020-04-15 Alan Modra <amodra@gmail.com>
420
421 PR 25821
422 * readelf.c (get_num_dynamic_syms): Typo fix.
423
645f43a8
AM
4242020-04-14 Alan Modra <amodra@gmail.com>
425
426 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
427 possibility of overflow when checking number of conflicts.
428
10ca4b04
L
4292020-04-14 H.J. Lu <hongjiu.lu@intel.com>
430
431 PR binutils/25707
432 * readelf.c (nbuckets): New.
433 (nchains): Likewise.
434 (buckets): Likewise.
435 (chains): Likewise.
436 (ngnubuckets): Likewise.
437 (gnubuckets): Likewise.
438 (gnuchains): Likewise.
439 (mipsxlat): Likewise.
440 (ngnuchains): Likewise.
441 (gnusymidx): Likewise.
442 (VALID_SYMBOL_NAME): Likewise.
443 (VALID_DYNAMIC_NAME): Use it.
444 (get_dynamic_data): Moved before process_dynamic_section.
445 (get_num_dynamic_syms): New function.
446 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
447 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
448 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
449 table.
450 (get_symbol_index_type): Don't print "bad section index" when
451 there is no section header.
452 (print_dynamic_symbol): Rewrite.
453 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
454 symbol table.
455
bb897477
RO
4562020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
457
458 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
459 enable on *-*-solaris*.
460
00386881
NC
4612020-03-30 Nick Clifton <nickc@redhat.com>
462
463 PR binutils/25662
464 * objcopy.c (copy_object): When copying PE format files set the
465 timestamp field in the pe_data structure if the preserve_dates
466 flag is set.
467 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
468 --preserve-dates in place of the -p option, in order to make its
469 effect more obvious.
470
0a6a8b59
AM
4712020-03-28 Alan Modra <amodra@gmail.com>
472
473 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
474 clear_xfail hppa*-*-*elf*. Revert mips xfails.
475
6a81c59b
AM
4762020-03-28 Alan Modra <amodra@gmail.com>
477
478 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
479 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
480 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
481 test. Pass "-p" to objcopy for the executable test.
482
1fafefd5
JL
4832020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
484
485 PR binutils/25662
486 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
487 specify whether an object file or executable should be built and tested.
488 Change test names to report whether an object file or executable is
489 being tested.
490 * testsuite/binutils-all/pr25662.ld: New test.
491 * testsuite/binutils-all/pr25662.s: New test.
492
80e2a3b6
AM
4932020-03-27 Alan Modra <amodra@gmail.com>
494
495 * readelf.c (process_archive): Don't double free qualified_name.
496 Don't break out of loop with "negative" archive_file_size, just
497 set file offset to max.
498
4c836627
AM
4992020-03-25 Alan Modra <amodra@gmail.com>
500
501 * readelf.c (process_archive): Prevent endless loop.
502
1081065c
L
5032020-03-24 H.J. Lu <hongjiu.lu@intel.com>
504
505 PR binutils/25708
506 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
507 with bfd_get_symbol_version_string.
508 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
509 * objdump.c (objdump_print_symname): Likewise.
510
7e6e972f
L
5112020-03-24 H.J. Lu <hongjiu.lu@intel.com>
512
513 PR binutils/25708
514 * nm.c (SYM_NAME): Removed.
515 (print_symname): Add a pointer to struct extended_symbol_info
516 argument. Call _bfd_elf_get_symbol_version_name to get symbol
517 version.
518 (print_symdef_entry): Pass NULL to print_symname.
519 (print_symbol_info_bsd): Update call to print_symname.
520 (print_symbol_info_sysv): Likewise.
521 (print_symbol_info_posix): Likewise.
522
5a814d6d
AM
5232020-03-24 Alan Modra <amodra@gmail.com>
524
525 * readelf.c (process_mips_specific): Free iconf on error path.
526
0636b245
NC
5272020-03-23 Nick Clifton <nickc@redhat.com>
528
529 PR 25714
530 * wrstabs.c (stab_pop_type): Replace assertion with error return.
531 * write_stabs_in_sections_debugging_info: Likewise.
532 * stab_enum_type: Likewise.
533 * stab_modify_type: Likewise.
534 * stab_struct_field: Likewise.
535 * stab_end_struct_type: Likewise.
536 * stab_start_class_type: Likewise.
537 * stab_class_static_member: Likewise.
538 * stab_class_baseclass: Likewise.
539 * stab_class_start_method: Likewise.
540 * stab_class_method_var: Likewise.
541 * stab_class_end_method: Likewise.
542 * stab_end_class_type: Likewise.
543 * stab_typedef_type: Likewise.
544 * stab_start_function: Likewise.
545 * stab_end_block: Likewise.
546 * stab_lineno: Likewise.
547
5844b465
NC
5482020-03-20 Nick Clifton <nickc@redhat.com>
549
550 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
551 (process_section_headers): Check the return value from
552 get_compression_header.
553 (dump_section_as_strings): Likewise.
554 (dump_section_as_bytes): Likewise.
555 (load_specific_debug_section): Likewise.
556
3d98c460
L
5572020-03-20 H.J. Lu <hongjiu.lu@intel.com>
558
559 * ar.c (main): Update bfd_plugin_set_program_name call.
560 * nm.c (main): Likewise.
561
f3a08f77
NC
5622020-03-19 Nick Clifton <nickc@redhat.com>
563
564 PR 25676
565 * testsuite/binutils-all/dw4.s: New test source file.
566 * testsuite/binutils-all/nm.exp: Run the new test.
567
ef3df110
L
5682020-03-19 H.J. Lu <hongjiu.lu@intel.com>
569
570 * readelf.c (process_symbol_table): Use unsigned long for si.
571
81a65eb3
AM
5722020-03-19 Alan Modra <amodra@gmail.com>
573
574 * elfcomm.c: Don't include bfd.h or bucomm.h.
575 (program_name): Declare.
576 (process_archive_index_and_symbols): Replace bfd_boolean with int,
577 and substitute FALSE and TRUE.
578 (setup_archive, setup_nested_archive): Likewise.
579 * elfcomm.h: Likewise.
580
1cb7d8b1
AM
5812020-03-19 Alan Modra <amodra@gmail.com>
582
583 * readelf.c (process_archive): Always return via path freeing
584 memory. Formatting.
585
b966f55f
AM
5862020-03-19 Alan Modra <amodra@gmail.com>
587
588 * readelf.c (process_netbsd_elf_note): Validate descsz before
589 accessing descdata. Formatting.
590
645ba681
AM
5912020-03-19 Alan Modra <amodra@gmail.com>
592
593 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
594 * elfcomm.h (setup_archive): Update prototype.
595
28d13567
AM
5962020-03-16 Alan Modra <amodra@gmail.com>
597
598 * readelf.c (get_symbols): New function.
599 (process_relocs, ia64_process_unwind, hppa_process_unwind),
600 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
601
60e63c3e
AM
6022020-03-16 Alan Modra <amodra@gmail.com>
603
604 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
605 Detect shift overflows and check that terminating byte is found.
606 Print an error on a bad uleb128.
607
1bd6175a
AM
6082020-03-14 Alan Modra <amodra@gmail.com>
609
610 * readelf.c (process_file): Clean ba_cache.
611
780f96ae
AM
6122020-03-14 Alan Modra <amodra@gmail.com>
613
614 * elfcomm.h (setup_archive): Update prototype.
615 * elfcomm.c (setup_archive): Add file_size parameter and sanity
616 check longnames_size.
617 (setup_nested_archive): Get file size and pass to setup_archive.
618 * elfedit.c (process_archive): Likewise.
619 * readelf.c (process_archive): Pass filedata->file_size to
620 setup_archive.
621
f761cb13
AM
6222020-03-14 Alan Modra <amodra@gmail.com>
623
624 * readelf.c (dump_section_as_strings): Free memory on error exit.
625 (dump_section_as_bytes, process_notes_at): Likewise.
626 (get_build_id): Free enote.
627
06d949ec
KR
6282020-03-13 Kamil Rytarowski <n54@gmx.com>
629
630 * readelf.c (get_netbsd_elfcore_note_type): Add support for
631 NT_NETBSDCORE_LWPSTATUS notes.
632
fd486f32
AM
6332020-03-13 Alan Modra <amodra@gmail.com>
634
635 * elfcomm.c (get_archive_member_name): Always return malloc'd
636 string or NULL.
637 * elfedit.c (process_archive): Tidy memory on all return paths.
638 * readelf.c (process_archive): Likewise.
639 (process_symbol_table): Likewise.
640 (ba_cache): New, replacing ..
641 (get_symbol_for_build_attribute): ..static vars here. Free
642 strtab and symtab before loading new ones. Reject symtab without
643 valid strtab in loop, breaking out of loop on valid symtab.
644 (process_file): Free ba_cache symtab and strtab here, resetting
645 ba_cache.
646
8fb879cd
AM
6472020-03-12 Alan Modra <amodra@gmail.com>
648
649 * readelf.c (process_section_headers): Don't just set
650 filedata->section_headers NULL, free it first. Similarly for
651 dynamic_symbols, dynamic_strings, dynamic_syminfo and
652 symtab_shndx_list. Zero associated counts too.
653 (process_object): Free symtab_shndx_list.
654 (process_file): Free various allocated filedata tables.
655
5496f3c6
NC
6562020-03-11 Nick Clifton <nickc@redhat.com>
657
658 PR 25611
659 PR 25614
660 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
661 li_segment_size fields.
662 * dwarf.c (read_debug_line_header): Record the address size and
663 segment selector size values (if present) in the lineinfo
664 structure.
665 (display_formatted_table): Warn if the format count is empty but
666 the table itself is not empty.
667 Display the format count and entry count at the start of the table
668 dump.
669 (display_debug_lines_raw): Display the address size and segement
670 selector size fields, if present.
671 * testsuite/binutils-all/dw5.W: Update expected output.
672
9cc89dc0
AM
6732020-03-11 Alan Modra <amodra@gmail.com>
674
675 PR 25651
676 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
677 pad_to_set on second block of code dealing with padding.
678 Replace "c" with "num_sec" and don't recalculate number of
679 sections on second block. Size arrays using sizeof (element)
680 rather than sizeof (element type).
681
41da0822
AM
6822020-03-10 Alan Modra <amodra@gmail.com>
683
684 * objdump.c (disassemble_section): Don't call qsort unless
685 sym count is at least two.
686 (disassemble_data): Don't call memcpy with NULL src.
687
95099889
AM
6882020-03-09 Alan Modra <amodra@gmail.com>
689
690 PR 25645
691 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
692 to get_data rather than multiplying.
693 (dump_ia64_vms_dynamic_relocs): Likewise.
694 (process_version_sections): Correct order of size and nmemb args
695 in get_data call.
696 (process_mips_specific): Likewise.
697
a15de1f5
L
6982020-03-08 H.J. Lu <hongjiu.lu@intel.com>
699
700 * readelf.c (get_dynamic_data): Replace "memory chekers" with
701 "memory checkers" in comments.
702
9979ab66
SM
7032020-03-06 Simon Marchi <simon.marchi@efficios.com>
704
705 PR 25491
706 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
707 * doc/Makefile.in: Re-generate.
708
a0dcf297
NC
7092020-03-06 Nick Clifton <nickc@redhat.com>
710
711 * objcopy.c (check_new_section_flags): New function. Reject the
712 SEC_COFF_SHARED flag if the target is not a COFF binary.
713 (copy_object): Call check_new_section_flags.
714 (setup_section): Likewise.
715 * doc/binutils.texi (objcopy): Add a note that the 'share' section
716 flag cannot be applied to ELF binaries.
717
a9b90127
AM
7182020-03-06 Alan Modra <amodra@gmail.com>
719
720 PR 25637
721 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
722
d1faf7ca
AM
7232020-03-05 Alan Modra <amodra@gmail.com>
724
725 PR 25629
726 * objcopy.c (filter_symbols): Don't segfault on NULL
727 prefix_symbols_string.
728
eef64366
CE
7292020-03-04 Christian Eggers <ceggers@gmx.de>
730
731 * objcopy.c (copy_object): Convert from bytes to octets for
732 --gap-fill and --pad-to.
733
5be2b2f5
NC
7342020-03-03 Nick Clifton <nickc@redhat.com>
735
736 PR 25625
737 * prdbg.c (pr_tag_type): Remove call to abort.
738
b312fea1
AM
7392020-03-02 Aaron Merey <amerey@redhat.com>
740
741 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
742 selection.
743
ba3265d0
NC
7442020-03-02 Nick Clifton <nickc@redhat.com>
745
746 PR 25543
747 * readelf.c (dump_section_as_strings): Display new-line characters
748 as \n and then insert a line break.
749 * testsuite/binutils-all/pr25543.s: New test.
750 * testsuite/binutils-all/pr25543.d: Test driver.
751 * testsuite/binutils-all/readelf.exp: Run the new test.
752
736990c4
NC
7532020-02-27 Nick Clifton <nickc@redhat.com>
754
755 PR 25526
756 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
757 get_data is unable to load the string table.
758
dc1e8a47
AM
7592020-02-26 Alan Modra <amodra@gmail.com>
760
761 * elfedit.c: Indent labels correctly.
762 * readelf.c: Likewise.
763 * resres.c: Likewise.
764
ecda9016
L
7652020-02-25 H.J. Lu <hongjiu.lu@intel.com>
766
767 PR binutils/25584
768 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
769 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
770
83d4d556
NC
7712020-02-24 Nick Clifton <nickc@redhat.com>
772
773 PR 25499
774 * doc/binutils.texi (objdump): Fix typo in description of
775 objdump's -g option.
776
bd0cf5a6
NC
7772020-02-20 Nelson Chu <nelson.chu@sifive.com>
778
779 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
780 is changed.
781
741cb839
EC
7822020-02-19 Jordan Rupprecht <rupprecht@google.com>
783
784 * objdump.c (show_line): call bfd_demangle when using do_demangle.
785
9f1528a1
AB
7862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * configure: Regenerate.
789
3a5d12fb
FS
7902020-02-10 Fangrui Song <maskray@google.com>
791
792 * objcopy.c (parse_flags): Handle "exclude".
793 * doc/binutils.texi: Document the support.
794
678d457f
AM
7952020-02-10 Aaron Merey <amerey@redhat.com>
796
797 * binutils/testsuite/binutils-all/debuginfod.exp:
798 Replace set ::env with setenv.
46471187
AM
799 Start server before setting environment variable.
800 Specify tmpdir as the location of the server's
801 database.
802 Check additional server metrics at start-up.
678d457f 803
e8319fde
NC
8042020-02-07 Nick Clifton <nickc@redhat.com>
805
806 * README-how-to-make-a-release: Add note about updating the
807 GAS/NEWS URL in the next release.
808
9fc0b501
SB
8092020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
810
811 PR 25469
812 * readelf.c (get_machine_flags): Add support for Z80N machine
813 number.
814
e1104d08
NC
8152020-02-07 Nick Clifton <nickc@redhat.com>
816
817 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
818 of the truncated file name.
819
c2e6f744 8202020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
821
822 * objdump.c (print_jump_visualisation): New function.
823 (disassemble_bytes): Call new function.
824
02e0be69
AM
8252020-02-06 Alan Modra <amodra@gmail.com>
826
827 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
828 TCL procedure.
829 (supports_gnu_osabi): New procedure.
830 (is_generic): New, from ld-lib.exp.
831 (supports_gnu_unique): Use the above.
832
e8b79122
AM
8332020-02-04 Alan Modra <amodra@gmail.com>
834
835 * Makefile.am (CFILES): Add od-elf32_avr.c.
836 * Makefile.in: Regenerate.
837 * po/POTFILES.in: Regenerate.
838
27a45f42
AS
8392020-02-03 Andreas Schwab <schwab@linux-m68k.org>
840
841 * readelf.c (dump_relocations, dump_relocations)
842 (decode_arm_unwind_bytecode, process_dynamic_section)
843 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
844 error message.
845
0b398d69
ST
8462020-02-03 Sergei Trofimovich <siarheit@google.com>
847
848 * coffdump.c (program_name): Drop redundant definition.
849 * srconv.c (program_name): Likewise
850 * sysdump.c (program_name): Likewise
851
a8c4d40b
L
8522020-02-02 H.J. Lu <hongjiu.lu@intel.com>
853
854 PR gas/25380
855 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
856 same file with different section pointers.
857
cb6ad9bb
NC
8582020-02-01 Nick Clifton <nickc@redhat.com>
859
860 * README-how-to-make-a-release: Update with more details on the
861 release making process.
862
53943f32
NC
8632020-01-31 Nick Clifton <nickc@redhat.com>
864
865 * po/sv.po: Updated Swedish translation.
866
55be8fd0
NC
8672020-01-28 Nick Clifton <nickc@redhat.com>
868
869 * readelf.c (get_build_id): Simplify warning message about corrupt
870 notes encountered whilst scanning for the build-id.
871
82ef9cad
RM
8722020-01-27 Roland McGrath <mcgrathr@google.com>
873
874 * objcopy.c (compare_gnu_build_notes): Fix comparison results
875 for overlapping ranges so that (A == B) == (B == A) holds.
876
e3696f67
AM
8772020-01-27 Alan Modra <amodra@gmail.com>
878
879 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
880 case statement with switch statement.
881
2f796de6
NC
8822020-01-24 Nick Clifton <nickc@redhat.com>
883
884 * readelf.c (get_build_id): Fix warning messages about corrupt
885 notes.
886
24e648d4
NC
8872020-01-23 Nick Clifton <nickc@redhat.com>
888
889 * po/fr.po: Updated French translation.
890
c48acf6f
YC
8912020-01-22 Yuri Chornoivan <yurchor@mageia.org>
892
893 PR 25417
894 * readelf.c (get_alpha_symbol_other): Fix error message typo.
895
26916852
NC
8962020-01-20 Nick Clifton <nickc@redhat.com>
897
898 * po/pt.po: Updated Portuguese translation.
899 * po/uk.po: Updated Ukranian translation.
900
b248e9ce
NC
9012020-01-18 Nick Clifton <nickc@redhat.com>
902
903 * README-how-to-make-a-release: Update notes on how to cut a
904 branch for a release.
905
1b1bb2c6
NC
9062020-01-18 Nick Clifton <nickc@redhat.com>
907
908 * configure: Regenerate.
909 * po/binutils.pot: Regenerate.
910
ae774686
NC
9112020-01-18 Nick Clifton <nickc@redhat.com>
912
913 Binutils 2.34 branch created.
914
82a9ed20
TT
9152020-01-17 Thomas Troeger <tstroege@gmx.de>
916
917 * objdump.c (jump_info_visualize_address): Discard jumps that are
918 no longer needed.
919 (disassemble_bytes): Only compute the maximum level if jumps were
920 detected.
921
6a1939f5
NC
9222020-01-13 Nick Clifton <nickc@redhat.com>
923
c87c17c1 924 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
925 * testsuite/binutils-all/debuginfod.exp: New tests.
926
1d67fe3b
TT
9272020-01-13 Thomas Troeger <tstroege@gmx.de>
928
929 * objdump.c (visualize_jumps, color_output, extended_color_output)
930 (detected_jumps): New variables.
931 (usage): Add the new jump visualization options.
932 (option_values): Add new option value.
933 (long_options): Add the new option.
934 (jump_info_new, jump_info_free): New functions.
935 (jump_info_min_address, jump_info_max_address): Likewise.
936 (jump_info_end_address, jump_info_is_start_address): Likewise.
937 (jump_info_is_end_address, jump_info_size): Likewise.
938 (jump_info_unlink, jump_info_insert): Likewise.
939 (jump_info_add_front, jump_info_move_linked): Likewise.
940 (jump_info_intersect, jump_info_merge): Likewise.
941 (jump_info_sort, jump_info_visualize_address): Likewise.
942 (disassemble_jumps): New function - used to locate jumps.
943 (disassemble_bytes): Add ascii art generation.
944 (disassemble_section): Add scan to locate jumps.
945 (main): Parse the new visualization option.
946 * doc/binutils.texi: Document the new feature.
947 * NEWS: Mention the new feature.
948
a788aedd
AM
9492020-01-13 Alan Modra <amodra@gmail.com>
950
a4f2b7c5
AM
951 PR 25360
952 PR 25361
a788aedd
AM
953 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
954 fde_fc col_type and col_offset.
955 * readelf.c (apply_relocations): Move symsec check earlier.
956 (free_debug_section): Free reloc_info.
957 (process_notes_at): Free pnotes on error path.
958 (process_object): Free dump_sects here..
959 (process_archive): ..not here.
960
805f38bc
AM
9612020-01-13 Alan Modra <amodra@gmail.com>
962
963 PR 25362
964 * nm.c (display_rel_file): Free dyn_syms.
965
ffebb0bb
NC
9662020-01-09 Nick Clifton <nickc@redhat.com>
967
968 PR 25220
969 * objcopy.c (empty_name): New variable.
970 (need_sym_before): Prevent an attempt to free a static variable.
971 (filter_symbols): Avoid strcmp test by checking for pointer
972 equality.
973
ade4fd9b
NC
9742020-01-09 Nick Clifton <nickc@redhat.com>
975
976 * po/zh_TW.po: Updated Traditional Chinese translation.
977
9782020-01-09 Aaron Merey <amerey@redhat.com>
979
980 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
981 * Makefile.in: Regenerate.
982 * NEWS: Update.
983 * config.in: Regenerate.
984 * configure: Regenerate.
985 * configure.ac: Call AC_DEBUGINFOD.
986 * doc/Makefile.in: Regenerate.
987 * doc/binutils.texi: Add section on using binutils
988 with debuginfod.
989 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
990 Query debuginfod servers for the target debug file.
991 (load_separate_debug_info): Call
992 debuginfod_fetch_separate_debug_info if configured with
993 debuginfod.
994 (load_separate_debug_files): Add file argument to
995 load_separate_debug_info calls.
996 * dwarf.h (get_build_id): Add declaration.
997 * objdump.c (get_build_id): New function. Get build-id of file.
998 * readelf.c (get_build_id): Likewise.
999 * testsuite/binutils-all/debuginfod.exp: New tests.
1000 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1001 section.
1002
6655dba2
SB
10032020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1004
1005 * readelf.c: Add support for new Z*) relocations and machine
1006 types.
1007
b14ce8bf
AM
10082020-01-01 Alan Modra <amodra@gmail.com>
1009
1010 Update year range in copyright notice of all files.
1011
0b114740 1012For older changes see ChangeLog-2019
3499769a 1013\f
0b114740 1014Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1015
1016Copying and distribution of this file, with or without modification,
1017are permitted in any medium without royalty provided the copyright
1018notice and this notice are preserved.
1019
1020Local Variables:
1021mode: change-log
1022left-margin: 8
1023fill-column: 74
1024version-control: never
1025End: