Skip to content

Conversation

@quic-areg
Copy link
Contributor

These versions are not supported by upstream LLVM but are needed to add support in the eld linker.

@llvmbot
Copy link
Member

llvmbot commented Oct 15, 2025

@llvm/pr-subscribers-objectyaml

@llvm/pr-subscribers-llvm-binary-utilities

Author: None (quic-areg)

Changes

These versions are not supported by upstream LLVM but are needed to add support in the eld linker.


Full diff: https://github.com/llvm/llvm-project/pull/163631.diff

1 Files Affected:

  • (modified) llvm/include/llvm/BinaryFormat/ELF.h (+2)
diff --git a/llvm/include/llvm/BinaryFormat/ELF.h b/llvm/include/llvm/BinaryFormat/ELF.h
index e619b186dfe3d..8d0dc64199ebf 100644
--- a/llvm/include/llvm/BinaryFormat/ELF.h
+++ b/llvm/include/llvm/BinaryFormat/ELF.h
@@ -647,6 +647,7 @@ enum {
   EF_HEXAGON_ISA_V85 = 0x00000085,  // Hexagon V85 ISA
   EF_HEXAGON_ISA_V87 = 0x00000087,  // Hexagon V87 ISA
   EF_HEXAGON_ISA_V89 = 0x00000089,  // Hexagon V89 ISA
+  EF_HEXAGON_ISA_V91 = 0x00000091,  // Hexagon V91 ISA
   EF_HEXAGON_ISA = 0x000003ff,      // Hexagon V.. ISA
 
   // Tiny core flag, bit[15]
@@ -680,6 +681,7 @@ enum {
   EF_HEXAGON_MACH_V85 = EF_HEXAGON_ISA_V85,      // Hexagon V85
   EF_HEXAGON_MACH_V87 = EF_HEXAGON_ISA_V87,      // Hexagon V87
   EF_HEXAGON_MACH_V89 = EF_HEXAGON_ISA_V89,      // Hexagon V89
+  EF_HEXAGON_MACH_V91 = EF_HEXAGON_ISA_V91,      // Hexagon V91
 
   EF_HEXAGON_MACH = 0x0000ffff, // Hexagon V..
 };

Copy link
Member

@androm3da androm3da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make corresponding changes in ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset() in llvm/lib/ObjectYAML/ELFYAML.cpp?

@quic-areg
Copy link
Contributor Author

Can you make corresponding changes in ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset() in llvm/lib/ObjectYAML/ELFYAML.cpp?

#163824

These versions are not supported by upstream LLVM but are needed
to add support in the eld linker.
@quic-areg quic-areg merged commit 309fc11 into llvm:main Oct 16, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants