(11) RFR (S) JDK-8198640: VS2017 (LNK4281) Link Warning Against Missed ASLR Optimization

Christian Tornqvist christian.tornqvist at oracle.com
Fri Feb 23 20:18:29 UTC 2018


Hi Lois,

Why do we link jvm.dll with -base? 

Thanks,
Christian

> On Feb 23, 2018, at 3:11 PM, Lois Foltan <lois.foltan at oracle.com> wrote:
> 
> Please review this fix to ignore linker warning (LNK4281).  This is a new linker warning generated by VS2017 v15.5 to "to point out any 64-bit image specified to link with a lower than 4GB base address doesn't get best ASLR optimization". The Hotspot jvm.dll is specifically linked with -base:0x8000000.  As recommended by https://developercommunity.visualstudio.com/content/problem/160970/upgrading-from-154-to-155-throw-lnk4281-warning.html, this linker warning can be suppressed with -ignore.
> 
> open webrev at http://cr.openjdk.java.net/~lfoltan/bug_jdk8198640/webrev/
> bug link https://bugs.openjdk.java.net/browse/JDK-8198640
> 
> Testing (hs-tier1-3 & jdk-tier1-3) in progress
> 
> Thanks,
> Lois
> 
> 




More information about the build-dev mailing list