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