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