diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 08:31:25 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 16:16:45 +0800 |
commit | bce70034b1122d504c9fb794684f3ec288d955e6 (patch) | |
tree | 6d119dce95dd4e94d54f2c34511cf8adb0c953ab | |
parent | d773aff467840f5ed305e40c180466e90bd88183 (diff) | |
download | glibc-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-x | configure | 1 | ||||
-rw-r--r-- | configure.ac | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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" |