Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8198640

VS2017 (LNK4281) Link Warning Against Missed ASLR Optimization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 11
    • None
    • hotspot
    • b04
    • windows
    • Verified

      VS2017 generates the following warning when linking jvm.dll

      LINK : warning LNK4281: undesirable base address 0x8000000 for x64 image; set base address above 4GB for best ASLR optimization

      According to:
      https://developercommunity.visualstudio.com/content/problem/160970/upgrading-from-154-to-155-throw-lnk4281-warning.html
      this is just a informational type warning that is now being generated for VS2017 version 15.5. It indicates that due to the use of -base set by JVM_LDFLAGS there is potential for ASLR missed optimization opportunity.

      JVM_LDFLAGS can include a -ignore:4281 to have this warning supressed.


            lfoltan Lois Foltan
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: