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