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