This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld won't complain if asked to link obj files of different arches


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]