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