This is an archive of the discontinued LLVM Phabricator instance.

lld: Add EM_IAMCU support
ClosedPublic

Authored by hjl.tools on Aug 3 2016, 11:13 AM.

Details

Reviewers
ruiu
rafael
Summary

This patch adds "-m elf_iamcu" to ldd for IAMCU psABI:

https://github.com/hjl-tools/x86-psABI/wiki/X86-psABI

Diff Detail

Repository
rL LLVM

Event Timeline

hjl.tools updated this revision to Diff 66680.Aug 3 2016, 11:13 AM
hjl.tools retitled this revision from to lld: Add EM_IAMCU support .
hjl.tools updated this object.
hjl.tools added reviewers: ruiu, rafael.
hjl.tools set the repository for this revision to rL LLVM.
hjl.tools added a project: lld.
hjl.tools added a subscriber: llvm-commits.
ruiu accepted this revision.Aug 3 2016, 11:22 AM
ruiu edited edge metadata.

LGTM

So this is this one right? https://groups.google.com/forum/#!topic/ia32-abi/cn7TM6J_TIg

Is this all you have to do to the linker ot support Intel MCU ABI?

This revision is now accepted and ready to land.Aug 3 2016, 11:22 AM
In D23126#504970, @ruiu wrote:

LGTM

Please check it in for me. Thanks.

So this is this one right? https://groups.google.com/forum/#!topic/ia32-abi/cn7TM6J_TIg

Is this all you have to do to the linker ot support Intel MCU ABI?

That is correct. In terms of linker, the only difference is EM_386 vs
EM_IAMCU. But IAMCU psABI has a different calling convention.

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r277643.