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