From 1673cf9c0fa660dd45292b0413481b7bb3182f5d Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 01 Sep 2021 13:43:37 -0500 Subject: [PATCH] binutils: elf/riscv: Fix relaxation with aliases [PR28021] * This is a backport of a fix in binutils master and 2.37 commit: 235f5ef4a6b8fbdcfaea8b629f7c6a9792a789de * Solves a dobuble-relaxation optimization in binutils under riscv64 Change-Id: I6a2ed520615b5e36bbb0003bf3a6a186c0aaeca1 Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4412 Reviewed-by: Alex von Gluck IV Reviewed-by: waddlesplash --- binutils/bfd/elfnn-riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binutils/bfd/elfnn-riscv.c b/binutils/bfd/elfnn-riscv.c index 098fe9e..282c846 100644 --- a/binutils/bfd/elfnn-riscv.c +++ b/binutils/bfd/elfnn-riscv.c @@ -3943,7 +3943,7 @@ foo becomes an alias for foo@BAR, and hence they need the same treatment. */ if (link_info->wrap_hash != NULL - || sym_hash->versioned == versioned_hidden) + || sym_hash->versioned != unversioned) { struct elf_link_hash_entry **cur_sym_hashes; -- gitore 0.2.2