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