[lld] [llvm] [RISCV] Support .note.gnu.property for enable Zicfiss and Zicfilp extension (PR #77414)

Yeting Kuo via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 09:42:37 PDT 2024


================
@@ -323,9 +323,18 @@ void GnuPropertySection::writeTo(uint8_t *buf) {
   write32(buf + 8, NT_GNU_PROPERTY_TYPE_0); // Type
   memcpy(buf + 12, "GNU", 4);               // Name string
 
-  uint32_t featureAndType = config->emachine == EM_AARCH64
-                                ? GNU_PROPERTY_AARCH64_FEATURE_1_AND
-                                : GNU_PROPERTY_X86_FEATURE_1_AND;
+  uint32_t featureAndType = 0;
+  switch (config->emachine) {
+  default:
----------------
yetingk wrote:

Also change the default statement to `EM_X86_64` ?

https://github.com/llvm/llvm-project/pull/77414


More information about the llvm-commits mailing list