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>
This commit is contained in:
H.J. Lu 2024-12-22 08:31:25 +08:00
parent d773aff467
commit bce70034b1
2 changed files with 2 additions and 0 deletions

1
configure vendored
View File

@ -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"

View 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"