1 --- a/make/autoconf/flags-ldflags.m4~ Mon Apr 13 13:55:05 2020
2 +++ b/make/autoconf/flags-ldflags.m4 Mon Apr 13 14:10:29 2020
6 # Add -z defs, to forbid undefined symbols in object files.
7 - # add -z,relro (mark relocations read only) for all libs
8 - # add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
9 - BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
10 + if test "x$OPENJDK_TARGET_OS" = xsolaris; then
11 + BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs"
13 + # add relro (mark relocations read only) for all libs
14 + BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
16 # s390x : remove unused code+data in link step
17 if test "x$OPENJDK_TARGET_CPU" = xs390x; then
18 BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,--gc-sections"