[ros-users] Linker --as-needed
Josh Faust
jfaust at willowgarage.com
Mon Aug 9 17:32:13 UTC 2010
>
>
> Happy to hear that it works in general (would be pretty bad if it
> didn't...). I'm more concerned about whether we're currently
> specifying everything completely, or unknowingly exploiting
> overlinkage.
>
> I guess the only way to find out is to build and test everything with
> that option included.
>
>
I just did two quick tests:
1) .so that overrides a global symbol (strstr in this case)
2) .so with a global object that has a constructor/destructor
#1 worked, #2 failed (the .so was removed).
If #1 failed I'd say we can't default to it. Not sure how important #2 is,
but it's something that could definitely cause problems that would be
difficult to track down.
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100809/d995f332/attachment-0003.html>
More information about the ros-users
mailing list