This is an archive of the discontinued LLVM Phabricator instance.

[MC][ELF] Mark Solaris objects as ELFOSABI_SOLARIS
ClosedPublic

Authored by ro on Aug 9 2021, 1:13 AM.

Details

Summary

Prompted by D107747, it seems prudent to mark objects as ELFOSABI_SOLARIS on
Solaris.

Tested on amd64-pc-solaris2.11 and sparcv9-sun-solaris2.11.

Diff Detail

Event Timeline

ro created this revision.Aug 9 2021, 1:13 AM
ro requested review of this revision.Aug 9 2021, 1:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 1:13 AM

Needs a test. test/MC/ELF/section-gnu.s is a reference.

ro updated this revision to Diff 365967.Aug 12 2021, 4:45 AM

Add testcase.

ro added a comment.Aug 12 2021, 4:47 AM

Needs a test. test/MC/ELF/section-gnu.s is a reference.

Like the attached? Right now, we cannot do much more than check that ELFOSABI_SOLARIS is emitted for *-solaris triples.

MaskRay accepted this revision.Aug 12 2021, 4:12 PM

LGTM.

llvm/test/MC/ELF/osabi-solaris.s
2

Drop. The whole directory requires x86.

3

-triple=amd64-solaris

Use = or consistently

6

unneeded

This revision is now accepted and ready to land.Aug 12 2021, 4:12 PM
ro marked 3 inline comments as done.Aug 13 2021, 5:26 AM
ro added inline comments.
llvm/test/MC/ELF/osabi-solaris.s
2

Ah, I missed the lit.local.cfg file.

3

I've gone for ' ', but the whole directory is a mess:

-filetype: 228 x '=', 4 x ' '
-triple: 41 x '=', 223 x ' '

ro updated this revision to Diff 366252.Aug 13 2021, 5:28 AM
ro marked 2 inline comments as done.

Incorporate review comments for osabi-solaris.s.

This revision was landed with ongoing or failed builds.Aug 13 2021, 5:32 AM
This revision was automatically updated to reflect the committed changes.