VS2017 (LNK4281) Link Warning Against Missed ASLR Optimization

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 11
    • Affects Version/s: None
    • Component/s: 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.


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

              Created:
              Updated:
              Resolved: