ld won't complain if asked to link obj files of different arches
Doug Evans
dje@transmeta.com
Sat Dec 28 08:17:00 GMT 2002
Nick Clifton writes:
> How can an x86 object file and an mn10300 object file work in the same
> executable ?
Trivially.
Depending on which host the "real" program is run on, the other
architecture's object file may be treated as data.
It may even be data. Imagine machine generating a bunch of data
and imagine the data being used in multiple programs, some
which run on one architecture and some which run on the other.
Sorry I'm coming into this late. Catching up on old mail.
More information about the Binutils
mailing list