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