PR27849, heap-buffer-overflow on readelf -w
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
5ab39075
AM
12021-05-12 Alan Modra <amodra@gmail.com>
2
3 PR 27849
4 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
5 Sanity check section size for version and padding too. Correct
6 index sanity check. Handle multiple tables in .debug_str_offsets.
7
d30182b5
HPN
82021-05-11 Hans-Peter Nilsson <hp@axis.com>
9
10 * dwarf.c (process_abbrev_set): Properly parenthesize before
11 casting to unsigned long.
12
f2f9554b
AM
132021-05-11 Alan Modra <amodra@gmail.com>
14
15 PR 27845
16 * dwarf.c (process_abbrev_set): Replace start and end parameters
17 with section, abbrev_base, abbrev_size, abbrev_offset. Update
18 all callers. Sanity check parameters correctly and emit warnings
19 here rather than..
20 (process_debug_info): ..here.
21
749c7002
TW
222021-05-10 Thomas Wolff <towo@towo.net>
23
24 PR 4356
25 PR 26865
26 PR 27594
27 * windres.c (quot): Revert previous delta. Do not use double
28 quotes when spaces are detected in options.
29 * doc/binutils.texi (windres): Remove suggestion that the
30 --preprocessor option can take arguments.
31
2d4b4986
AM
322021-05-10 Alan Modra <amodra@gmail.com>
33
34 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
35 END rather than adding amount to PTR.
36 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
37
b05a0fc7
AM
382021-05-09 Alan Modra <amodra@gmail.com>
39
40 * objcopy.c (eq_string): Delete.
41 (create_symbol_htab): Use htab_eq_string.
42
354c317e
MF
432021-05-08 Mike Frysinger <vapier@gentoo.org>
44
45 * README-how-to-make-a-release: Update html & pdf entries.
46
cf758b39
MF
472021-05-08 Mike Frysinger <vapier@gentoo.org>
48
49 * doc/Makefile.am (html-local, binutils/index.html): New targets.
50 * doc/Makefile.in: Regenerate.
51
2faf902d
MF
522021-05-08 Mike Frysinger <vapier@gentoo.org>
53
54 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
55 * doc/Makefile.in: Regenerate.
56
3ecc00ec
NC
572021-05-07 Nick Clifton <nickc@redhat.com>
58
59 * readelf.c (no_processor_specific_unwind): New function.
60 (process_unwind): Use no_processor_specific_unwind for X86
61 targets.
62
4896932e
MF
632021-05-07 Michael Forney <mforney@mforney.org>
64
65 * dwarf.c: Don't omit second operand of '?' operator.
66
bfbfa6e7
NC
672021-04-30 Nick Clifton <nickc@redhat.com>
68
69 PR 27796
70 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
71 .debug_sup section.
72
5edb8e3f
NC
732021-04-29 Nick Clifton <nickc@redhat.com>
74
75 PR 27594
76 * doc/binutils.texi (windres): Correct the description of the
77 default value of the --preprocessor argument.
78
3d64c987
NC
792021-04-27 Nick Clifton <nickc@redhat.com>
80
81 PR 27779
82 * dwarf.c (parse_gnu_debuglink): Reject empty names.
83 (parse_gnu_debugaltlink): Likewise.
84
b11b2969
CC
852021-04-22 Clément Chigot <clement.chigot@atos.net>
86
87 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
88 aux structures.
89
047c3dbf
NL
902021-04-21 Nick Lott <nick.lott@gmail.com>
91
92 PR 27672
93 * readelf.c (sym_base): New variable.
94 (enum print_mode): Add more modes.
95 (print_vma): Add suport for new modes.
96 (options): Add sym-base.
97 (usage): Add sym-base.
98 (parse_args): Add support for --sym-base.
99 (print_dynamic_symbol_size): New function.
100 (print_dynamic_symbol): Use new function.
101 * doc/binutils.texi: Document the new feature.
102 * NEWS: Mention the new feature.
103
23356397
NC
1042021-04-21 Nick Clifton <nickc@redhat.com>
105
106 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
107 Adjust expected output to allow for named section symbols.
108 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
109 Likewise.
110 * testsuite/binutils-all/readelf.s-64: Likewise.
111 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
112 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
113 * testsuite/binutils-all/readelf.ss-unused: Likewise.
114
1152021-04-21 Luo Longjun <luolongjun@huawei.com>
116
117 * readelf.c (print_dynamic_symbol): Print the section name for
118 section symbols without a name of their own.
119
aee4e85e
AK
1202021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
121
122 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
123 add him to Past Maintainers.
124 Update my email address.
125
229597a1
NC
1262021-04-19 Nick Clifton <nickc@redhat.com>
127
128 PR 21702
129 * arsup.c (ar_addmod): Enable plugin support, if available.
130
4dee4f3e
NC
1312021-04-19 Nick Clifton <nickc@redhat.com>
132
133 * rename.c: (get_stat_atime_ns): Add prototype.
134 (get_stat_mtime_ns): Add prototype.
135
ad7c4616
AM
1362021-04-16 Alan Modra <amodra@gmail.com>
137
138 PR 27725
139 * rename.c (get_stat_atime, get_stat_mtime): Make static.
140 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
141
4c79248a
PS
1422021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
143
144 PR 27725
145 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
146 (get_stat_mtime_ns): Likewise.
147
985e0264
AM
1482021-04-15 Alan Modra <amodra@gmail.com>
149
150 PR 27725
151 * configure.ac: Check for sys/time.h and utimensat. Use standard
152 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
153 members of struct stat.
154 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
155 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
156 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
157 (get_stat_atime, get_stat_mtime): Likewise.
158 (set_times): Choose first available of utimensat, utimes, utime.
159 Use above inline functions to set timespec and timeval values.
160 * configure: Regenerate.
161 * config.in: Regenerate.
162 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
163 file timestamp when --preserve-dates is used.
164
d0ecdcdd
AM
1652021-04-15 Alan Modra <amodra@gmail.com>
166
167 PR 27456
168 * rename.c (smart_rename): When TO and FROM are equal, just set
169 file timestamp.
170 * objcopy.c (strip_main, copy_main): Always call smart_rename.
171
9917b559
L
1722021-04-14 H.J. Lu <hongjiu.lu@intel.com>
173
174 PR binutils/27708
175 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
176 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
177 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
178 test.
179
6be872a4
MH
1802021-04-14 Mark Harmstone <mark@harmstone.com>
181
182 PR 27686
183 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
184 end of the structure.
185
5f47741b
FC
1862021-04-14 Frederic Cambus <fred@statdns.com>
187
188 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
189 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
190
13acb58d
AM
1912021-04-14 Alan Modra <amodra@gmail.com>
192
193 PR 27716
194 * objdump.c (show_line): Don't limit paths to PATH_MAX.
195 * readelf.c (struct filedata): Change program_interpreter from
196 a char array to a char pointer.
197 (process_program_headers): Sanity check PT_INTERP p_filesz.
198 Malloc program_interpreter using p_filesz and read directly from
199 file.
200 (process_dynamic_section): Check program_interpreter is non-NULL.
201 (free_filedata): New function, split out from..
202 (process_object): ..here.
203 (close_debug_file): Call free_filedata.
204 * sysdep.h: Don't include sys/param.h.
205 (PATH_MAX): Don't define.
206 * configure.ac: Don't check for sys/param.h.
207 * configure: Regenerate.
208
0fa29e2d
FC
2092021-04-13 Frederic Cambus <fred@statdns.com>
210
211 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
212 check for NT_NETBSD_PAX.
213
43e05cd4
AM
2142021-04-12 Alan Modra <amodra@gmail.com>
215
216 * configure.ac (--enable-checking): Add support.
217 * config.in: Regenerate.
218 * configure: Regenerate.
219
c3f72de4
AM
2202021-04-09 Alan Modra <amodra@gmail.com>
221
222 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
223 dynrelcount.
224 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
225 (disassemble_section, disassemble_data): Likewise.
226
a2e66773
AM
2272021-04-06 Alan Modra <amodra@gmail.com>
228
229 * objdump.c (objdump_symbol_at_address): Return asymbol*.
230
4db29512
AM
2312021-04-06 Alan Modra <amodra@gmail.com>
232
233 * NEWS: Mention C99 requirement.
234 * README: Likewise. Modernise examples and "Reporting bugs".
235
87b9f255
AM
2362021-04-05 Alan Modra <amodra@gmail.com>
237
238 * configure.ac: Assume long long is available. Don't test for
239 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
240 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
241 strcoll, setlocale, setmode or location of time_t. Don't check
242 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
243 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
244 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
245 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
246 locale.h, string.h and stdlib.h unconditionally. Remove various
247 fallback declarations. Assume long long is available.
248 * addr2line.c: Don't test HAVE_SETLOCALE.
249 * ar.c: Likewise.
250 * coffdump.c: Likewise.
251 * dlltool.c: Likewise.
252 * dllwrap.c: Likewise.
253 * elfedit.c: Likewise.
254 * nm.c: Likewise.
255 * objcopy.c: Likewise.
256 * objdump.c: Likewise.
257 * readelf.c: Likewise.
258 * size.c: Likewise.
259 * srconv.c: Likewise.
260 * strings.c: Likewise.
261 * sysdump.c: Likewise.
262 * windmc.c: Likewise.
263 * windres.c: Likewise.
264 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
265 * dwarf.c: Include limits.h unconditionally. Assume long long
266 is available.
267 * nm.c: Don't test HAVE_STRCOLL.
268 * readelf.c: Don't test HAVE_WCHAR_H.
269 * strings.c: Assume long long is available.
270 * syslex.l: Include string.h unconditionally.
271 * aclocal.m4: Regenerate.
272 * config.in: Regenerate.
273 * configure: Regenerate.
274 * Makefile.in: Regenerate.
275 * doc/Makefile.in: Regenerate.
276
e9b095a5
ML
2772021-04-01 Martin Liska <mliska@suse.cz>
278
279 * elfcomm.h (strneq): Remove strneq and use startswith.
280 * readelf.c (ia64_process_unwind): Likewise.
281 (process_note): Likewise.
282
3f3328b8
ML
2832021-04-01 Martin Liska <mliska@suse.cz>
284
285 * dllwrap.c: Use startswith function.
286 * objcopy.c (is_dwo_section): Likewise.
287 (handle_remove_section_option): Likewise.
288 (copy_main): Likewise.
289 * objdump.c (is_significant_symbol_name): Likewise.
290
24d127aa
ML
2912021-04-01 Martin Liska <mliska@suse.cz>
292
293 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
294 startswith.
295 (display_debug_lines_decoded): Likewise.
296 (display_debug_links): Likewise.
297 * elfcomm.c (setup_archive): Likewise.
298 * elfcomm.h (const_strneq): Likewise.
299 * readelf.c (process_section_headers): Likewise.
300 (slurp_ia64_unwind_table): Likewise.
301 (slurp_hppa_unwind_table): Likewise.
302 (decode_arm_unwind): Likewise.
303 (display_debug_section): Likewise.
304 (process_note): Likewise.
305
015dc7e1
AM
3062021-03-31 Alan Modra <amodra@gmail.com>
307
308 * sysdep.h (POISON_BFD_BOOLEAN): Define.
309 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
310 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
311 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
312 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
313 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
314 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
315 * windmc.c, * windmc.h, * windres.c, * winduni.c,
316 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
317 and TRUE with true throughout.
318
3dfb1b6d
AM
3192021-03-31 Alan Modra <amodra@gmail.com>
320
321 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
322 * dwarf.c: Likewise.
323
57ae980e
AM
3242021-03-31 Alan Modra <amodra@gmail.com>
325
326 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
327
63b4cc53
AM
3282021-03-29 Alan Modra <amodra@gmail.com>
329
330 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
331 * dwarf.c (read_and_display_attr_value): Likewise.
332 (display_debug_str_offsets): Likewise.
333 * objdump.c (dump_bfd): Likewise.
334 * readelf.c (dump_section_as_strings): Likewise.
335 (dump_section_as_bytes): Likewise.
336
1be305ff
AM
3372021-03-29 Alan Modra <amodra@gmail.com>
338
339 * objdump.c (process_links): Use type int.
340 * readelf.c (request_dump): Don't increment do_dump, set it.
341 * windint.h (target_is_bigendian): Use type bfd_boolean.
342 * windmc.c (target_is_bigendian): Likewise.
343 * windres.c (target_is_bigendian): Likewise.
344
08dedd66
ML
3452021-03-22 Martin Liska <mliska@suse.cz>
346
1be305ff
AM
347 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
348 with startswith.
08dedd66
ML
349 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
350 * objcopy.c (is_mergeable_note_section): Likewise.
351 * objdump.c (dump_dwarf_section): Likewise.
352 * prdbg.c (pr_method_type): Likewise.
353 (pr_class_baseclass): Likewise.
354 (tg_class_baseclass): Likewise.
355 * readelf.c (process_lto_symbol_tables): Likewise.
356 * stabs.c (ULLHIGH): Likewise.
357 (parse_stab_argtypes): Likewise.
358 (stab_demangle_function_name): Likewise.
359
7b9f9859
L
3602021-03-19 H.J. Lu <hongjiu.lu@intel.com>
361
362 * readelf.c (get_machine_name): Add EM_INTELGT.
363
835f2fae
NC
3642021-03-18 Nick Clifton <nickc@redhat.com>
365
366 PR 27478
367 * readelf.c (dump_section_as_strings): Mention separate filename.
368 (dump_section_as_bytes): Likewise.
369 (dump_section_as_ctf): Likewise.
370 (initialise_dumkps_byname): Only issue a warning for missing
371 sections if processing the main file.
372 (process_section_contents): Only issue a warning for unsumped
373 section numbers in the main file.
374 (initialise_dump_sects): New function. Contains code extracted
375 from ...
376 (process_object): ... here. Also call initialise_dump_sects for
377 separate files.
378
44266f36
NC
3792021-03-16 Nick Clifton <nickc@redhat.com>
380
381 PR 27534
382 * readelf.c (display_debug_section): Also retain .debug_addr
383 sections.
384
d6bfbc39
NC
3852021-03-16 Nick Clifton <nickc@redhat.com>
386
387 PR 27533
388 * readelf.c (process_section_contents): Only dump debug
389 information for separate files unless process_links is enabled.
390 (process_object): Always call process_section_contents for
391 separate info files.
392
1996d0f1
NC
3932021-03-15 Nick Clifton <nickc@redhat.com>
394
395 PR 27487
396 * nm.c (FORMAT_JUST_SYMBOLS): Define.
397 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
398 (long_options): Add just-symbols.
399 (set_output_format): Add support for just-symbols.
400 (get_print_format): Likewise.
401 (do_not_print_object_filename): New function.
402 (do_not_print_archive_filename): New function.
403 (do_not_print_archive_member): New function.
404 (do_not_print_symbol_filename): New function.
405 (just_print_symbol_name): New function.
406 (main): Handle --just-symbols.
407 * NEWS: Mention the new feature.
408 * doc/binutils.texi: Document the new feature.
409
2c1bef53
CC
4102021-03-12 Clément Chigot <clement.chigot@atos.net>
411
412 * od-xcoff.c: Replace RTB by TRL entry.
413
db6092f3
AB
4142021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
415 Andrew Burgess <andrew.burgess@embecosm.com>
416
417 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
418
b63a5e38
AB
4192021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
420 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
423
d296b736
NC
4242021-03-05 Nick Clifton <nickc@redhat.com>
425
426 PR 27387
427 * dwarf.c (display_debug_macro): Handle the displaying of
428 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
429 .debug_macro.dwo sections.
430
ca0e11aa
NC
4312021-03-04 Nick Clifton <nickc@redhat.com>
432
433 PR 27478
434 * objdump.c (process_links): New variable.
435 (usage): Add --process-links.
436 (long_options): Likewise.
437 (dump_bfd): Stop processing once the bfd has been loaded unless
438 this is the main file or process_links has been enabled.
439 (main): Handle the process-links option.
440 * readelf.c (process_links): New variable.
441 (struct filedata): Add is_separate field.
442 (options): Add --process-links.
443 (usage): Likewise.
444 (parse_args): Likewise.
445 (process_file_header): Include the filename when dumping
446 information for separate debuginfo files.
447 (process_program_headers): Likewise.
448 (process_section_headers): Likewise.
449 (process_section_groups): Likewise.
450 (process_relocs): Likewise.
451 (process_dynamic_section): Likewise.
452 (process_version_sections): Likewise.
453 (display_lto_symtab): Likewise.
454 (process_symbol_table): Likewise.
455 (process_syminfo): Likewise.
456 (initialise_dumps_by_name): Likewise.
457 (process_section_contents): Likewise.
458 (process_notes_at): Likewise.
459 (process_notes): Likewise.
460 (open_file): Add is_separate parameter. Use to initialise the
461 is_separate field in the filedata structure.
462 (open_deug): Update call to open_file.
463 (process_object): Add processing of the contents of separate
464 debuginfo files, gated by the process_links variable.
465 (process_archive): Update call to open_file.
466 (process_file): Initialise the is_separate field in the filedata
467 structure.
468 * dwarf.c (load_separate_debug_info_file): Only report the
469 loading of a separate file if debug links are being dumped.
470 * objcopy.c (keep_section_symbols): New variable.
471 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
472 (strip_options): Add keep-section-symbols.
473 (copy_options): Likewise.
474 (copy_usage): Likewise.
475 (strip_usage): Likewise.
476 (copy_object): Keep section symbols if requested by command line
477 option.
478 (strip_main): Handle --keep-section-symbols.
479 (copy_main): Likewise.
480 * doc/binutils.texi: Document the new options.
481 * NEWS: Mention the new features.
482 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
483 Update options passed to objdump. Use diff rather than cmp to
484 compare the dumped data.
485 * testsuite/binutils-all/objdump.WK2: Update regexp.
486 * testsuite/binutils-all/objdump.WK3: Update regexp.
487 * testsuite/binutils-all/objdump.exp: Use --process-links
488 instead of --dwarf=follow-links.
489 * testsuite/binutils-all/readelf.exp (readelf_test): Include
490 readelf's output in the log when the test fails.
491 Add the -P option to the -wKis test.
492 * testsuite/binutils-all/readelf.wKis: Update expected output.
493
fd5c076a
AM
4942021-03-03 Alan Modra <amodra@gmail.com>
495
496 PR 27493
497 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
498 * NEWS: Mention feature.
499
ecd65684
L
5002021-03-01 H.J. Lu <hongjiu.lu@intel.com>
501
502 PR binutils/27486
503 * dwarf.c (load_separate_debug_info): Issue warning only if
504 do_debug_links is set.
505 * testsuite/binutils-all/compress.exp: Run objdump and readelf
506 with missing debug file.
507
6a1224ec
AM
5082021-03-01 Alan Modra <amodra@gmail.com>
509
510 PR 27128
511 * doc/binutils.texi: Add nm --with-symbol-versions and
512 --without-symbol-versions documentation.
513 * nm.c (with_symbol_versions): New variable.
514 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
515 (long_options): Make --with-symbol-versions entry twiddle the flag.
516 Add --without-symbol-versions.
517 (print_symname): Strip version when !with_symbol_versions. Add
518 dynamic version info under control of with_symbol_versions.
519 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
520
7fe1b138
FS
5212021-02-26 Fangrui Song <maskray@google.com>
522
523 PR 27408
524 * readelf.c (quiet): New option flag.
525 (enum long_option_values): New enum to hold long option value.
526 (long_options): Add --quiet.
527 (usage): Mention --quiet.
528 (display_rel_file): If quiet is enabled, suppress "no symbols".
529 (main): Handle the new option.
530 * NEWS: Mention --quiet.
531 * docs/binutils.texi: Document --quiet.
532
0e12f6c8
TV
5332021-02-26 Tom de Vries <tdevries@suse.de>
534
535 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
536
32e4f96c
TV
5372021-02-26 Tom de Vries <tdevries@suse.de>
538
539 PR 27390
540 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
541 DW_FORM_addrx*.
542 (read_and_display_attr_value): Likewise.
543
e38332c2
NC
5442021-02-25 Nick Clifton <nickc@redhat.com>
545
546 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
547 forms.
548 (read_and_display_attr_value): Handle sup forms.
549 (display_debug_sup): New function. Displays the contents of a
550 .debug_sup section.
551 (load_debug_sup_file): New function. Loads the contents of a file
552 referenced by a .debug_sup section.
553 (check_for_and_load_links): Call load_debug_sup_file.
554 (debug_displays): Add entry for .debug_sup.
555 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
556 * readelf.c (process_section_headers): Add support for debug_sup.
557 * doc/debug.options.texi: Note that the =links option will display
558 the contents of .debug_sup sections.
559 * NEWS: Mention the new support.
560
40b02646
AM
5612021-02-25 Alan Modra <amodra@gmail.com>
562
563 PR 27456
564 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
565
9d3fcfe0
NC
5662021-02-24 Nick Clifton <nickc@redhat.com>
567
568 PR 27285
569 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
570 when adding together the section sizes.
571
c74147bb
NC
5722021-02-24 Nick Clifton <nickc@redhat.com>
573
574 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
575 build notes.
576 * readelf.c (print_gnu_build_attribute_description): Likewise.
577
c42c71a1
AM
5782021-02-24 Alan Modra <amodra@gmail.com>
579 Siddhesh Poyarekar <siddhesh@gotplt.org>
580
581 PR 27456
582 * bucomm.h (smart_rename): Update prototype.
583 * rename.c (smart_rename): Add fromfd and preserve_dates params.
584 Pass fromfd and target_stat to simple_copy. Call set_times
585 when preserve_dates.
586 (simple_copy): Accept fromfd rather than from filename. Add
587 target_stat param. Rewind fromfd rather than opening. Open
588 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
589 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
590 closing output temp file, and pass tmpfd to smart_rename.
591 * arsup.c (temp_fd): Rename from real_fd.
592 (ar_save): Dup temp_fd and pass to smart_rename.
593 * objcopy.c (strip_main, copy_main): Likewise, and pass
594 preserve_dates.
595
cca8873d
AM
5962021-02-24 Alan Modra <amodra@gmail.com>
597
598 PR 27456
599 * rename.c: Tidy throughout.
600 (smart_rename): Always copy. Remove windows specific code.
601
4d496013
AM
6022021-02-20 Alan Modra <amodra@gmail.com>
603
604 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
605 (run_dump_test): Fail if expecting errors from a file like we do
606 for error strings, if no error is seen.
607
0be51eb4
AM
6082021-02-19 Alan Modra <amodra@gmail.com>
609
610 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
611
3685de75
SP
6122021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
613
614 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
615 SMART_RENAME.
616 * arsup.c (ar_save): Likewise.
617 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
618 temporary file and adjust call to SMART_RENAME.
619 (copy_main): Likewise.
620 * rename.c [!S_ISLNK]: Remove definitions.
621 (try_preserve_permissions): Remove function.
622 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
623 rename system call only if TO does not exist.
624 * bucomm.h (smart_rename): Adjust declaration.
625
85684222
NC
6262021-02-18 Nick Clifton <nickc@redhat.com>
627
628 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
629 address that is higher than the end address.
630
b9b204b3
AM
6312021-02-17 Alan Modra <amodra@gmail.com>
632
633 * dwarf.c: Include limits.h.
634 (CHAR_BIT): Provide backup define.
635 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
636 signed overflow checking.
637 * testsuite/binutils-all/pr26548.s,
638 * testsuite/binutils-all/pr26548.d,
639 * testsuite/binutils-all/pr26548e.d: New tests.
640 * testsuite/binutils-all/readelf.exp: Run them.
641 (readelf_test): Drop unused "xfails" parameter. Update all uses.
642
e6ca1878
JB
6432021-02-16 Jan Beulich <jbeulich@suse.com>
644
645 * dwarf.c (process_debug_info): Initialize "dwo_id".
646
208599d9
AM
6472021-02-15 Alan Modra <amodra@gmail.com>
648
649 * objdump.c (load_specific_debug_section): Don't call
650 bfd_cache_section_contents. Rearrange so that
651 bfd_get_full_section_contents is not called on path where
652 bfd_simple_get_relocated_section_contents is called.
653 Don't set section->user_data.
654 (free_debug_section): Always free section->start. Don't twiddle
655 section flags.
656 * readelf.c (load_specific_debug_section): Don't set user_data.
657 * dwarf.h (struct dwarf_section): Remove use_data field.
658 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
659
1781a9d0
AM
6602021-02-15 Alan Modra <amodra@gmail.com>
661
662 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
663 * testsuite/binutils-all/objdump.exp: Likewise.
664
1944212b
AM
6652021-02-14 Alan Modra <amodra@gmail.com>
666
667 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
668 to the symbol array.
669 (slurp_dynamic_symtab): Likewise.
670 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
671
0d0a0d86
AM
6722021-02-14 Alan Modra <amodra@gmail.com>
673
674 * Makefile.in: Regenerate.
675 * doc/Makefile.in: Regenerate.
676
adeab0c5
MF
6772021-02-13 Mike Frysinger <vapier@gentoo.org>
678
679 * aclocal.m4: Regenerate.
680
c46b7066
NC
6812021-02-12 Nick Clifton <nickc@redhat.com>
682
683 * configure.ac (follow-debug-links): Add option to enable or
684 disable the following of debug links by default. Set the
685 default for the option to be 'follow'.
686 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
687 (dwarf_select_sections_by_names): Add no-follow-links option.
688 (dwarf_select_sections_by_letter): Add 'N' option.
689 * objdump.c (usage): Add conditional text describing the
690 follow links option.
691 (slurp_symtab): Ensure that there is a NULL entry at the end
692 of the symbol table.
693 (slurp_dynamic_symtab): Likewise.
694 (dump_bfd): When extending the symbol table, ensure that there
695 is still a NULL entry at the end.
696 * readelf.c (usage): Add conditional text describing the
697 follow links option.
698 * doc/binutils.texi: Update documentation for objcopy and
699 readelf.
700 * doc/debug.options.texi: Update documentation of the
701 follow-links option.
702 * config.in: Regenerate.
703 * configure: Regenerate.
704 * testsuite/binutils-all/compress.exp: Add the -WN option to
705 objdump command lines that are not expecting to follow links.
706 * testsuite/binutils-all/readelf.exp: Add the
707 --debug-dump=no-follow-links option to tests that are not
708 expecting to follow debug links.
709 * NEWS: Mention the new behaviour.
710
17e04eff
AM
7112021-02-12 Alan Modra <amodra@gmail.com>
712
713 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
714 gas or ld fails to build a testcase rather than "unresolved".
715 Report "fail" when readelf returns an error status rather than
716 "unresolved".
717 * testsuite/binutils-all/ar.exp: Likewise.
718 * testsuite/binutils-all/compress.exp: Likewise.
719 * testsuite/binutils-all/readelf.exp: Likewise.
720
8f054a7a
AM
7212021-02-12 Alan Modra <amodra@gmail.com>
722
723 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
724 "c" with "ccc" labels.
725
528a4f87
TV
7262021-02-12 Tom de Vries <tdevries@suse.de>
727
728 * dwarf.h (debug_info): Fix typo in comment.
729
95abb394
TV
7302021-02-12 Tom de Vries <tdevries@suse.de>
731
732 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
733 entries.
734
d60f7998
TV
7352021-02-12 Tom de Vries <tdevries@suse.de>
736
737 * dwarf.c (process_debug_info): Print DWO ID.
738
1cfcf300
AM
7392021-02-11 Alan Modra <amodra@gmail.com>
740
741 PR 27290
742 PR 27293
743 PR 27295
744 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
745 Use bfd_malloc_and_get_section.
746 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
747 check namesz. Return NULL if descsz is too small. Ensure
748 string table is terminated.
749 (elf32_avr_get_device_info): Formatting. Add note_size param.
750 Sanity check note.
751 (elf32_avr_dump_mem_usage): Adjust to suit.
752
d9d9d8ef
TV
7532021-02-10 Tom de Vries <tdevries@suse.de>
754
755 PR binutils/27391
756 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
757
52ff20fe
TV
7582021-02-10 Tom de Vries <tdevries@suse.de>
759
760 PR binutils/27371
761 * dwarf.c (display_debug_ranges): Filter range lists according to
762 section.
763
5f128a25
TV
7642021-02-09 Tom de Vries <tdevries@suse.de>
765
766 PR binutils/27370
767 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
768
9b87f84a
TV
7692021-02-09 Tom de Vries <tdevries@suse.de>
770
771 PR binutils/27386
772 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
773 DW_UT_split_compile.
774
a57d1773
AM
7752021-02-09 Alan Modra <amodra@gmail.com>
776
777 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
778 symbianelf.
779
de8d4203
AM
7802021-02-07 Alan Modra <amodra@gmail.com>
781
782 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
783 uninitialised on invalid input.
784
51a25252
AM
7852021-02-06 Alan Modra <amodra@gmail.com>
786
787 PR 27349
788 * rename.c (smart_rename): Test for existence and type of output
789 file with lstat.
790
e37d88e5
NC
7912021-02-05 Nick Clifton <nickc@redhat.com>
792
793 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
794
887854ba
EZ
7952021-02-05 Eli Zaretskii <eliz@gnu.org>
796
797 PR 27252
798 * elfedit.c (check_file):
799 * bucomm.c (get_file_size): Fix typos in comments.
800
c180f095
AM
8012021-02-05 Alan Modra <amodra@gmail.com>
802
803 PR 27345
804 * arsup.c (ar_save): Use stat rather than lstat.
805
95b91a04
AM
8062021-02-03 Alan Modra <amodra@gmail.com>
807
808 PR 27270
809 PR 27284
810 PR 26945
811 * ar.c: Don't include libbfd.h.
812 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
813 bfd_stat rather than fstat on iostream. Move stat and fd tests
814 outside of _WIN32 ifdef. Delete skip_stat variable.
815 * arsup.c (temp_name, real_ofd): New static variables.
816 (ar_open): Use make_tempname and bfd_fdopenw.
817 (ar_save): Adjust to suit ar_open changes. Move stat output
818 of _WIN32 ifdef.
819 * objcopy.c: Don't include libbfd.h.
820 (copy_file): Use bfd_stat.
821
5424d7ed
L
8222021-02-02 H.J. Lu <hongjiu.lu@intel.com>
823
824 PR binutils/27281
825 * readelf.c (process_section_headers): Add 'R' and 'D' to
826 "Key to Flags:".
827 * testsuite/binutils-all/retain1a.d: Updated.
828
72a51a06
NC
8292021-01-30 Nick Clifton <nickc@redhat.com>
830
831 * README-how-to-make-a-release: Small updates after the 2.35.2
832 release.
833
cc3edc52
EZ
8342021-01-28 Eli Zaretskii <eliz@gnu.org>
835
836 PR 4356
837 * windres.c (quot): Use double quotes to protect strings on
838 Windows platforms.
839
a7ad3cb1
EZ
8402021-01-28 Eli Zaretskii <eliz@gnu.org>
841
842 PR 27252
843 * bucomm.c (get_file_size): Add code to handle /dev/null on
844 Windows systems.
845 * elfedit.c (check_file): Likewise.
846
67965ba2
NC
8472021-01-27 Nick Clifton <nickc@redhat.com>
848
849 * objcopy.c (copy_main): Remove conditional control of the calls
850 to free, simplifying the code and making it easier to detect
851 typos.
852
e37709f0
FC
8532021-01-26 Frederic Cambus <fred@statdns.com>
854
855 * objcopy.c (copy_main): Fix a double free happening when both
856 --localize-symbols and --globalize-symbols options are invoked
857 together.
858
9b351c9b
NC
8592021-01-24 Nick Clifton <nickc@redhat.com>
860
861 * README-how-to-make-a-release: Minor updates after the 2.36 release.
862
ad92f33d
AM
8632021-01-16 Alan Modra <amodra@gmail.com>
864
865 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
866
3624a6c1
AM
8672021-01-15 Alan Modra <amodra@gmail.com>
868
869 PR 26539
870 * readelf.c (uncompress_section_contents): Always call inflateEnd.
871
c14dee84
AO
8722021-01-14 Alexandre Oliva <oliva@gnu.org>
873
874 * MAINTAINERS: Update my email address.
875
5a10699f
NC
8762021-01-14 Nick Clifton <nickc@redhat.com>
877
878 * po/sv.po: Updated Swedish translation.
879
5347ed60
AM
8802021-01-13 Alan Modra <amodra@gmail.com>
881
882 * Makefile.in: Regenerate.
883 * doc/Makefile.in: Regenerate.
884
2ce40d1a
ZF
8852021-01-13 Zebediah Figura <z.figura12@gmail.com>
886
887 PR 27037
888 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
889 and before exit.
890 (i386_x64_trampoline): Add SEH annotations.
891 (struct mac): Add how_seh field.
892 (make_delay_head): If how_set field is true add SEh instructions.
893
d546b610
L
8942021-01-12 H.J. Lu <hongjiu.lu@intel.com>
895
896 PR binutils/26792
897 * configure.ac: Use GNU_MAKE_JOBSERVER.
898 * aclocal.m4: Regenerated.
899 * configure: Likewise.
900
6d104cac
NC
9012021-01-12 Nick Clifton <nickc@redhat.com>
902
903 * po/fr.po: Updated French translation.
904
83b33c6c
L
9052021-01-11 H.J. Lu <hongjiu.lu@intel.com>
906
907 PR ld/27173
908 * configure: Regenerated.
909
a8aa72b9
NC
9102021-01-11 Nick Clifton <nickc@redhat.com>
911
912 * po/pt.po: Updated Portuguese translation.
913 * po/sr.po: Updated Serbian translation.
914 * po/uk.po: Updated Ukranian translation.
915
a4966cd9
L
9162021-01-09 H.J. Lu <hongjiu.lu@intel.com>
917
918 * configure: Regenerated.
919
573fe3fb
NC
9202021-01-09 Nick Clifton <nickc@redhat.com>
921
922 * configure: Regenerate.
923 * po/binutils.pot: Regenerate.
924
055bc77a
NC
9252021-01-09 Nick Clifton <nickc@redhat.com>
926
927 * 2.36 release branch crated.
573fe3fb
NC
928 * README-how-to-make-a-release: Add note about updating Makefiles
929 and libtool files.
930 * BRANCHES: Add binutils-2.36-branch.
055bc77a 931
64307045
AM
9322021-01-09 Alan Modra <amodra@gmail.com>
933
934 * configure: Regenerate.
935
f4782128
ST
9362021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
937
938 * configure: Regenerate.
939
d1bcae83
L
9402021-01-07 H.J. Lu <hongjiu.lu@intel.com>
941
942 PR 27109
943 * objcopy.c (copy_object): Handle section symbols for
944 non-relocatable inputs.
945 * testsuite/binutils-all/readelf.exp (readelf_test): Check
946 is_elf_unused_section_symbols.
947 * testsuite/binutils-all/readelf.s-64: Updated.
948 * testsuite/binutils-all/readelf.ss: Likewise.
949 * testsuite/binutils-all/readelf.ss-64: Likewise.
950 * testsuite/binutils-all/readelf.s-64-unused: New file.
951 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
952 * testsuite/binutils-all/readelf.ss-unused: Likewise.
953 * testsuite/lib/binutils-common.exp
954 (is_elf_unused_section_symbols): New proc.
955
6987d5a1
RT
9562021-01-06 Reuben Thomas <rrt@sc3d.org>
957
958 * binutils/readelf.c: Correct grammar in comment.
959
f9a6a8f0
AM
9602021-01-01 Nicolas Boulenguez <nicolas@debian.org>
961
962 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
963 * doc/binutils.texi: Correct grammar.
964 * readelf.c (process_version_sections): Correct spelling of auxiliary
965 in warning.
966 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
967
250d07de
AM
9682021-01-01 Alan Modra <amodra@gmail.com>
969
970 Update year range in copyright notice of all files.
971
c2795844 972For older changes see ChangeLog-2020
3499769a 973\f
c2795844 974Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
975
976Copying and distribution of this file, with or without modification,
977are permitted in any medium without royalty provided the copyright
978notice and this notice are preserved.
979
980Local Variables:
981mode: change-log
982left-margin: 8
983fill-column: 74
984version-control: never
985End:
This page took 0.324693 seconds and 4 git commands to generate.