This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] bfd/ld: handle ABI prefixes in version scripts
On Mon, 13 Dec 2010, Mike Frysinger wrote:
> i found the right place in configure.ac (there's a "target specific checks"
> section), but i dont think these gas m4 macros are useful. the version
> checking only works when the gas used is in tree, and this functionality cant
> be detected at the assembler level. my fixes are only at the linker level,
Yes, it was an example of the sort of test that exists for binutils
features and/or versions rather than something that can be directly used
as-is.
gcc/configure.ac already contains code that computes a linker version
number (gcc_cv_gld_major_version and gcc_cv_gld_minor_version). There is
also code (e.g. in libstdc++-v3/acinclude.m4) to compute a version of an
out-of-tree linker (in fact, I think there are rather too many copies of
such code in different directories that could do with some unification).
So if you want to test version numbers without any feature tests, there
should be various existing code to adapt.
--
Joseph S. Myers
joseph@codesourcery.com