[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:38 PST 2026


================
@@ -0,0 +1,116 @@
+//===-- Implementation 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
+//
+//===----------------------------------------------------------------------===//
+#include "startup/linux/gnu_property_section.h"
+
+#include "include/llvm-libc-macros/link-macros.h"
+#include "src/__support/CPP/string_view.h"
+#include "src/__support/macros/config.h"
+#include "src/string/memory_utils/utils.h"
+
+#include <linux/elf.h>
----------------
michaelrj-google wrote:

same as in the header
```suggestion
#include "hdr/elf_proxy.h"
#include "hdr/link_macros.h"
#include "src/__support/CPP/string_view.h"
#include "src/__support/macros/config.h"
#include "src/string/memory_utils/utils.h"
```

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


More information about the libc-commits mailing list