This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Updates for the LoongArch ELF psABI v2.01 revision
ClosedPublic

Authored by xen0n on Sep 25 2022, 5:19 AM.

Details

Summary

The e_flags of existing object files are all 0x3 which happens to be
compatible. From this commit on, all LoongArch objects produced with
upstream LLVM will be of object file ABI v1, which is already supported
by binutils' master branch (to be released as 2.40), and is allowed by
the same binutils version to interlink with v0 objects so the existing
distributions have time to migrate.

Diff Detail

Event Timeline

xen0n created this revision.Sep 25 2022, 5:19 AM
Herald added a project: Restricted Project. · View Herald Transcript
xen0n requested review of this revision.Sep 25 2022, 5:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 25 2022, 5:19 AM

Binutils has supported this? I don't see it in git://sourceware.org/git/binutils-gdb.git.

xen0n added a comment.Sep 25 2022, 8:34 PM

Binutils has supported this? I don't see it in git://sourceware.org/git/binutils-gdb.git.

It hasn't yet, but it's already under review. I wrote the patch with what I expect to be eventually upstreamed (the name changes etc. were originally proposed by me) but it's okay to wait until they have upstreamed their bits.

Binutils has supported this? I don't see it in git://sourceware.org/git/binutils-gdb.git.

It hasn't yet, but it's already under review. I wrote the patch with what I expect to be eventually upstreamed (the name changes etc. were originally proposed by me) but it's okay to wait until they have upstreamed their bits.

Seems the changes has been upstreamed to binutils. I will do some verification for this.

SixWeining accepted this revision.Oct 11 2022, 9:02 PM

LGTM. Cross-checked with binutils implementation. Thanks.

This revision is now accepted and ready to land.Oct 11 2022, 9:02 PM
This revision was landed with ongoing or failed builds.Oct 13 2022, 4:17 AM
This revision was automatically updated to reflect the committed changes.