[libc-commits] [libc] [libc] Add a couple of constants to elf.h. (PR #216784)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Mon Aug 17 10:27:46 PDT 2026


https://github.com/vonosmas created https://github.com/llvm/llvm-project/pull/216784

* STT_GNU_IFUNC is a GNU-specific ELF symbol type used to implement ifunc's, which is often used in parser code.
* Add EM_PPC64 denoting 64-bit PowerPC architecture (in addition to i386/x86, ARM, and RISC types we already support).

>From 4d0c500553504cfa67153439ee393a3024d9a24d Mon Sep 17 00:00:00 2001
From: Alexey Samsonov <vonosmas at gmail.com>
Date: Mon, 17 Aug 2026 17:24:34 +0000
Subject: [PATCH] [libc] Add a couple of constants to elf.h.

---
 libc/include/llvm-libc-proxy/elf_proxy.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libc/include/llvm-libc-proxy/elf_proxy.yaml b/libc/include/llvm-libc-proxy/elf_proxy.yaml
index f0b629cf7aaf9..42788f3b3f071 100644
--- a/libc/include/llvm-libc-proxy/elf_proxy.yaml
+++ b/libc/include/llvm-libc-proxy/elf_proxy.yaml
@@ -77,6 +77,8 @@ macros:
     macro_value: 0
   - macro_name: EM_386
     macro_value: 3
+  - macro_name: EM_PPC64
+    macro_value: 21
   - macro_name: EM_ARM
     macro_value: 40
   - macro_name: EM_X86_64
@@ -227,6 +229,10 @@ macros:
     macro_value: 6
   - macro_name: STT_LOOS
     macro_value: 10
+  - macro_name: STT_GNU_IFUNC
+    macro_value: 10
+    standards:
+      - gnu
   - macro_name: STT_HIOS
     macro_value: 12
   - macro_name: STT_LOPROC



More information about the libc-commits mailing list