[PATCH] skipping of incompatible libraries in the search path
Ian Lance Taylor
ian@zembu.com
Fri Jul 9 22:54:00 GMT 1999
Date: Mon, 5 Jul 1999 18:37:46 +0200
From: Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
This is a patch for how I think the skip on mismatch discussion ended.
It makes ld skip incompatible libraries unconditionally, but lets the user
know about it whenever it happens. If the user wants to force linking an
incompatible library in, he has to request it by supplying full path to the
library.
1999-07-05 Jakub Jelinek <jj@ultra.linux.cz>
* ld/ldfile.c (ldfile_open_file_search): Skip libraries made for
incompatible architectures in the search path. Let the user know
about any such skips.
Thanks for sending this patch.
I wasn't particularly happy with the implementation, so I changed it
to do the test in ldfile_try_open_bfd instead (that is, I reverted the
code that Richard checked in, and checked in a different patch).
Checking in ldfile_try_open_bfd should work for shared libraries as
well as for static libraries--I can't see any reason why shared
libraries should behave differently. I also changed the patch so that
it only checks the first object in a static library-- because of the
way that archive maps work, I don't see any reliable way to use an
archive which has objects of incompatible architecture anyhow.
Please let me know if I messed up the changes.
Ian
More information about the Binutils
mailing list