[llvm] [llvm][ELF] Add ELF section type for embedding ELF binaries (PR #207027)

Andrew Ng via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 05:23:53 PDT 2026


================
@@ -1196,6 +1196,7 @@ enum : unsigned {
   SHT_LLVM_JT_SIZES = 0x6fff4c0d,           // LLVM jump tables sizes.
   SHT_LLVM_CFI_JUMP_TABLE = 0x6fff4c0e,     // LLVM CFI jump table.
   SHT_LLVM_CALL_GRAPH = 0x6fff4c0f,         // LLVM Call Graph Section.
+  SHT_LLVM_ELF = 0x6fff4c10,                // LLVM ELF.
----------------
nga888 wrote:

I did actually use `SHT_LLVM_EMBEDDED_ELF` to start with but then thought that the "embedded" is really implied because it's an ELF section. That's why I decided to simplify to `SHT_LLVM_ELF`. Perhaps mentioning embedding in the comment here might clarify?

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


More information about the llvm-commits mailing list