@@ -62,17 +62,10 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
62
62
[
63
63
# Setup basic LDFLAGS
64
64
if test "x$TOOLCHAIN_TYPE" = xgcc; then
65
- # If this is a --hash-style=gnu system, use --hash-style=both, why?
66
- # We have previously set HAS_GNU_HASH if this is the case
67
- if test -n "$HAS_GNU_HASH"; then
68
- BASIC_LDFLAGS="-Wl,--hash-style=both"
69
- LIBJSIG_HASHSTYLE_LDFLAGS="-Wl,--hash-style=both"
70
- fi
71
-
72
65
# Add -z,defs, to forbid undefined symbols in object files.
73
66
# add -z,relro (mark relocations read only) for all libs
74
67
# add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
75
- BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
68
+ BASIC_LDFLAGS="-Wl,--hash-style=gnu -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
76
69
# Linux : remove unused code+data in link step
77
70
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
78
71
if test "x$OPENJDK_TARGET_CPU" = xs390x; then
@@ -152,8 +145,6 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
152
145
# Export some intermediate variables for compatibility
153
146
LDFLAGS_CXX_JDK="$BASIC_LDFLAGS_ONLYCXX $BASIC_LDFLAGS_ONLYCXX_JDK_ONLY $DEBUGLEVEL_LDFLAGS_JDK_ONLY"
154
147
AC_SUBST ( LDFLAGS_CXX_JDK )
155
- AC_SUBST ( LIBJSIG_HASHSTYLE_LDFLAGS )
156
- AC_SUBST ( LIBJSIG_NOEXECSTACK_LDFLAGS )
157
148
] )
158
149
159
150
# ###############################################################################
0 commit comments