[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


================
@@ -0,0 +1,92 @@
+//===-- Header file of gnu_property_section -------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+#ifndef LLVM_LIBC_STARTUP_LINUX_GNU_PROPERTY_SECTION_H
+#define LLVM_LIBC_STARTUP_LINUX_GNU_PROPERTY_SECTION_H
+
+#include "include/llvm-libc-macros/link-macros.h"
+#include "src/__support/macros/attributes.h"
+#include "src/__support/macros/config.h"
+
+#include <linux/elf.h>
+#include <stddef.h>
----------------
michaelrj-google wrote:

since you created your branch we've changed how we handle including the elf header (https://github.com/llvm/llvm-project/pull/172766)
```suggestion
#include "hdr/elf_proxy.h"
#include "hdr/link_macros.h"
#include "src/__support/macros/attributes.h"
#include "src/__support/macros/config.h"
```

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


More information about the libc-commits mailing list