binary Hardening on linux using Relocation Read-Only (relro)
Florian Weimer
fweimer at redhat.com
Mon Nov 25 17:30:49 UTC 2019
* Matthias Baesken:
> For "-Wl,-z,now" some startup performance hits are mentioned in
> articles/blogs - any experiences / performance-measurements with this
> in the OpenJDK context ?
While libjvm.so needs a staggering amount of relocations, most of them
are relative. They are not eligible for lazy binding, and they have to
be performed at startup even without BIND_NOW.
That being said, relocation processing for libjvm.so adds a couple of
milliseconds to startup, and it looks like their number is growing with
each release.
Thanks,
Florian
More information about the build-dev
mailing list