]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
[GOLD]: Re: Add -Bno-symbolic
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
b96a1bcb
AM
12021-05-13 Alan Modra <amodra@gmail.com>
2
3 PR 27861
4 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
5 header length.
6
d21f875d
AM
72021-05-13 Alan Modra <amodra@gmail.com>
8
9 PR 27860
10 * dwarf.c (display_debug_frames): Sanity check cie_off before
11 attempting to read cie.
12
a7077ce7
AM
132021-05-12 Alan Modra <amodra@gmail.com>
14
15 * dwarf.c (process_extended_line_op): Don't bump data pointer past
16 end when strnlen doesn't find string terminator.
17 (decode_location_expression): Remove dead code.
18 (skip_attr_bytes): Remove const from end param. Ensure data
19 pointer doesn't pass end.
20 (get_type_signedness): Remove const from end param.
21 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
22 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
23 (display_debug_pubnames_worker): Likewise.
24 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
25 than blindly incrementing data pointer.
26 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
27 compare pointers, compare lengths.
28
6d1ad6f7
AM
292021-05-12 Alan Modra <amodra@gmail.com>
30
31 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
32 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
33 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
34 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
35 SAFE_BYTE_GET followed by increment.
36 (process_debug_info): Likewise, and test bytes remaining before
37 incrementing section_begin rather than using pointer comparison.
38 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
39 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
40
af2ddf69
AM
412021-05-12 Alan Modra <amodra@gmail.com>
42
43 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
44 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
45 SAFE_BYTE_GET_AND_INC.
46 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
47 (process_debug_info, process_cu_tu_index): Likewise.
48 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
49 (byte_get, byte_get_little_endian, byte_get_big_endian),
50 (byte_get_signed): Make size param unsigned. Remove code dealing
51 with 4-byte elf_vma.
52 (byte_get_64): Delete.
53 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
54 (byte_get, byte_get_little_endian, byte_get_big_endian),
55 (byte_get_signed): Update prototypes.
56 (byte_get_64): Delete.
57
0d872fca
AM
582021-05-12 Alan Modra <amodra@gmail.com>
59
60 PR 27836
61 * dwarf.c (display_debug_frames): Don't compare pointers derived
62 from user input. Test offset against bounds instead.
63
55b26492
AM
642021-05-12 Alan Modra <amodra@gmail.com>
65
66 PR 27853
67 * dwarf.c (display_formatted_table): Test for data >= end rather
68 than data == end.
69 (process_extended_line_op): Likewise.
70 (display_debug_lines_raw): Likewise.
71 (display_debug_lines_decoded): Likewise.
72
5ab39075
AM
732021-05-12 Alan Modra <amodra@gmail.com>
74
75 PR 27849
76 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
77 Sanity check section size for version and padding too. Correct
78 index sanity check. Handle multiple tables in .debug_str_offsets.
79
d30182b5
HPN
802021-05-11 Hans-Peter Nilsson <hp@axis.com>
81
82 * dwarf.c (process_abbrev_set): Properly parenthesize before
83 casting to unsigned long.
84
f2f9554b
AM
852021-05-11 Alan Modra <amodra@gmail.com>
86
87 PR 27845
88 * dwarf.c (process_abbrev_set): Replace start and end parameters
89 with section, abbrev_base, abbrev_size, abbrev_offset. Update
90 all callers. Sanity check parameters correctly and emit warnings
91 here rather than..
92 (process_debug_info): ..here.
93
749c7002
TW
942021-05-10 Thomas Wolff <towo@towo.net>
95
96 PR 4356
97 PR 26865
98 PR 27594
99 * windres.c (quot): Revert previous delta. Do not use double
100 quotes when spaces are detected in options.
101 * doc/binutils.texi (windres): Remove suggestion that the
102 --preprocessor option can take arguments.
103
2d4b4986
AM
1042021-05-10 Alan Modra <amodra@gmail.com>
105
106 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
107 END rather than adding amount to PTR.
108 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
109
b05a0fc7
AM
1102021-05-09 Alan Modra <amodra@gmail.com>
111
112 * objcopy.c (eq_string): Delete.
113 (create_symbol_htab): Use htab_eq_string.
114
354c317e
MF
1152021-05-08 Mike Frysinger <vapier@gentoo.org>
116
117 * README-how-to-make-a-release: Update html & pdf entries.
118
cf758b39
MF
1192021-05-08 Mike Frysinger <vapier@gentoo.org>
120
121 * doc/Makefile.am (html-local, binutils/index.html): New targets.
122 * doc/Makefile.in: Regenerate.
123
2faf902d
MF
1242021-05-08 Mike Frysinger <vapier@gentoo.org>
125
126 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
127 * doc/Makefile.in: Regenerate.
128
3ecc00ec
NC
1292021-05-07 Nick Clifton <nickc@redhat.com>
130
131 * readelf.c (no_processor_specific_unwind): New function.
132 (process_unwind): Use no_processor_specific_unwind for X86
133 targets.
134
4896932e
MF
1352021-05-07 Michael Forney <mforney@mforney.org>
136
137 * dwarf.c: Don't omit second operand of '?' operator.
138
bfbfa6e7
NC
1392021-04-30 Nick Clifton <nickc@redhat.com>
140
141 PR 27796
142 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
143 .debug_sup section.
144
5edb8e3f
NC
1452021-04-29 Nick Clifton <nickc@redhat.com>
146
147 PR 27594
148 * doc/binutils.texi (windres): Correct the description of the
149 default value of the --preprocessor argument.
150
3d64c987
NC
1512021-04-27 Nick Clifton <nickc@redhat.com>
152
153 PR 27779
154 * dwarf.c (parse_gnu_debuglink): Reject empty names.
155 (parse_gnu_debugaltlink): Likewise.
156
b11b2969
CC
1572021-04-22 Clément Chigot <clement.chigot@atos.net>
158
159 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
160 aux structures.
161
047c3dbf
NL
1622021-04-21 Nick Lott <nick.lott@gmail.com>
163
164 PR 27672
165 * readelf.c (sym_base): New variable.
166 (enum print_mode): Add more modes.
167 (print_vma): Add suport for new modes.
168 (options): Add sym-base.
169 (usage): Add sym-base.
170 (parse_args): Add support for --sym-base.
171 (print_dynamic_symbol_size): New function.
172 (print_dynamic_symbol): Use new function.
173 * doc/binutils.texi: Document the new feature.
174 * NEWS: Mention the new feature.
175
23356397
NC
1762021-04-21 Nick Clifton <nickc@redhat.com>
177
178 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
179 Adjust expected output to allow for named section symbols.
180 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
181 Likewise.
182 * testsuite/binutils-all/readelf.s-64: Likewise.
183 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
184 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
185 * testsuite/binutils-all/readelf.ss-unused: Likewise.
186
1872021-04-21 Luo Longjun <luolongjun@huawei.com>
188
189 * readelf.c (print_dynamic_symbol): Print the section name for
190 section symbols without a name of their own.
191
aee4e85e
AK
1922021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
193
194 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
195 add him to Past Maintainers.
196 Update my email address.
197
229597a1
NC
1982021-04-19 Nick Clifton <nickc@redhat.com>
199
200 PR 21702
201 * arsup.c (ar_addmod): Enable plugin support, if available.
202
4dee4f3e
NC
2032021-04-19 Nick Clifton <nickc@redhat.com>
204
205 * rename.c: (get_stat_atime_ns): Add prototype.
206 (get_stat_mtime_ns): Add prototype.
207
ad7c4616
AM
2082021-04-16 Alan Modra <amodra@gmail.com>
209
210 PR 27725
211 * rename.c (get_stat_atime, get_stat_mtime): Make static.
212 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
213
4c79248a
PS
2142021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
215
216 PR 27725
217 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
218 (get_stat_mtime_ns): Likewise.
219
985e0264
AM
2202021-04-15 Alan Modra <amodra@gmail.com>
221
222 PR 27725
223 * configure.ac: Check for sys/time.h and utimensat. Use standard
224 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
225 members of struct stat.
226 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
227 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
228 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
229 (get_stat_atime, get_stat_mtime): Likewise.
230 (set_times): Choose first available of utimensat, utimes, utime.
231 Use above inline functions to set timespec and timeval values.
232 * configure: Regenerate.
233 * config.in: Regenerate.
234 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
235 file timestamp when --preserve-dates is used.
236
d0ecdcdd
AM
2372021-04-15 Alan Modra <amodra@gmail.com>
238
239 PR 27456
240 * rename.c (smart_rename): When TO and FROM are equal, just set
241 file timestamp.
242 * objcopy.c (strip_main, copy_main): Always call smart_rename.
243
9917b559
L
2442021-04-14 H.J. Lu <hongjiu.lu@intel.com>
245
246 PR binutils/27708
247 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
248 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
249 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
250 test.
251
6be872a4
MH
2522021-04-14 Mark Harmstone <mark@harmstone.com>
253
254 PR 27686
255 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
256 end of the structure.
257
5f47741b
FC
2582021-04-14 Frederic Cambus <fred@statdns.com>
259
260 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
261 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
262
13acb58d
AM
2632021-04-14 Alan Modra <amodra@gmail.com>
264
265 PR 27716
266 * objdump.c (show_line): Don't limit paths to PATH_MAX.
267 * readelf.c (struct filedata): Change program_interpreter from
268 a char array to a char pointer.
269 (process_program_headers): Sanity check PT_INTERP p_filesz.
270 Malloc program_interpreter using p_filesz and read directly from
271 file.
272 (process_dynamic_section): Check program_interpreter is non-NULL.
273 (free_filedata): New function, split out from..
274 (process_object): ..here.
275 (close_debug_file): Call free_filedata.
276 * sysdep.h: Don't include sys/param.h.
277 (PATH_MAX): Don't define.
278 * configure.ac: Don't check for sys/param.h.
279 * configure: Regenerate.
280
0fa29e2d
FC
2812021-04-13 Frederic Cambus <fred@statdns.com>
282
283 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
284 check for NT_NETBSD_PAX.
285
43e05cd4
AM
2862021-04-12 Alan Modra <amodra@gmail.com>
287
288 * configure.ac (--enable-checking): Add support.
289 * config.in: Regenerate.
290 * configure: Regenerate.
291
c3f72de4
AM
2922021-04-09 Alan Modra <amodra@gmail.com>
293
294 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
295 dynrelcount.
296 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
297 (disassemble_section, disassemble_data): Likewise.
298
a2e66773
AM
2992021-04-06 Alan Modra <amodra@gmail.com>
300
301 * objdump.c (objdump_symbol_at_address): Return asymbol*.
302
4db29512
AM
3032021-04-06 Alan Modra <amodra@gmail.com>
304
305 * NEWS: Mention C99 requirement.
306 * README: Likewise. Modernise examples and "Reporting bugs".
307
87b9f255
AM
3082021-04-05 Alan Modra <amodra@gmail.com>
309
310 * configure.ac: Assume long long is available. Don't test for
311 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
312 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
313 strcoll, setlocale, setmode or location of time_t. Don't check
314 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
315 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
316 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
317 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
318 locale.h, string.h and stdlib.h unconditionally. Remove various
319 fallback declarations. Assume long long is available.
320 * addr2line.c: Don't test HAVE_SETLOCALE.
321 * ar.c: Likewise.
322 * coffdump.c: Likewise.
323 * dlltool.c: Likewise.
324 * dllwrap.c: Likewise.
325 * elfedit.c: Likewise.
326 * nm.c: Likewise.
327 * objcopy.c: Likewise.
328 * objdump.c: Likewise.
329 * readelf.c: Likewise.
330 * size.c: Likewise.
331 * srconv.c: Likewise.
332 * strings.c: Likewise.
333 * sysdump.c: Likewise.
334 * windmc.c: Likewise.
335 * windres.c: Likewise.
336 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
337 * dwarf.c: Include limits.h unconditionally. Assume long long
338 is available.
339 * nm.c: Don't test HAVE_STRCOLL.
340 * readelf.c: Don't test HAVE_WCHAR_H.
341 * strings.c: Assume long long is available.
342 * syslex.l: Include string.h unconditionally.
343 * aclocal.m4: Regenerate.
344 * config.in: Regenerate.
345 * configure: Regenerate.
346 * Makefile.in: Regenerate.
347 * doc/Makefile.in: Regenerate.
348
e9b095a5
ML
3492021-04-01 Martin Liska <mliska@suse.cz>
350
351 * elfcomm.h (strneq): Remove strneq and use startswith.
352 * readelf.c (ia64_process_unwind): Likewise.
353 (process_note): Likewise.
354
3f3328b8
ML
3552021-04-01 Martin Liska <mliska@suse.cz>
356
357 * dllwrap.c: Use startswith function.
358 * objcopy.c (is_dwo_section): Likewise.
359 (handle_remove_section_option): Likewise.
360 (copy_main): Likewise.
361 * objdump.c (is_significant_symbol_name): Likewise.
362
24d127aa
ML
3632021-04-01 Martin Liska <mliska@suse.cz>
364
365 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
366 startswith.
367 (display_debug_lines_decoded): Likewise.
368 (display_debug_links): Likewise.
369 * elfcomm.c (setup_archive): Likewise.
370 * elfcomm.h (const_strneq): Likewise.
371 * readelf.c (process_section_headers): Likewise.
372 (slurp_ia64_unwind_table): Likewise.
373 (slurp_hppa_unwind_table): Likewise.
374 (decode_arm_unwind): Likewise.
375 (display_debug_section): Likewise.
376 (process_note): Likewise.
377
015dc7e1
AM
3782021-03-31 Alan Modra <amodra@gmail.com>
379
380 * sysdep.h (POISON_BFD_BOOLEAN): Define.
381 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
382 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
383 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
384 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
385 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
386 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
387 * windmc.c, * windmc.h, * windres.c, * winduni.c,
388 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
389 and TRUE with true throughout.
390
3dfb1b6d
AM
3912021-03-31 Alan Modra <amodra@gmail.com>
392
393 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
394 * dwarf.c: Likewise.
395
57ae980e
AM
3962021-03-31 Alan Modra <amodra@gmail.com>
397
398 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
399
63b4cc53
AM
4002021-03-29 Alan Modra <amodra@gmail.com>
401
402 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
403 * dwarf.c (read_and_display_attr_value): Likewise.
404 (display_debug_str_offsets): Likewise.
405 * objdump.c (dump_bfd): Likewise.
406 * readelf.c (dump_section_as_strings): Likewise.
407 (dump_section_as_bytes): Likewise.
408
1be305ff
AM
4092021-03-29 Alan Modra <amodra@gmail.com>
410
411 * objdump.c (process_links): Use type int.
412 * readelf.c (request_dump): Don't increment do_dump, set it.
413 * windint.h (target_is_bigendian): Use type bfd_boolean.
414 * windmc.c (target_is_bigendian): Likewise.
415 * windres.c (target_is_bigendian): Likewise.
416
08dedd66
ML
4172021-03-22 Martin Liska <mliska@suse.cz>
418
1be305ff
AM
419 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
420 with startswith.
08dedd66
ML
421 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
422 * objcopy.c (is_mergeable_note_section): Likewise.
423 * objdump.c (dump_dwarf_section): Likewise.
424 * prdbg.c (pr_method_type): Likewise.
425 (pr_class_baseclass): Likewise.
426 (tg_class_baseclass): Likewise.
427 * readelf.c (process_lto_symbol_tables): Likewise.
428 * stabs.c (ULLHIGH): Likewise.
429 (parse_stab_argtypes): Likewise.
430 (stab_demangle_function_name): Likewise.
431
7b9f9859
L
4322021-03-19 H.J. Lu <hongjiu.lu@intel.com>
433
434 * readelf.c (get_machine_name): Add EM_INTELGT.
435
835f2fae
NC
4362021-03-18 Nick Clifton <nickc@redhat.com>
437
438 PR 27478
439 * readelf.c (dump_section_as_strings): Mention separate filename.
440 (dump_section_as_bytes): Likewise.
441 (dump_section_as_ctf): Likewise.
442 (initialise_dumkps_byname): Only issue a warning for missing
443 sections if processing the main file.
444 (process_section_contents): Only issue a warning for unsumped
445 section numbers in the main file.
446 (initialise_dump_sects): New function. Contains code extracted
447 from ...
448 (process_object): ... here. Also call initialise_dump_sects for
449 separate files.
450
44266f36
NC
4512021-03-16 Nick Clifton <nickc@redhat.com>
452
453 PR 27534
454 * readelf.c (display_debug_section): Also retain .debug_addr
455 sections.
456
d6bfbc39
NC
4572021-03-16 Nick Clifton <nickc@redhat.com>
458
459 PR 27533
460 * readelf.c (process_section_contents): Only dump debug
461 information for separate files unless process_links is enabled.
462 (process_object): Always call process_section_contents for
463 separate info files.
464
1996d0f1
NC
4652021-03-15 Nick Clifton <nickc@redhat.com>
466
467 PR 27487
468 * nm.c (FORMAT_JUST_SYMBOLS): Define.
469 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
470 (long_options): Add just-symbols.
471 (set_output_format): Add support for just-symbols.
472 (get_print_format): Likewise.
473 (do_not_print_object_filename): New function.
474 (do_not_print_archive_filename): New function.
475 (do_not_print_archive_member): New function.
476 (do_not_print_symbol_filename): New function.
477 (just_print_symbol_name): New function.
478 (main): Handle --just-symbols.
479 * NEWS: Mention the new feature.
480 * doc/binutils.texi: Document the new feature.
481
2c1bef53
CC
4822021-03-12 Clément Chigot <clement.chigot@atos.net>
483
484 * od-xcoff.c: Replace RTB by TRL entry.
485
db6092f3
AB
4862021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
487 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
490
b63a5e38
AB
4912021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
492 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
495
d296b736
NC
4962021-03-05 Nick Clifton <nickc@redhat.com>
497
498 PR 27387
499 * dwarf.c (display_debug_macro): Handle the displaying of
500 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
501 .debug_macro.dwo sections.
502
ca0e11aa
NC
5032021-03-04 Nick Clifton <nickc@redhat.com>
504
505 PR 27478
506 * objdump.c (process_links): New variable.
507 (usage): Add --process-links.
508 (long_options): Likewise.
509 (dump_bfd): Stop processing once the bfd has been loaded unless
510 this is the main file or process_links has been enabled.
511 (main): Handle the process-links option.
512 * readelf.c (process_links): New variable.
513 (struct filedata): Add is_separate field.
514 (options): Add --process-links.
515 (usage): Likewise.
516 (parse_args): Likewise.
517 (process_file_header): Include the filename when dumping
518 information for separate debuginfo files.
519 (process_program_headers): Likewise.
520 (process_section_headers): Likewise.
521 (process_section_groups): Likewise.
522 (process_relocs): Likewise.
523 (process_dynamic_section): Likewise.
524 (process_version_sections): Likewise.
525 (display_lto_symtab): Likewise.
526 (process_symbol_table): Likewise.
527 (process_syminfo): Likewise.
528 (initialise_dumps_by_name): Likewise.
529 (process_section_contents): Likewise.
530 (process_notes_at): Likewise.
531 (process_notes): Likewise.
532 (open_file): Add is_separate parameter. Use to initialise the
533 is_separate field in the filedata structure.
534 (open_deug): Update call to open_file.
535 (process_object): Add processing of the contents of separate
536 debuginfo files, gated by the process_links variable.
537 (process_archive): Update call to open_file.
538 (process_file): Initialise the is_separate field in the filedata
539 structure.
540 * dwarf.c (load_separate_debug_info_file): Only report the
541 loading of a separate file if debug links are being dumped.
542 * objcopy.c (keep_section_symbols): New variable.
543 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
544 (strip_options): Add keep-section-symbols.
545 (copy_options): Likewise.
546 (copy_usage): Likewise.
547 (strip_usage): Likewise.
548 (copy_object): Keep section symbols if requested by command line
549 option.
550 (strip_main): Handle --keep-section-symbols.
551 (copy_main): Likewise.
552 * doc/binutils.texi: Document the new options.
553 * NEWS: Mention the new features.
554 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
555 Update options passed to objdump. Use diff rather than cmp to
556 compare the dumped data.
557 * testsuite/binutils-all/objdump.WK2: Update regexp.
558 * testsuite/binutils-all/objdump.WK3: Update regexp.
559 * testsuite/binutils-all/objdump.exp: Use --process-links
560 instead of --dwarf=follow-links.
561 * testsuite/binutils-all/readelf.exp (readelf_test): Include
562 readelf's output in the log when the test fails.
563 Add the -P option to the -wKis test.
564 * testsuite/binutils-all/readelf.wKis: Update expected output.
565
fd5c076a
AM
5662021-03-03 Alan Modra <amodra@gmail.com>
567
568 PR 27493
569 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
570 * NEWS: Mention feature.
571
ecd65684
L
5722021-03-01 H.J. Lu <hongjiu.lu@intel.com>
573
574 PR binutils/27486
575 * dwarf.c (load_separate_debug_info): Issue warning only if
576 do_debug_links is set.
577 * testsuite/binutils-all/compress.exp: Run objdump and readelf
578 with missing debug file.
579
6a1224ec
AM
5802021-03-01 Alan Modra <amodra@gmail.com>
581
582 PR 27128
583 * doc/binutils.texi: Add nm --with-symbol-versions and
584 --without-symbol-versions documentation.
585 * nm.c (with_symbol_versions): New variable.
586 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
587 (long_options): Make --with-symbol-versions entry twiddle the flag.
588 Add --without-symbol-versions.
589 (print_symname): Strip version when !with_symbol_versions. Add
590 dynamic version info under control of with_symbol_versions.
591 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
592
7fe1b138
FS
5932021-02-26 Fangrui Song <maskray@google.com>
594
595 PR 27408
596 * readelf.c (quiet): New option flag.
597 (enum long_option_values): New enum to hold long option value.
598 (long_options): Add --quiet.
599 (usage): Mention --quiet.
600 (display_rel_file): If quiet is enabled, suppress "no symbols".
601 (main): Handle the new option.
602 * NEWS: Mention --quiet.
603 * docs/binutils.texi: Document --quiet.
604
0e12f6c8
TV
6052021-02-26 Tom de Vries <tdevries@suse.de>
606
607 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
608
32e4f96c
TV
6092021-02-26 Tom de Vries <tdevries@suse.de>
610
611 PR 27390
612 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
613 DW_FORM_addrx*.
614 (read_and_display_attr_value): Likewise.
615
e38332c2
NC
6162021-02-25 Nick Clifton <nickc@redhat.com>
617
618 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
619 forms.
620 (read_and_display_attr_value): Handle sup forms.
621 (display_debug_sup): New function. Displays the contents of a
622 .debug_sup section.
623 (load_debug_sup_file): New function. Loads the contents of a file
624 referenced by a .debug_sup section.
625 (check_for_and_load_links): Call load_debug_sup_file.
626 (debug_displays): Add entry for .debug_sup.
627 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
628 * readelf.c (process_section_headers): Add support for debug_sup.
629 * doc/debug.options.texi: Note that the =links option will display
630 the contents of .debug_sup sections.
631 * NEWS: Mention the new support.
632
40b02646
AM
6332021-02-25 Alan Modra <amodra@gmail.com>
634
635 PR 27456
636 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
637
9d3fcfe0
NC
6382021-02-24 Nick Clifton <nickc@redhat.com>
639
640 PR 27285
641 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
642 when adding together the section sizes.
643
c74147bb
NC
6442021-02-24 Nick Clifton <nickc@redhat.com>
645
646 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
647 build notes.
648 * readelf.c (print_gnu_build_attribute_description): Likewise.
649
c42c71a1
AM
6502021-02-24 Alan Modra <amodra@gmail.com>
651 Siddhesh Poyarekar <siddhesh@gotplt.org>
652
653 PR 27456
654 * bucomm.h (smart_rename): Update prototype.
655 * rename.c (smart_rename): Add fromfd and preserve_dates params.
656 Pass fromfd and target_stat to simple_copy. Call set_times
657 when preserve_dates.
658 (simple_copy): Accept fromfd rather than from filename. Add
659 target_stat param. Rewind fromfd rather than opening. Open
660 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
661 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
662 closing output temp file, and pass tmpfd to smart_rename.
663 * arsup.c (temp_fd): Rename from real_fd.
664 (ar_save): Dup temp_fd and pass to smart_rename.
665 * objcopy.c (strip_main, copy_main): Likewise, and pass
666 preserve_dates.
667
cca8873d
AM
6682021-02-24 Alan Modra <amodra@gmail.com>
669
670 PR 27456
671 * rename.c: Tidy throughout.
672 (smart_rename): Always copy. Remove windows specific code.
673
4d496013
AM
6742021-02-20 Alan Modra <amodra@gmail.com>
675
676 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
677 (run_dump_test): Fail if expecting errors from a file like we do
678 for error strings, if no error is seen.
679
0be51eb4
AM
6802021-02-19 Alan Modra <amodra@gmail.com>
681
682 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
683
3685de75
SP
6842021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
685
686 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
687 SMART_RENAME.
688 * arsup.c (ar_save): Likewise.
689 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
690 temporary file and adjust call to SMART_RENAME.
691 (copy_main): Likewise.
692 * rename.c [!S_ISLNK]: Remove definitions.
693 (try_preserve_permissions): Remove function.
694 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
695 rename system call only if TO does not exist.
696 * bucomm.h (smart_rename): Adjust declaration.
697
85684222
NC
6982021-02-18 Nick Clifton <nickc@redhat.com>
699
700 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
701 address that is higher than the end address.
702
b9b204b3
AM
7032021-02-17 Alan Modra <amodra@gmail.com>
704
705 * dwarf.c: Include limits.h.
706 (CHAR_BIT): Provide backup define.
707 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
708 signed overflow checking.
709 * testsuite/binutils-all/pr26548.s,
710 * testsuite/binutils-all/pr26548.d,
711 * testsuite/binutils-all/pr26548e.d: New tests.
712 * testsuite/binutils-all/readelf.exp: Run them.
713 (readelf_test): Drop unused "xfails" parameter. Update all uses.
714
e6ca1878
JB
7152021-02-16 Jan Beulich <jbeulich@suse.com>
716
717 * dwarf.c (process_debug_info): Initialize "dwo_id".
718
208599d9
AM
7192021-02-15 Alan Modra <amodra@gmail.com>
720
721 * objdump.c (load_specific_debug_section): Don't call
722 bfd_cache_section_contents. Rearrange so that
723 bfd_get_full_section_contents is not called on path where
724 bfd_simple_get_relocated_section_contents is called.
725 Don't set section->user_data.
726 (free_debug_section): Always free section->start. Don't twiddle
727 section flags.
728 * readelf.c (load_specific_debug_section): Don't set user_data.
729 * dwarf.h (struct dwarf_section): Remove use_data field.
730 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
731
1781a9d0
AM
7322021-02-15 Alan Modra <amodra@gmail.com>
733
734 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
735 * testsuite/binutils-all/objdump.exp: Likewise.
736
1944212b
AM
7372021-02-14 Alan Modra <amodra@gmail.com>
738
739 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
740 to the symbol array.
741 (slurp_dynamic_symtab): Likewise.
742 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
743
0d0a0d86
AM
7442021-02-14 Alan Modra <amodra@gmail.com>
745
746 * Makefile.in: Regenerate.
747 * doc/Makefile.in: Regenerate.
748
adeab0c5
MF
7492021-02-13 Mike Frysinger <vapier@gentoo.org>
750
751 * aclocal.m4: Regenerate.
752
c46b7066
NC
7532021-02-12 Nick Clifton <nickc@redhat.com>
754
755 * configure.ac (follow-debug-links): Add option to enable or
756 disable the following of debug links by default. Set the
757 default for the option to be 'follow'.
758 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
759 (dwarf_select_sections_by_names): Add no-follow-links option.
760 (dwarf_select_sections_by_letter): Add 'N' option.
761 * objdump.c (usage): Add conditional text describing the
762 follow links option.
763 (slurp_symtab): Ensure that there is a NULL entry at the end
764 of the symbol table.
765 (slurp_dynamic_symtab): Likewise.
766 (dump_bfd): When extending the symbol table, ensure that there
767 is still a NULL entry at the end.
768 * readelf.c (usage): Add conditional text describing the
769 follow links option.
770 * doc/binutils.texi: Update documentation for objcopy and
771 readelf.
772 * doc/debug.options.texi: Update documentation of the
773 follow-links option.
774 * config.in: Regenerate.
775 * configure: Regenerate.
776 * testsuite/binutils-all/compress.exp: Add the -WN option to
777 objdump command lines that are not expecting to follow links.
778 * testsuite/binutils-all/readelf.exp: Add the
779 --debug-dump=no-follow-links option to tests that are not
780 expecting to follow debug links.
781 * NEWS: Mention the new behaviour.
782
17e04eff
AM
7832021-02-12 Alan Modra <amodra@gmail.com>
784
785 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
786 gas or ld fails to build a testcase rather than "unresolved".
787 Report "fail" when readelf returns an error status rather than
788 "unresolved".
789 * testsuite/binutils-all/ar.exp: Likewise.
790 * testsuite/binutils-all/compress.exp: Likewise.
791 * testsuite/binutils-all/readelf.exp: Likewise.
792
8f054a7a
AM
7932021-02-12 Alan Modra <amodra@gmail.com>
794
795 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
796 "c" with "ccc" labels.
797
528a4f87
TV
7982021-02-12 Tom de Vries <tdevries@suse.de>
799
800 * dwarf.h (debug_info): Fix typo in comment.
801
95abb394
TV
8022021-02-12 Tom de Vries <tdevries@suse.de>
803
804 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
805 entries.
806
d60f7998
TV
8072021-02-12 Tom de Vries <tdevries@suse.de>
808
809 * dwarf.c (process_debug_info): Print DWO ID.
810
1cfcf300
AM
8112021-02-11 Alan Modra <amodra@gmail.com>
812
813 PR 27290
814 PR 27293
815 PR 27295
816 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
817 Use bfd_malloc_and_get_section.
818 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
819 check namesz. Return NULL if descsz is too small. Ensure
820 string table is terminated.
821 (elf32_avr_get_device_info): Formatting. Add note_size param.
822 Sanity check note.
823 (elf32_avr_dump_mem_usage): Adjust to suit.
824
d9d9d8ef
TV
8252021-02-10 Tom de Vries <tdevries@suse.de>
826
827 PR binutils/27391
828 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
829
52ff20fe
TV
8302021-02-10 Tom de Vries <tdevries@suse.de>
831
832 PR binutils/27371
833 * dwarf.c (display_debug_ranges): Filter range lists according to
834 section.
835
5f128a25
TV
8362021-02-09 Tom de Vries <tdevries@suse.de>
837
838 PR binutils/27370
839 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
840
9b87f84a
TV
8412021-02-09 Tom de Vries <tdevries@suse.de>
842
843 PR binutils/27386
844 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
845 DW_UT_split_compile.
846
a57d1773
AM
8472021-02-09 Alan Modra <amodra@gmail.com>
848
849 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
850 symbianelf.
851
de8d4203
AM
8522021-02-07 Alan Modra <amodra@gmail.com>
853
854 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
855 uninitialised on invalid input.
856
51a25252
AM
8572021-02-06 Alan Modra <amodra@gmail.com>
858
859 PR 27349
860 * rename.c (smart_rename): Test for existence and type of output
861 file with lstat.
862
e37d88e5
NC
8632021-02-05 Nick Clifton <nickc@redhat.com>
864
865 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
866
887854ba
EZ
8672021-02-05 Eli Zaretskii <eliz@gnu.org>
868
869 PR 27252
870 * elfedit.c (check_file):
871 * bucomm.c (get_file_size): Fix typos in comments.
872
c180f095
AM
8732021-02-05 Alan Modra <amodra@gmail.com>
874
875 PR 27345
876 * arsup.c (ar_save): Use stat rather than lstat.
877
95b91a04
AM
8782021-02-03 Alan Modra <amodra@gmail.com>
879
880 PR 27270
881 PR 27284
882 PR 26945
883 * ar.c: Don't include libbfd.h.
884 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
885 bfd_stat rather than fstat on iostream. Move stat and fd tests
886 outside of _WIN32 ifdef. Delete skip_stat variable.
887 * arsup.c (temp_name, real_ofd): New static variables.
888 (ar_open): Use make_tempname and bfd_fdopenw.
889 (ar_save): Adjust to suit ar_open changes. Move stat output
890 of _WIN32 ifdef.
891 * objcopy.c: Don't include libbfd.h.
892 (copy_file): Use bfd_stat.
893
5424d7ed
L
8942021-02-02 H.J. Lu <hongjiu.lu@intel.com>
895
896 PR binutils/27281
897 * readelf.c (process_section_headers): Add 'R' and 'D' to
898 "Key to Flags:".
899 * testsuite/binutils-all/retain1a.d: Updated.
900
72a51a06
NC
9012021-01-30 Nick Clifton <nickc@redhat.com>
902
903 * README-how-to-make-a-release: Small updates after the 2.35.2
904 release.
905
cc3edc52
EZ
9062021-01-28 Eli Zaretskii <eliz@gnu.org>
907
908 PR 4356
909 * windres.c (quot): Use double quotes to protect strings on
910 Windows platforms.
911
a7ad3cb1
EZ
9122021-01-28 Eli Zaretskii <eliz@gnu.org>
913
914 PR 27252
915 * bucomm.c (get_file_size): Add code to handle /dev/null on
916 Windows systems.
917 * elfedit.c (check_file): Likewise.
918
67965ba2
NC
9192021-01-27 Nick Clifton <nickc@redhat.com>
920
921 * objcopy.c (copy_main): Remove conditional control of the calls
922 to free, simplifying the code and making it easier to detect
923 typos.
924
e37709f0
FC
9252021-01-26 Frederic Cambus <fred@statdns.com>
926
927 * objcopy.c (copy_main): Fix a double free happening when both
928 --localize-symbols and --globalize-symbols options are invoked
929 together.
930
9b351c9b
NC
9312021-01-24 Nick Clifton <nickc@redhat.com>
932
933 * README-how-to-make-a-release: Minor updates after the 2.36 release.
934
ad92f33d
AM
9352021-01-16 Alan Modra <amodra@gmail.com>
936
937 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
938
3624a6c1
AM
9392021-01-15 Alan Modra <amodra@gmail.com>
940
941 PR 26539
942 * readelf.c (uncompress_section_contents): Always call inflateEnd.
943
c14dee84
AO
9442021-01-14 Alexandre Oliva <oliva@gnu.org>
945
946 * MAINTAINERS: Update my email address.
947
5a10699f
NC
9482021-01-14 Nick Clifton <nickc@redhat.com>
949
950 * po/sv.po: Updated Swedish translation.
951
5347ed60
AM
9522021-01-13 Alan Modra <amodra@gmail.com>
953
954 * Makefile.in: Regenerate.
955 * doc/Makefile.in: Regenerate.
956
2ce40d1a
ZF
9572021-01-13 Zebediah Figura <z.figura12@gmail.com>
958
959 PR 27037
960 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
961 and before exit.
962 (i386_x64_trampoline): Add SEH annotations.
963 (struct mac): Add how_seh field.
964 (make_delay_head): If how_set field is true add SEh instructions.
965
d546b610
L
9662021-01-12 H.J. Lu <hongjiu.lu@intel.com>
967
968 PR binutils/26792
969 * configure.ac: Use GNU_MAKE_JOBSERVER.
970 * aclocal.m4: Regenerated.
971 * configure: Likewise.
972
6d104cac
NC
9732021-01-12 Nick Clifton <nickc@redhat.com>
974
975 * po/fr.po: Updated French translation.
976
83b33c6c
L
9772021-01-11 H.J. Lu <hongjiu.lu@intel.com>
978
979 PR ld/27173
980 * configure: Regenerated.
981
a8aa72b9
NC
9822021-01-11 Nick Clifton <nickc@redhat.com>
983
984 * po/pt.po: Updated Portuguese translation.
985 * po/sr.po: Updated Serbian translation.
986 * po/uk.po: Updated Ukranian translation.
987
a4966cd9
L
9882021-01-09 H.J. Lu <hongjiu.lu@intel.com>
989
990 * configure: Regenerated.
991
573fe3fb
NC
9922021-01-09 Nick Clifton <nickc@redhat.com>
993
994 * configure: Regenerate.
995 * po/binutils.pot: Regenerate.
996
055bc77a
NC
9972021-01-09 Nick Clifton <nickc@redhat.com>
998
999 * 2.36 release branch crated.
573fe3fb
NC
1000 * README-how-to-make-a-release: Add note about updating Makefiles
1001 and libtool files.
1002 * BRANCHES: Add binutils-2.36-branch.
055bc77a 1003
64307045
AM
10042021-01-09 Alan Modra <amodra@gmail.com>
1005
1006 * configure: Regenerate.
1007
f4782128
ST
10082021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1009
1010 * configure: Regenerate.
1011
d1bcae83
L
10122021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1013
1014 PR 27109
1015 * objcopy.c (copy_object): Handle section symbols for
1016 non-relocatable inputs.
1017 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1018 is_elf_unused_section_symbols.
1019 * testsuite/binutils-all/readelf.s-64: Updated.
1020 * testsuite/binutils-all/readelf.ss: Likewise.
1021 * testsuite/binutils-all/readelf.ss-64: Likewise.
1022 * testsuite/binutils-all/readelf.s-64-unused: New file.
1023 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1024 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1025 * testsuite/lib/binutils-common.exp
1026 (is_elf_unused_section_symbols): New proc.
1027
6987d5a1
RT
10282021-01-06 Reuben Thomas <rrt@sc3d.org>
1029
1030 * binutils/readelf.c: Correct grammar in comment.
1031
f9a6a8f0
AM
10322021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1033
1034 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1035 * doc/binutils.texi: Correct grammar.
1036 * readelf.c (process_version_sections): Correct spelling of auxiliary
1037 in warning.
1038 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1039
250d07de
AM
10402021-01-01 Alan Modra <amodra@gmail.com>
1041
1042 Update year range in copyright notice of all files.
1043
c2795844 1044For older changes see ChangeLog-2020
3499769a 1045\f
c2795844 1046Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1047
1048Copying and distribution of this file, with or without modification,
1049are permitted in any medium without royalty provided the copyright
1050notice and this notice are preserved.
1051
1052Local Variables:
1053mode: change-log
1054left-margin: 8
1055fill-column: 74
1056version-control: never
1057End: