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