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