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