Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Mar 2019 22:30:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 236141] LLD (unlike BFD) ignores unresolved references in libraries for indirect linking
Message-ID:  <bug-236141-29464-CLqSwg1CnY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236141-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236141-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=3D236141

--- Comment #1 from Jan Beich <jbeich@FreeBSD.org> ---
Oops, I forgot to insert a unresolved reference into the binary. Notice LLD
accepts what rtld won't.

$ cat b.c
void bar();
int main() { bar();}

$ cc b.c a.so
$ LD_LIBRARY_PATH=3D. ./a.out
ld-elf.so.1: ./a.so: Undefined symbol "foo"

--=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-236141-29464-CLqSwg1CnY>