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