]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Check PDE load address with non-empty text section
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 22 Dec 2024 00:31:25 +0000 (08:31 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 22 Dec 2024 08:16:45 +0000 (16:16 +0800)
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>
configure
configure.ac

index 60fe529392d8e34d573a9350bb2f30ad525f7fb1..285e5997c74eff7fd8bf343e18897757790edd01 100755 (executable)
--- 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"
index bcf37310dfc29c7c8ccf2baf96fe67797d63a6f7..d230635a7177795f62506901da59757353cd8907 100644 (file)
@@ -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"