[libc-commits] [libc] [libc][linux] add support to parse PT_GNU_PROPERTY (PR #174772)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Jan 13 14:46:37 PST 2026
================
@@ -117,6 +119,9 @@ static TLSDescriptor tls;
base = reinterpret_cast<ptrdiff_t>(_DYNAMIC) - phdr.p_vaddr;
if (phdr.p_type == PT_TLS)
tls_phdr = &phdr;
+ if (phdr.p_type == PT_GNU_PROPERTY) {
----------------
michaelrj-google wrote:
it looks like `PT_GNU_PROPERTY` got missed when setting up the elf header. You'll need to add it to [`libc/include/elf.yaml`](https://github.com/llvm/llvm-project/blob/main/libc/include/elf.yaml)
https://github.com/llvm/llvm-project/pull/174772
More information about the libc-commits
mailing list