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

VS2017 (LNK4281) Link Warning Against Missed ASLR Optimization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b04
    • OS:
      windows
    • Verification:
      Verified

      Description

      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.


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: