gold patch committed to 2.20 branch: --no-add-needed
Ian Lance Taylor
Wed Jan 13 16:21:00 GMT 2010
One way to make sure that a program links with both GNU ld and gold is
to use the --no-add-needed option. That will make GNU ld avoid
looking in indirectly referenced shared libraries, as gold always
does. However, binutils 2.20 has the annoyance that gold does not
support the --no-add-needed option. I copied this patch from mainline
to 2.20 branch to avoid that annoyance.
2010-01-13 Ian Lance Taylor <email@example.com>
Bring over from mainline:
2010-01-04 Ian Lance Taylor <firstname.lastname@example.org>
* options.h (class General_options): Add --add-needed and
--copy-dt-needed-entries. Tweak --as-needed help entry.
* object.cc (Input_objects::check_dynamic_dependencies): Give an
error if --copy-dt-needed-entries aka --add-needed is used and
would cause a change in behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4158 bytes
More information about the Binutils