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