[PATCH] ld/testsuite: group archives for fatpr20103
Clément Chigot
chigot@adacore.com
Fri Apr 4 06:56:20 GMT 2025
On Fri, Apr 4, 2025 at 8:54 AM Clément Chigot <chigot@adacore.com> wrote:
>
> In order for the dead symbol to be always found, archives must be
> gathered within a group.
FYI, this regression showed up when testing arm-elf or aarch64-elf
with gcc-14. I'm not sure this is the right solution thus I'll be glad
to amend if needed.
> ---
> ld/testsuite/ld-plugin/lto.exp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
> index 556bbe9beea..8d7bf5805cc 100644
> --- a/ld/testsuite/ld-plugin/lto.exp
> +++ b/ld/testsuite/ld-plugin/lto.exp
> @@ -1305,8 +1305,8 @@ if { [check_lto_fat_available] } {
> ] \
> ]
> pr20103 "-O2 -flto" "tmpdir/thinpr20103a.a tmpdir/thinpr20103b.a tmpdir/thinpr20103c.a"
> - pr20103 "-O2 -flto" "tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a"
> - pr20103 "-O2" "tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a"
> + pr20103 "-O2 -flto" "-Wl,--start-group tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a -Wl,--end-group"
> + pr20103 "-O2" "-Wl,--start-group tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a -Wl,--end-group"
>
> if { [at_least_gcc_version 4 9] } {
> run_cc_link_tests [list \
> --
> 2.34.1
>
More information about the Binutils
mailing list