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