The old linker enabled --allow-shlib-undefined behaviour when the -shared option
is passed. Gold doesn't currently do that, causing various projects to not
build correctly.
The patch to fix this problem is quite trivial:
RCS file: /cvs/src/src/gold/options.cc,v
retrieving revision 1.75
diff -r1.75 options.cc
766a767,769
> if (this->shared() && !this->user_set_allow_shlib_undefined())
> this->set_allow_shlib_undefined(true);
>
I'll post it to the mailing list for approval.
--
Summary: Linking with -shared should imply --allow-shlib-
undefined
Product: binutils
Version: 2.19 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: ian at airs dot com
ReportedBy: kris dot van dot hees at oracle dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=6858
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils