Subject: Identifying m68010 ELF executables
To: None <tech-toolchain@netbsd.org>
From: Matthew Fredette <fredette@MIT.EDU>
List: tech-toolchain
Date: 06/30/2001 10:41:28
Hi.  How should we identify m68010, as opposed to m68020+, ELF
executables?  I wrote registry@sco.com to request a new e_machine
identifier, here's the response I got:

------- Forwarded Message

It seems to me that allocating a new EM_* for a restricted
version of the 68000 CPU family is overkill.  The great
majority of tools that operate today on EM_68K ELF files
will work just as expected on these new ones, but most
likely would not recognize that they *could* work just
fine because the e_machine value would be unknown.

For minor variations such as this, it would seem to me
to be more appropriate to designate a e_flags bit that
says "68010 compatible contents" or the like.

For what it's worth, we haven't felt the need to have
any such distinctions made for the different x86 CPUs,
even though there are bunches of instructions accepted
by the newer versions that are would not be understood
by an actual 80386 CPU.

- -- 
Dave Prosser	dfp@sco.com	(908)790-2358	Caldera, Murray Hill, NJ

------- End of Forwarded Message

Seems reasonable, except I suspect the post-386 x86 instructions are
less popular than the post-010 68k instructions.

Anyways, what do we want to do?

Matt

--
Matt Fredette
http://mit.edu/fredette/www