]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Move x86_64 PE changes out of bfd_perform_relocation
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
ca0e11aa
NC
12021-03-04 Nick Clifton <nickc@redhat.com>
2
3 PR 27478
4 * objdump.c (process_links): New variable.
5 (usage): Add --process-links.
6 (long_options): Likewise.
7 (dump_bfd): Stop processing once the bfd has been loaded unless
8 this is the main file or process_links has been enabled.
9 (main): Handle the process-links option.
10 * readelf.c (process_links): New variable.
11 (struct filedata): Add is_separate field.
12 (options): Add --process-links.
13 (usage): Likewise.
14 (parse_args): Likewise.
15 (process_file_header): Include the filename when dumping
16 information for separate debuginfo files.
17 (process_program_headers): Likewise.
18 (process_section_headers): Likewise.
19 (process_section_groups): Likewise.
20 (process_relocs): Likewise.
21 (process_dynamic_section): Likewise.
22 (process_version_sections): Likewise.
23 (display_lto_symtab): Likewise.
24 (process_symbol_table): Likewise.
25 (process_syminfo): Likewise.
26 (initialise_dumps_by_name): Likewise.
27 (process_section_contents): Likewise.
28 (process_notes_at): Likewise.
29 (process_notes): Likewise.
30 (open_file): Add is_separate parameter. Use to initialise the
31 is_separate field in the filedata structure.
32 (open_deug): Update call to open_file.
33 (process_object): Add processing of the contents of separate
34 debuginfo files, gated by the process_links variable.
35 (process_archive): Update call to open_file.
36 (process_file): Initialise the is_separate field in the filedata
37 structure.
38 * dwarf.c (load_separate_debug_info_file): Only report the
39 loading of a separate file if debug links are being dumped.
40 * objcopy.c (keep_section_symbols): New variable.
41 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
42 (strip_options): Add keep-section-symbols.
43 (copy_options): Likewise.
44 (copy_usage): Likewise.
45 (strip_usage): Likewise.
46 (copy_object): Keep section symbols if requested by command line
47 option.
48 (strip_main): Handle --keep-section-symbols.
49 (copy_main): Likewise.
50 * doc/binutils.texi: Document the new options.
51 * NEWS: Mention the new features.
52 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
53 Update options passed to objdump. Use diff rather than cmp to
54 compare the dumped data.
55 * testsuite/binutils-all/objdump.WK2: Update regexp.
56 * testsuite/binutils-all/objdump.WK3: Update regexp.
57 * testsuite/binutils-all/objdump.exp: Use --process-links
58 instead of --dwarf=follow-links.
59 * testsuite/binutils-all/readelf.exp (readelf_test): Include
60 readelf's output in the log when the test fails.
61 Add the -P option to the -wKis test.
62 * testsuite/binutils-all/readelf.wKis: Update expected output.
63
fd5c076a
AM
642021-03-03 Alan Modra <amodra@gmail.com>
65
66 PR 27493
67 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
68 * NEWS: Mention feature.
69
ecd65684
L
702021-03-01 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR binutils/27486
73 * dwarf.c (load_separate_debug_info): Issue warning only if
74 do_debug_links is set.
75 * testsuite/binutils-all/compress.exp: Run objdump and readelf
76 with missing debug file.
77
6a1224ec
AM
782021-03-01 Alan Modra <amodra@gmail.com>
79
80 PR 27128
81 * doc/binutils.texi: Add nm --with-symbol-versions and
82 --without-symbol-versions documentation.
83 * nm.c (with_symbol_versions): New variable.
84 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
85 (long_options): Make --with-symbol-versions entry twiddle the flag.
86 Add --without-symbol-versions.
87 (print_symname): Strip version when !with_symbol_versions. Add
88 dynamic version info under control of with_symbol_versions.
89 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
90
7fe1b138
FS
912021-02-26 Fangrui Song <maskray@google.com>
92
93 PR 27408
94 * readelf.c (quiet): New option flag.
95 (enum long_option_values): New enum to hold long option value.
96 (long_options): Add --quiet.
97 (usage): Mention --quiet.
98 (display_rel_file): If quiet is enabled, suppress "no symbols".
99 (main): Handle the new option.
100 * NEWS: Mention --quiet.
101 * docs/binutils.texi: Document --quiet.
102
0e12f6c8
TV
1032021-02-26 Tom de Vries <tdevries@suse.de>
104
105 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
106
32e4f96c
TV
1072021-02-26 Tom de Vries <tdevries@suse.de>
108
109 PR 27390
110 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
111 DW_FORM_addrx*.
112 (read_and_display_attr_value): Likewise.
113
e38332c2
NC
1142021-02-25 Nick Clifton <nickc@redhat.com>
115
116 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
117 forms.
118 (read_and_display_attr_value): Handle sup forms.
119 (display_debug_sup): New function. Displays the contents of a
120 .debug_sup section.
121 (load_debug_sup_file): New function. Loads the contents of a file
122 referenced by a .debug_sup section.
123 (check_for_and_load_links): Call load_debug_sup_file.
124 (debug_displays): Add entry for .debug_sup.
125 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
126 * readelf.c (process_section_headers): Add support for debug_sup.
127 * doc/debug.options.texi: Note that the =links option will display
128 the contents of .debug_sup sections.
129 * NEWS: Mention the new support.
130
40b02646
AM
1312021-02-25 Alan Modra <amodra@gmail.com>
132
133 PR 27456
134 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
135
9d3fcfe0
NC
1362021-02-24 Nick Clifton <nickc@redhat.com>
137
138 PR 27285
139 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
140 when adding together the section sizes.
141
c74147bb
NC
1422021-02-24 Nick Clifton <nickc@redhat.com>
143
144 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
145 build notes.
146 * readelf.c (print_gnu_build_attribute_description): Likewise.
147
c42c71a1
AM
1482021-02-24 Alan Modra <amodra@gmail.com>
149 Siddhesh Poyarekar <siddhesh@gotplt.org>
150
151 PR 27456
152 * bucomm.h (smart_rename): Update prototype.
153 * rename.c (smart_rename): Add fromfd and preserve_dates params.
154 Pass fromfd and target_stat to simple_copy. Call set_times
155 when preserve_dates.
156 (simple_copy): Accept fromfd rather than from filename. Add
157 target_stat param. Rewind fromfd rather than opening. Open
158 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
159 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
160 closing output temp file, and pass tmpfd to smart_rename.
161 * arsup.c (temp_fd): Rename from real_fd.
162 (ar_save): Dup temp_fd and pass to smart_rename.
163 * objcopy.c (strip_main, copy_main): Likewise, and pass
164 preserve_dates.
165
cca8873d
AM
1662021-02-24 Alan Modra <amodra@gmail.com>
167
168 PR 27456
169 * rename.c: Tidy throughout.
170 (smart_rename): Always copy. Remove windows specific code.
171
4d496013
AM
1722021-02-20 Alan Modra <amodra@gmail.com>
173
174 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
175 (run_dump_test): Fail if expecting errors from a file like we do
176 for error strings, if no error is seen.
177
0be51eb4
AM
1782021-02-19 Alan Modra <amodra@gmail.com>
179
180 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
181
3685de75
SP
1822021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
183
184 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
185 SMART_RENAME.
186 * arsup.c (ar_save): Likewise.
187 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
188 temporary file and adjust call to SMART_RENAME.
189 (copy_main): Likewise.
190 * rename.c [!S_ISLNK]: Remove definitions.
191 (try_preserve_permissions): Remove function.
192 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
193 rename system call only if TO does not exist.
194 * bucomm.h (smart_rename): Adjust declaration.
195
85684222
NC
1962021-02-18 Nick Clifton <nickc@redhat.com>
197
198 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
199 address that is higher than the end address.
200
b9b204b3
AM
2012021-02-17 Alan Modra <amodra@gmail.com>
202
203 * dwarf.c: Include limits.h.
204 (CHAR_BIT): Provide backup define.
205 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
206 signed overflow checking.
207 * testsuite/binutils-all/pr26548.s,
208 * testsuite/binutils-all/pr26548.d,
209 * testsuite/binutils-all/pr26548e.d: New tests.
210 * testsuite/binutils-all/readelf.exp: Run them.
211 (readelf_test): Drop unused "xfails" parameter. Update all uses.
212
e6ca1878
JB
2132021-02-16 Jan Beulich <jbeulich@suse.com>
214
215 * dwarf.c (process_debug_info): Initialize "dwo_id".
216
208599d9
AM
2172021-02-15 Alan Modra <amodra@gmail.com>
218
219 * objdump.c (load_specific_debug_section): Don't call
220 bfd_cache_section_contents. Rearrange so that
221 bfd_get_full_section_contents is not called on path where
222 bfd_simple_get_relocated_section_contents is called.
223 Don't set section->user_data.
224 (free_debug_section): Always free section->start. Don't twiddle
225 section flags.
226 * readelf.c (load_specific_debug_section): Don't set user_data.
227 * dwarf.h (struct dwarf_section): Remove use_data field.
228 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
229
1781a9d0
AM
2302021-02-15 Alan Modra <amodra@gmail.com>
231
232 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
233 * testsuite/binutils-all/objdump.exp: Likewise.
234
1944212b
AM
2352021-02-14 Alan Modra <amodra@gmail.com>
236
237 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
238 to the symbol array.
239 (slurp_dynamic_symtab): Likewise.
240 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
241
0d0a0d86
AM
2422021-02-14 Alan Modra <amodra@gmail.com>
243
244 * Makefile.in: Regenerate.
245 * doc/Makefile.in: Regenerate.
246
adeab0c5
MF
2472021-02-13 Mike Frysinger <vapier@gentoo.org>
248
249 * aclocal.m4: Regenerate.
250
c46b7066
NC
2512021-02-12 Nick Clifton <nickc@redhat.com>
252
253 * configure.ac (follow-debug-links): Add option to enable or
254 disable the following of debug links by default. Set the
255 default for the option to be 'follow'.
256 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
257 (dwarf_select_sections_by_names): Add no-follow-links option.
258 (dwarf_select_sections_by_letter): Add 'N' option.
259 * objdump.c (usage): Add conditional text describing the
260 follow links option.
261 (slurp_symtab): Ensure that there is a NULL entry at the end
262 of the symbol table.
263 (slurp_dynamic_symtab): Likewise.
264 (dump_bfd): When extending the symbol table, ensure that there
265 is still a NULL entry at the end.
266 * readelf.c (usage): Add conditional text describing the
267 follow links option.
268 * doc/binutils.texi: Update documentation for objcopy and
269 readelf.
270 * doc/debug.options.texi: Update documentation of the
271 follow-links option.
272 * config.in: Regenerate.
273 * configure: Regenerate.
274 * testsuite/binutils-all/compress.exp: Add the -WN option to
275 objdump command lines that are not expecting to follow links.
276 * testsuite/binutils-all/readelf.exp: Add the
277 --debug-dump=no-follow-links option to tests that are not
278 expecting to follow debug links.
279 * NEWS: Mention the new behaviour.
280
17e04eff
AM
2812021-02-12 Alan Modra <amodra@gmail.com>
282
283 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
284 gas or ld fails to build a testcase rather than "unresolved".
285 Report "fail" when readelf returns an error status rather than
286 "unresolved".
287 * testsuite/binutils-all/ar.exp: Likewise.
288 * testsuite/binutils-all/compress.exp: Likewise.
289 * testsuite/binutils-all/readelf.exp: Likewise.
290
8f054a7a
AM
2912021-02-12 Alan Modra <amodra@gmail.com>
292
293 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
294 "c" with "ccc" labels.
295
528a4f87
TV
2962021-02-12 Tom de Vries <tdevries@suse.de>
297
298 * dwarf.h (debug_info): Fix typo in comment.
299
95abb394
TV
3002021-02-12 Tom de Vries <tdevries@suse.de>
301
302 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
303 entries.
304
d60f7998
TV
3052021-02-12 Tom de Vries <tdevries@suse.de>
306
307 * dwarf.c (process_debug_info): Print DWO ID.
308
1cfcf300
AM
3092021-02-11 Alan Modra <amodra@gmail.com>
310
311 PR 27290
312 PR 27293
313 PR 27295
314 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
315 Use bfd_malloc_and_get_section.
316 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
317 check namesz. Return NULL if descsz is too small. Ensure
318 string table is terminated.
319 (elf32_avr_get_device_info): Formatting. Add note_size param.
320 Sanity check note.
321 (elf32_avr_dump_mem_usage): Adjust to suit.
322
d9d9d8ef
TV
3232021-02-10 Tom de Vries <tdevries@suse.de>
324
325 PR binutils/27391
326 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
327
52ff20fe
TV
3282021-02-10 Tom de Vries <tdevries@suse.de>
329
330 PR binutils/27371
331 * dwarf.c (display_debug_ranges): Filter range lists according to
332 section.
333
5f128a25
TV
3342021-02-09 Tom de Vries <tdevries@suse.de>
335
336 PR binutils/27370
337 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
338
9b87f84a
TV
3392021-02-09 Tom de Vries <tdevries@suse.de>
340
341 PR binutils/27386
342 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
343 DW_UT_split_compile.
344
a57d1773
AM
3452021-02-09 Alan Modra <amodra@gmail.com>
346
347 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
348 symbianelf.
349
de8d4203
AM
3502021-02-07 Alan Modra <amodra@gmail.com>
351
352 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
353 uninitialised on invalid input.
354
51a25252
AM
3552021-02-06 Alan Modra <amodra@gmail.com>
356
357 PR 27349
358 * rename.c (smart_rename): Test for existence and type of output
359 file with lstat.
360
e37d88e5
NC
3612021-02-05 Nick Clifton <nickc@redhat.com>
362
363 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
364
887854ba
EZ
3652021-02-05 Eli Zaretskii <eliz@gnu.org>
366
367 PR 27252
368 * elfedit.c (check_file):
369 * bucomm.c (get_file_size): Fix typos in comments.
370
c180f095
AM
3712021-02-05 Alan Modra <amodra@gmail.com>
372
373 PR 27345
374 * arsup.c (ar_save): Use stat rather than lstat.
375
95b91a04
AM
3762021-02-03 Alan Modra <amodra@gmail.com>
377
378 PR 27270
379 PR 27284
380 PR 26945
381 * ar.c: Don't include libbfd.h.
382 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
383 bfd_stat rather than fstat on iostream. Move stat and fd tests
384 outside of _WIN32 ifdef. Delete skip_stat variable.
385 * arsup.c (temp_name, real_ofd): New static variables.
386 (ar_open): Use make_tempname and bfd_fdopenw.
387 (ar_save): Adjust to suit ar_open changes. Move stat output
388 of _WIN32 ifdef.
389 * objcopy.c: Don't include libbfd.h.
390 (copy_file): Use bfd_stat.
391
5424d7ed
L
3922021-02-02 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR binutils/27281
395 * readelf.c (process_section_headers): Add 'R' and 'D' to
396 "Key to Flags:".
397 * testsuite/binutils-all/retain1a.d: Updated.
398
72a51a06
NC
3992021-01-30 Nick Clifton <nickc@redhat.com>
400
401 * README-how-to-make-a-release: Small updates after the 2.35.2
402 release.
403
cc3edc52
EZ
4042021-01-28 Eli Zaretskii <eliz@gnu.org>
405
406 PR 4356
407 * windres.c (quot): Use double quotes to protect strings on
408 Windows platforms.
409
a7ad3cb1
EZ
4102021-01-28 Eli Zaretskii <eliz@gnu.org>
411
412 PR 27252
413 * bucomm.c (get_file_size): Add code to handle /dev/null on
414 Windows systems.
415 * elfedit.c (check_file): Likewise.
416
67965ba2
NC
4172021-01-27 Nick Clifton <nickc@redhat.com>
418
419 * objcopy.c (copy_main): Remove conditional control of the calls
420 to free, simplifying the code and making it easier to detect
421 typos.
422
e37709f0
FC
4232021-01-26 Frederic Cambus <fred@statdns.com>
424
425 * objcopy.c (copy_main): Fix a double free happening when both
426 --localize-symbols and --globalize-symbols options are invoked
427 together.
428
9b351c9b
NC
4292021-01-24 Nick Clifton <nickc@redhat.com>
430
431 * README-how-to-make-a-release: Minor updates after the 2.36 release.
432
ad92f33d
AM
4332021-01-16 Alan Modra <amodra@gmail.com>
434
435 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
436
3624a6c1
AM
4372021-01-15 Alan Modra <amodra@gmail.com>
438
439 PR 26539
440 * readelf.c (uncompress_section_contents): Always call inflateEnd.
441
c14dee84
AO
4422021-01-14 Alexandre Oliva <oliva@gnu.org>
443
444 * MAINTAINERS: Update my email address.
445
5a10699f
NC
4462021-01-14 Nick Clifton <nickc@redhat.com>
447
448 * po/sv.po: Updated Swedish translation.
449
5347ed60
AM
4502021-01-13 Alan Modra <amodra@gmail.com>
451
452 * Makefile.in: Regenerate.
453 * doc/Makefile.in: Regenerate.
454
2ce40d1a
ZF
4552021-01-13 Zebediah Figura <z.figura12@gmail.com>
456
457 PR 27037
458 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
459 and before exit.
460 (i386_x64_trampoline): Add SEH annotations.
461 (struct mac): Add how_seh field.
462 (make_delay_head): If how_set field is true add SEh instructions.
463
d546b610
L
4642021-01-12 H.J. Lu <hongjiu.lu@intel.com>
465
466 PR binutils/26792
467 * configure.ac: Use GNU_MAKE_JOBSERVER.
468 * aclocal.m4: Regenerated.
469 * configure: Likewise.
470
6d104cac
NC
4712021-01-12 Nick Clifton <nickc@redhat.com>
472
473 * po/fr.po: Updated French translation.
474
83b33c6c
L
4752021-01-11 H.J. Lu <hongjiu.lu@intel.com>
476
477 PR ld/27173
478 * configure: Regenerated.
479
a8aa72b9
NC
4802021-01-11 Nick Clifton <nickc@redhat.com>
481
482 * po/pt.po: Updated Portuguese translation.
483 * po/sr.po: Updated Serbian translation.
484 * po/uk.po: Updated Ukranian translation.
485
a4966cd9
L
4862021-01-09 H.J. Lu <hongjiu.lu@intel.com>
487
488 * configure: Regenerated.
489
573fe3fb
NC
4902021-01-09 Nick Clifton <nickc@redhat.com>
491
492 * configure: Regenerate.
493 * po/binutils.pot: Regenerate.
494
055bc77a
NC
4952021-01-09 Nick Clifton <nickc@redhat.com>
496
497 * 2.36 release branch crated.
573fe3fb
NC
498 * README-how-to-make-a-release: Add note about updating Makefiles
499 and libtool files.
500 * BRANCHES: Add binutils-2.36-branch.
055bc77a 501
64307045
AM
5022021-01-09 Alan Modra <amodra@gmail.com>
503
504 * configure: Regenerate.
505
f4782128
ST
5062021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
507
508 * configure: Regenerate.
509
d1bcae83
L
5102021-01-07 H.J. Lu <hongjiu.lu@intel.com>
511
512 PR 27109
513 * objcopy.c (copy_object): Handle section symbols for
514 non-relocatable inputs.
515 * testsuite/binutils-all/readelf.exp (readelf_test): Check
516 is_elf_unused_section_symbols.
517 * testsuite/binutils-all/readelf.s-64: Updated.
518 * testsuite/binutils-all/readelf.ss: Likewise.
519 * testsuite/binutils-all/readelf.ss-64: Likewise.
520 * testsuite/binutils-all/readelf.s-64-unused: New file.
521 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
522 * testsuite/binutils-all/readelf.ss-unused: Likewise.
523 * testsuite/lib/binutils-common.exp
524 (is_elf_unused_section_symbols): New proc.
525
6987d5a1
RT
5262021-01-06 Reuben Thomas <rrt@sc3d.org>
527
528 * binutils/readelf.c: Correct grammar in comment.
529
f9a6a8f0
AM
5302021-01-01 Nicolas Boulenguez <nicolas@debian.org>
531
532 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
533 * doc/binutils.texi: Correct grammar.
534 * readelf.c (process_version_sections): Correct spelling of auxiliary
535 in warning.
536 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
537
250d07de
AM
5382021-01-01 Alan Modra <amodra@gmail.com>
539
540 Update year range in copyright notice of all files.
541
c2795844 542For older changes see ChangeLog-2020
3499769a 543\f
c2795844 544Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
545
546Copying and distribution of this file, with or without modification,
547are permitted in any medium without royalty provided the copyright
548notice and this notice are preserved.
549
550Local Variables:
551mode: change-log
552left-margin: 8
553fill-column: 74
554version-control: never
555End: