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