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