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