Question on ld and --exclude-libs
Ian Lance Taylor
iant@google.com
Tue Sep 13 16:31:00 GMT 2011
Jeffrey Walton <noloader@gmail.com> writes:
> From ld/ChangeLog-0203, it appears --exclude-libs first appeared
> (Smith's 05/2002 comments).
>
> In ld/ChangeLog-2004, it appears --exclude-libs was tuned (and the PE
> target was removed) (Jacobowitz's 10/2004 comments).
>
> Conservatively, I believe that makes --exclude-libs available in Binutils 2.12.
The binutils 2.12 release was branched in February 2002.
The May 2002 patch added --exclude-libs only for PE targets. The
October 2004 patch added --exclude-libs for ELF targets. The October
2004 patch first appeared in the binutils 2.16 release.
> Question: FreeBSD's ld is 2.15, so it should contain --exclude-libs.
> Can anyone pinpoint where I went wrong?
That's where you went wrong. You need at least 2.16 for ELF support for
--exclude-libs.
Ian
More information about the Binutils
mailing list