[Bug 237068] /usr/local/bin/ld: BFD (GNU Binutils) 2.30 assertion fail elflink.c:2824
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 20 04:35:51 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237068
--- Comment #16 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Mark Millard from comment #15)
The following small source code file and the few steps
to build/link it produce the message:
# more small_link_failure.cpp
unsigned long fixed_seed_override= 0xdeadc0de;
inline unsigned long get_execution_seed()
{
const unsigned long seed_prime = 0xff51afd7ed558ccdULL;
static unsigned long seed = fixed_seed_override ? fixed_seed_override
: (unsigned long)seed_prime;
return seed;
}
unsigned long f()
{
return get_execution_seed();
}
# c++ -c small_link_failure.cpp
# rm -f small_link_failure.a
# /usr/bin/ar qc small_link_failure.a small_link_failure.o
# "/usr/bin/powerpc64-unknown-freebsd13.0-ld" \
"-Bshareable" \
"-o" "small_link_failure-1.0.so" \
"/usr/lib/crtbeginS.o" \
"--version-script"
"/wrkdirs/usr/ports/devel/llvm60/work/.build/./lib/tools/llvm-shlib/simple_version_script.map"
\
"--whole-archive" \
"small_link_failure.a" \
"--no-whole-archive" \
"-lm"
# /usr/bin/powerpc64-unknown-freebsd13.0-ld \
"-Bshareable" \
"-o" "small_link_failure.so.1.0.1" \
"small_link_failure-1.0.so"
The result is:
/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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list