[PATCH] elf: Check PDE load address with non-empty text section

H.J. Lu hjl.tools@gmail.com
Sun Dec 22 00:31:25 GMT 2024


Check PDE load address with non-empty text section:

.globl _start
_start:
.globl __start
	.byte 0

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
 configure    | 1 +
 configure.ac | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configure b/configure
index 9bcf62dca5..0e42f21926 100755
--- a/configure
+++ b/configure
@@ -8122,6 +8122,7 @@ else case e in #(
 _start:
 .globl __start
 __start:
+	.byte 0
 EOF
 if test $libc_cv_cc_pie_default = yes; then
   pde_ld_flags="-no-pie"
diff --git a/configure.ac b/configure.ac
index 895bd5267d..02339a0a4c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1774,6 +1774,7 @@ cat > conftest.S <<EOF
 _start:
 .globl __start
 __start:
+	.byte 0
 EOF
 if test $libc_cv_cc_pie_default = yes; then
   pde_ld_flags="-no-pie"
-- 
2.47.1



More information about the Libc-alpha mailing list