On Wed, 2005-03-16 at 16:10, Ian Lance Taylor wrote:
Julian Brown <julian@codesourcery.com> writes:
Would it be better to add a --target-arch (or something) flag to
binutils at this point? That would tidy up a previous patch of mine,
too. I don't know if any other targets have, or need, such an option.
I think the linker should support a command line option to do what
OUTPUT_ARCH does in a linker script.
I'm not convinced, but then I'm not entirely sure what OUTPUT_ARCH
does.
It appears that OUTPUT_ARCH uses bfd variant names, but the problem is
that in the past this has worked by (ab)using bits in the ELF header
which simply aren't available in the EABI. There's also a potential
disaster in this area of the exploding cross-product: the core
architecture is just one dimension in the matrix.
Perhaps the thing to do would be
to redefine the -A/--architecture option, which is only used for the
Intel i960. -A currently affects library search order, which we would
not want for the new option. However, I doubt that anybody uses the
i960 any more, and even if they do, they probably don't use the -A
option.
I'd really like to be able to just pass -march through from the
compiler. Anything solution that needs any remapping beyond a common
prefix substitution in a gcc spec file is just a disaster waiting to
happen.