[llvm] [SPARC][Utilities] Add names for SPARC ELF flags in LLVM binary utilities (PR #102843)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 20:27:51 PDT 2024
================
@@ -546,6 +546,20 @@ void ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset(IO &IO,
BCase(EF_RISCV_RVE);
BCase(EF_RISCV_TSO);
break;
+ case ELF::EM_SPARC32PLUS:
+ BCase(EF_SPARC_32PLUS);
+ BCase(EF_SPARC_SUN_US1);
+ BCase(EF_SPARC_SUN_US3);
+ BCase(EF_SPARC_HAL_R1);
+ break;
+ case ELF::EM_SPARCV9:
+ BCase(EF_SPARC_SUN_US1);
+ BCase(EF_SPARC_SUN_US3);
+ BCase(EF_SPARC_HAL_R1);
+ BCaseMask(EF_SPARCV9_RMO, EF_SPARCV9_MM);
+ BCaseMask(EF_SPARCV9_PSO, EF_SPARCV9_MM);
+ BCaseMask(EF_SPARCV9_TSO, EF_SPARCV9_MM);
+ break;
----------------
koachan wrote:
EM_SPARC does not have any flags:
> The ELF header’s e_flags member holds bit flags associated with the file. SPARC defines no flags; so this member contains zero.
https://github.com/llvm/llvm-project/pull/102843
More information about the llvm-commits
mailing list