Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2019 23:25:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 237068] /usr/local/bin/ld: BFD (GNU Binutils) 2.30 assertion fail elflink.c:2824
Message-ID:  <bug-237068-29464-Qb8NdlpvYy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237068-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237068-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237068

--- Comment #12 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #11)

I've reduced the link command to:

# /usr/bin/powerpc64-unknown-freebsd13.0-ld "-Bshareable" "-o"
"lib/libLTO.so.6.0.1" "lib/libLLVM-6.0.so"
/usr/bin/powerpc64-unknown-freebsd13.0-ld: BFD (GNU Binutils) 2.32 assertion
fail elflink.c:2935
/usr/bin/powerpc64-unknown-freebsd13.0-ld: BFD (GNU Binutils) 2.32 assertion
fail elflink.c:2935

The only reason for -Bsharable is that there are more messages without it,
relating to _start, __progname, and environ.

So it seems lib/libLLVM-6.0.so is sufficient context for the
BFD_ASSERT to fail.


# readelf -sW lib/libLLVM-6.0.so | grep 'get_execution_seed.*seed' | more
 12020: 0000000003c20f00     8 OBJECT  WEAK   DEFAULT   26
_ZZN4llvm7hashing6detail18get_execution_seedEvE4seed@@LLVM_6.0 (2)
 21501: 0000000003c20f08     8 OBJECT  WEAK   DEFAULT   26
_ZGVZN4llvm7hashing6detail18get_execution_seedEvE4seed@@LLVM_6.0 (2)
 68864: 0000000003c20f00     8 OBJECT  WEAK   DEFAULT   26
_ZZN4llvm7hashing6detail18get_execution_seedEvE4seed
 78345: 0000000003c20f08     8 OBJECT  WEAK   DEFAULT   26
_ZGVZN4llvm7hashing6detail18get_execution_seedEvE4seed

# readelf -sW lib/libLLVM-6.0.so | grep 'bss' | more
  6278: 0000000003c20f00     0 NOTYPE  GLOBAL DEFAULT   26
__bss_start@@LLVM_6.0 (2)
 63122: 0000000003c20f00     0 NOTYPE  GLOBAL DEFAULT   26 __bss_start

Also:

  [26] .bss              NOBITS           0000000003c20f00  03c10f00
       0000000000056010  0000000000000000  WA       0     0     8

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237068-29464-Qb8NdlpvYy>