diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-07-30 08:53:11 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-07-30 17:45:38 -0700 |
commit | 8e885fece150ee97e5b0e78363e7fe9888ae9c29 (patch) | |
tree | 0bedc5a9060d6f3406328bc463fc79ae8aed89cd /sim/testsuite/d10v/hello.s | |
parent | 9af083a959a03ef068e1b7869263dddb4fb913c3 (diff) | |
download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 |
The target_defaulted field in BFD is set to true if the target isn't
specified. After
commit 717a38e9a02109fcbcb18bb2ec3aa251e2ad0a0d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun May 4 05:12:46 2025 +0800
strip: Add GCC LTO IR support
the target is set to "plugin" if BFD supports plugin when the target
isn't specified nor default. Update strip to check the input target,
instead of the target_defaulted field in input BFD.
PR binutils/33230
* objcopy.c (copy_object): Add a bool argument, target_defaulted,
to indicate if the input target isn't specified nor default.
Check it instead of ibfd->target_defaulted.
(copy_archive): Add a bool argument, target_defaulted, and pass
it to copy_object.
(copy_file): Set target_defaulted to true if the input target
isn't specified and pass it to copy_archive and copy_object.
* testsuite/binutils-all/x86-64/pr33230.obj.bz2: New file.
* testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/33230
tests.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sim/testsuite/d10v/hello.s')
0 files changed, 0 insertions, 0 deletions