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

Stop linking with -base:0x8000000 on Windows

    XMLWordPrintable

Details

    • b07
    • windows

    Description

      On Windows, jvm.dll is linked with -base:0x8000000. VS2017 version 15.5 is generating a linker warning with regards to -base's specification.

      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 there is potential for missed ASLR optimizations.

      Investigate why historically -base was specified as a linker option on Windows and remove if unnecessary.

      Attachments

        Issue Links

          Activity

            People

              erikj Erik Joelsson
              lfoltan Lois Foltan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: