aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-22 08:31:25 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-22 16:16:45 +0800
commitbce70034b1122d504c9fb794684f3ec288d955e6 (patch)
tree6d119dce95dd4e94d54f2c34511cf8adb0c953ab
parentd773aff467840f5ed305e40c180466e90bd88183 (diff)
downloadglibc-bce70034b1122d504c9fb794684f3ec288d955e6.zip
glibc-bce70034b1122d504c9fb794684f3ec288d955e6.tar.gz
glibc-bce70034b1122d504c9fb794684f3ec288d955e6.tar.bz2
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 <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
-rwxr-xr-xconfigure1
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 60fe529..285e599 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 bcf3731..d230635 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1899,6 +1899,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"