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