[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28021] riscv: wrong double relaxation with LTO

From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/28021] riscv: wrong double relaxation with LTO
Date: Tue, 06 Jul 2021 13:49:16 +0000


--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Michael Matz <matz@sourceware.org>:


commit 235f5ef4a6b8fbdcfaea8b629f7c6a9792a789de
Author: Michael Matz <matz@suse.de>
Date:   Mon Jun 28 17:57:17 2021 +0200

    elf/riscv: Fix relaxation with aliases [PR28021]

    the fix for PR22756 only changed behaviour for hidden aliases,
    but the same situation exists for non-hidden aliases: sym_hashes[]
    can contain multiple entries pointing to the same symbol structure
    leading to relaxation adjustment to be applied twice.

    Fix this by testing for duplicates for everything that looks like it
    has a version.

    PR ld/28021

            * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any

            * testsuite/ld-riscv-elf/relax-twice.ver: New.
            * testsuite/ld-riscv-elf/relax-twice-1.s: New.
            * testsuite/ld-riscv-elf/relax-twice-2.s: New.
            * testsuite/ld-riscv-elf/ld-riscv-elf.exp
            (run_relax_twice_test): New, and call it.

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]