gold patch committed to 2.20 branch: --no-add-needed
Ian Lance Taylor
iant@google.com
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.
Ian
2010-01-13 Ian Lance Taylor <iant@google.com>
Bring over from mainline:
2010-01-04 Ian Lance Taylor <iant@google.com>
PR 10980
* 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...
Name: foo.patch
Type: text/x-diff
Size: 4158 bytes
Desc: --no-add-needed
URL: <https://sourceware.org/pipermail/binutils/attachments/20100113/07fabbe7/attachment.bin>
More information about the Binutils
mailing list