[PATCH] D107748: [MC][ELF] Mark Solaris objects as ELFOSABI_SOLARIS
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 9 01:13:02 PDT 2021
ro created this revision.
ro added a reviewer: MaskRay.
Herald added subscribers: fedor.sergeev, jyknight.
ro requested review of this revision.
Herald added a project: LLVM.
Prompted by D107747 <https://reviews.llvm.org/D107747>, it seems prudent to mark objects as `ELFOSABI_SOLARIS` on
Solaris.
Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107748
Files:
llvm/include/llvm/MC/MCELFObjectWriter.h
Index: llvm/include/llvm/MC/MCELFObjectWriter.h
===================================================================
--- llvm/include/llvm/MC/MCELFObjectWriter.h
+++ llvm/include/llvm/MC/MCELFObjectWriter.h
@@ -78,6 +78,8 @@
case Triple::PS4:
case Triple::FreeBSD:
return ELF::ELFOSABI_FREEBSD;
+ case Triple::Solaris:
+ return ELF::ELFOSABI_SOLARIS;
default:
return ELF::ELFOSABI_NONE;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107748.365120.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210809/509bbc5b/attachment.bin>
More information about the llvm-commits
mailing list