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