Machine Request - 65816/65c816

176 views
Skip to first unread message

connor horman

unread,
Jan 29, 2020, 9:22:29 PM1/29/20
to Generic System V Application Binary Interface
Hello to the group,
I am working on porting ELF (via llvm) to the 65816 architecture, for various reasons.
 I was wondering if I could get an e_machine value reserved for the architecture (including the 65c816, but not 6502 or 65c02). 

Cary Coutant

unread,
Jan 30, 2020, 12:52:40 AM1/30/20
to Generic System V Application Binary Interface
> Hello to the group,
> I am working on porting ELF (via llvm) to the 65816 architecture, for various reasons.
> I was wondering if I could get an e_machine value reserved for the architecture (including the 65c816, but not 6502 or 65c02).

The e_machine registry at Xinuos appears to have been unmaintained for
a couple of years now. The last-published list (which covers values
from 0-243) is here:

http://www.sco.com/developers/gabi/latest/ch4.eheader.html

More recent allocations (with values from 244-250) are listed here:

https://groups.google.com/forum/#!topic/generic-abi/cmq1LFFpWqU

There's also an allocation for EM_CSKY (252) reported here:

https://sourceware.org/ml/binutils/2018-05/msg00242.html

If anyone knows of any more recent allocations, please let me know.

I have a proposal to move forward:

1. Leave a block of values starting from 251-300 for Xinuos to
allocate from, in case they do allocate any new values (or have
recently allocated some that haven't been published on this list).

2. Start allocating values from 301 using this mailing list.

3. I'll put together and maintain a new comprehensive list of e_machine values.

If we can get a consensus on this plan, you can use this:

EM_65816 301 65816 architecture

-cary

connor horman

unread,
Jan 30, 2020, 8:02:39 AM1/30/20
to gener...@googlegroups.com
Alright, thank you. I will await the decision. Would there be an objection to me using this value temporarily, pending the decision, as I work on porting llvm?

--
You received this message because you are subscribed to the Google Groups "Generic System V Application Binary Interface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to generic-abi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/generic-abi/CAJimCsEdz17mGgeT8L7zxw5MUTpg3U5n06_dzj6ROk6BJBXPew%40mail.gmail.com.

Ali Bahrami

unread,
Jan 30, 2020, 11:31:48 AM1/30/20
to gener...@googlegroups.com
Hi Cary,

I haven't gone back to look, but I thought that the
last time an issue like this came up, you were going to
make inquiries from Xinous about whether they'd let you
take it over. Did they ever reply?

My feeling is that we've given them more than enough time
to step up to their responsibilities and start engaging with
the ELF community again. If they're not wanting to do that,
perhaps it's time to move on without them. In that case, I
don't necessarily think we need to give them a band of
reserved allocations. We'd only make a break from them if
we were convinced that they were no longer active, in
which case, such a reservation doesn't really serve any
purpose.

My concern would be more with the legalities of taking it over,
if indeed there are any (I Am Not A Lawyer).

- Ali

Ali Bahrami

unread,
Jan 30, 2020, 11:36:52 AM1/30/20
to gener...@googlegroups.com
On 2020-01-30 06:02, connor horman wrote:
> Would there be an objection to me using this value temporarily, pending the decision, as I work on porting llvm?

Hi Connor,

No one cares, up until you start generating objects for
others to use. You could just pick any random value, and
this one is as good as any.

In fact, it makes sense to get the port well along, using a
made up number, and then request the real one once things are
solid and working. Sometimes ports don't ship, and other times,
it turns out that a new machine id wasn't really needed (it turns
out to be a variant of some existing machine).

Good luck with your project.

- Ali

Cary Coutant

unread,
Aug 18, 2020, 2:57:24 PM8/18/20
to Generic System V Application Binary Interface
Hi all,

I'm now taking care of the e_machine and os_abi registry for Xinuos.

Connor, I have assigned the value 257 for the WDC 65816 architecture.

#define EM_65816 257 /* WDC 65816/65C816 */

Could you please provide me (privately) with your contact information,
including phone number, or send it to regi...@sco.com? Your contact
info will not be published.

-cary



-cary
> --
> You received this message because you are subscribed to the Google Groups "Generic System V Application Binary Interface" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to generic-abi...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/generic-abi/c2635394-8e43-d7ef-25d1-f154a73355f4%40Oracle.COM.
Reply all
Reply to author
Forward
0 new messages