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