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