public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/nsz/bug27072] configure: Require PI_STATIC_AND_HIDDEN for static pie
@ 2021-01-11 10:48 Szabolcs Nagy
0 siblings, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2021-01-11 10:48 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3a6ac1b38757484afdd7836da50b39744fd07ae2
commit 3a6ac1b38757484afdd7836da50b39744fd07ae2
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Fri Jan 8 10:59:42 2021 +0000
configure: Require PI_STATIC_AND_HIDDEN for static pie
The glibc static pie self relocation code relies on that local
symbols can be accessed without dynamic relocations in position
independent code.
Diff:
---
configure | 14 ++++++++++++++
configure.ac | 5 +++++
2 files changed, 19 insertions(+)
diff --git a/configure b/configure
index 6a35553805..e9d88f007c 100755
--- a/configure
+++ b/configure
@@ -6837,6 +6837,20 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5
fi
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "the target does not support static pie" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Default to PIE.
libc_cv_pie_default=yes
$as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index 43cfac9d48..aead4c44d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1846,6 +1846,11 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
AC_MSG_ERROR([linker support for --no-dynamic-linker needed])
fi
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif]])], , AC_MSG_ERROR([the target does not support static pie]))
+
# Default to PIE.
libc_cv_pie_default=yes
AC_DEFINE(ENABLE_STATIC_PIE)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/nsz/bug27072] configure: Require PI_STATIC_AND_HIDDEN for static pie
@ 2021-01-19 15:59 Szabolcs Nagy
0 siblings, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2021-01-19 15:59 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5790f6b21a661f035f83b6da92ce8af21a668a80
commit 5790f6b21a661f035f83b6da92ce8af21a668a80
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Fri Jan 8 10:59:42 2021 +0000
configure: Require PI_STATIC_AND_HIDDEN for static pie
The glibc static pie self relocation code relies on that local
symbols can be accessed without dynamic relocations in position
independent code.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diff:
---
configure | 14 ++++++++++++++
configure.ac | 5 +++++
2 files changed, 19 insertions(+)
diff --git a/configure b/configure
index 49f7b32b52..dfadfdf84d 100755
--- a/configure
+++ b/configure
@@ -6818,6 +6818,20 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5
fi
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "the architecture does not support static pie" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Default to PIE.
libc_cv_pie_default=yes
$as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index 341d4eeac2..702c98706b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1835,6 +1835,11 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
AC_MSG_ERROR([linker support for --no-dynamic-linker needed])
fi
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif]])], , AC_MSG_ERROR([the architecture does not support static pie]))
+
# Default to PIE.
libc_cv_pie_default=yes
AC_DEFINE(ENABLE_STATIC_PIE)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/nsz/bug27072] configure: Require PI_STATIC_AND_HIDDEN for static pie
@ 2021-01-18 16:15 Szabolcs Nagy
0 siblings, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2021-01-18 16:15 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c7e869002d50d6d97e1655458b34c262fcc9c01
commit 9c7e869002d50d6d97e1655458b34c262fcc9c01
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Fri Jan 8 10:59:42 2021 +0000
configure: Require PI_STATIC_AND_HIDDEN for static pie
The glibc static pie self relocation code relies on that local
symbols can be accessed without dynamic relocations in position
independent code.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diff:
---
configure | 14 ++++++++++++++
configure.ac | 5 +++++
2 files changed, 19 insertions(+)
diff --git a/configure b/configure
index 49f7b32b52..dfadfdf84d 100755
--- a/configure
+++ b/configure
@@ -6818,6 +6818,20 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5
fi
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "the architecture does not support static pie" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Default to PIE.
libc_cv_pie_default=yes
$as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index 341d4eeac2..702c98706b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1835,6 +1835,11 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
AC_MSG_ERROR([linker support for --no-dynamic-linker needed])
fi
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif]])], , AC_MSG_ERROR([the architecture does not support static pie]))
+
# Default to PIE.
libc_cv_pie_default=yes
AC_DEFINE(ENABLE_STATIC_PIE)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/nsz/bug27072] configure: Require PI_STATIC_AND_HIDDEN for static pie
@ 2021-01-14 11:12 Szabolcs Nagy
0 siblings, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2021-01-14 11:12 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=48b4bbc75a8ca1c653a507f120a4e98641088060
commit 48b4bbc75a8ca1c653a507f120a4e98641088060
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Fri Jan 8 10:59:42 2021 +0000
configure: Require PI_STATIC_AND_HIDDEN for static pie
The glibc static pie self relocation code relies on that local
symbols can be accessed without dynamic relocations in position
independent code.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diff:
---
configure | 14 ++++++++++++++
configure.ac | 5 +++++
2 files changed, 19 insertions(+)
diff --git a/configure b/configure
index 49f7b32b52..dfadfdf84d 100755
--- a/configure
+++ b/configure
@@ -6818,6 +6818,20 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5
fi
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "the architecture does not support static pie" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Default to PIE.
libc_cv_pie_default=yes
$as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index 341d4eeac2..702c98706b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1835,6 +1835,11 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
AC_MSG_ERROR([linker support for --no-dynamic-linker needed])
fi
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif]])], , AC_MSG_ERROR([the architecture does not support static pie]))
+
# Default to PIE.
libc_cv_pie_default=yes
AC_DEFINE(ENABLE_STATIC_PIE)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [glibc/nsz/bug27072] configure: Require PI_STATIC_AND_HIDDEN for static pie
@ 2021-01-12 17:18 Szabolcs Nagy
0 siblings, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2021-01-12 17:18 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5a446e7a422bc4edd49384884106383485d05c08
commit 5a446e7a422bc4edd49384884106383485d05c08
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Fri Jan 8 10:59:42 2021 +0000
configure: Require PI_STATIC_AND_HIDDEN for static pie
The glibc static pie self relocation code relies on that local
symbols can be accessed without dynamic relocations in position
independent code.
Diff:
---
configure | 14 ++++++++++++++
configure.ac | 5 +++++
2 files changed, 19 insertions(+)
diff --git a/configure b/configure
index 49f7b32b52..81fd116d87 100755
--- a/configure
+++ b/configure
@@ -6818,6 +6818,20 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5
fi
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ as_fn_error $? "the target does not support static pie" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Default to PIE.
libc_cv_pie_default=yes
$as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index 341d4eeac2..8b7c99001d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1835,6 +1835,11 @@ if test "$static_pie" = yes; then
if test "$libc_cv_no_dynamic_linker" != yes; then
AC_MSG_ERROR([linker support for --no-dynamic-linker needed])
fi
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifndef PI_STATIC_AND_HIDDEN
+# error static pie depends on PI_STATIC_AND_HIDDEN
+#endif]])], , AC_MSG_ERROR([the target does not support static pie]))
+
# Default to PIE.
libc_cv_pie_default=yes
AC_DEFINE(ENABLE_STATIC_PIE)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-01-19 15:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 10:48 [glibc/nsz/bug27072] configure: Require PI_STATIC_AND_HIDDEN for static pie Szabolcs Nagy
2021-01-12 17:18 Szabolcs Nagy
2021-01-14 11:12 Szabolcs Nagy
2021-01-18 16:15 Szabolcs Nagy
2021-01-19 15:59 Szabolcs Nagy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).