From bce70034b1122d504c9fb794684f3ec288d955e6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 22 Dec 2024 08:31:25 +0800 Subject: [PATCH] elf: Check PDE load address with non-empty text section Check PDE load address with non-empty text section: .globl _start _start: .globl __start .byte 0 Signed-off-by: H.J. Lu Reviewed-by: Sam James --- configure | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/configure b/configure index 60fe529392..285e5997c7 100755 --- a/configure +++ b/configure @@ -8707,6 +8707,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 bcf37310df..d230635a71 100644 --- a/configure.ac +++ b/configure.ac @@ -1899,6 +1899,7 @@ cat > conftest.S <