@@ -66,7 +66,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
66
66
# Add -z,defs, to forbid undefined symbols in object files.
67
67
# add -z,relro (mark relocations read only) for all libs
68
68
# add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
69
- BASIC_LDFLAGS="-Wl,--hash-style=gnu -Wl,- z,defs -Wl,-z,relro -Wl,-z,now"
69
+ BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
70
70
# Linux : remove unused code+data in link step
71
71
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
72
72
if test "x$OPENJDK_TARGET_CPU" = xs390x; then
@@ -172,6 +172,16 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_CPU_DEP],
172
172
$1 _CPU_LDFLAGS="$ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS"
173
173
fi
174
174
175
+ # MIPS ABI does not support GNU hash style
176
+ if test "x${OPENJDK_$1 _CPU}" = xmips ||
177
+ test "x${OPENJDK_$1 _CPU}" = xmipsel ||
178
+ test "x${OPENJDK_$1 _CPU}" = xmips64 ||
179
+ test "x${OPENJDK_$1 _CPU}" = xmips64el; then
180
+ $1 _CPU_LDFLAGS="${$1 _CPU_LDFLAGS} -Wl,--hash-style=sysv"
181
+ else
182
+ $1 _CPU_LDFLAGS="${$1 _CPU_LDFLAGS} -Wl,--hash-style=gnu"
183
+ fi
184
+
175
185
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
176
186
if test "x${OPENJDK_$1 _CPU_BITS}" = "x32"; then
177
187
$1 _CPU_EXECUTABLE_LDFLAGS="-stack:327680"
0 commit comments