⛏️ index : buildtools.git

author Michael Matz <matz@suse.de> 2021-09-01 13:43:37.0 -05:00:00
committer Alex von Gluck IV <kallisti5@unixzen.com> 2021-09-01 20:51:50.0 +00:00:00
commit
1673cf9c0fa660dd45292b0413481b7bb3182f5d [patch]
tree
604b206743701e0885e224c87c22446ac6e47b08
parent
cc988c8c900fc656b52493957b72358ce9fc04e3
download
1673cf9c0fa660dd45292b0413481b7bb3182f5d.tar.gz

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 <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>

Diff

 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
+++ a/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;