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