https://sourceware.org/bugzilla/show_bug.cgi?id=18725
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This behavior is expected. When linker first checks foo.o in
libbar.a, foo is defined in libfoo.so. Linker decides not to pull
in foo.o. Then linker pulls in xxx.o in libbar.a to resolve
reference to xxx, which leads to bar.o in libbar.a pulled in
for bar.o and results in turning foo into hidden. Linker won't
rescan libbar.a for foo. You should use
# gcc -o main main.o libbar.a libfoo.so libbar.a -Wl,-R.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils