https://bugzilla.redhat.com/show_bug.cgi?id=1242769
--- Comment #4 from Petr Pisar ppisar@redhat.com --- If I only relink perl from the the same build directory as the affected comes from with old ldflags:
$ gcc -o perl -fstack-protector-strong -L/usr/local/lib -Wl,--enable-new-dtags perlmain.o libperl.so `cat ext.libs` -lpthread -lresolv -lnsl -ldl -lm -lcrypt -lutil -lc
And use the the perl to run the t/02bad_deriv.t, it passes. If I relink the perl with the hardened ldflags:
$ gcc -o perl -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -L/usr/local/lib -Wl,--enable-new-dtags -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld perlmain.o libperl.so `cat ext.libs` -lpthread -lresolv -lnsl -ldl -lm -lcrypt -lutil -lc
the test fails.
Also the test passes with the hardened perl when running under valgrind.