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

Stitch hermetic Java image using jlink

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • repo-leyden
    • core-libs
    • None

      This is from the on-going brainstorming & discussions as part of the bi-weekly hermetic Java zoom meetings:

      When creating the final hermetic Java image, jlink would do following additional process:

      - Invoke native linker to link an executable
      - Stitch together the final hermetic Java executable image

      The hermetic Java executable image would have the following (high-level) layout. The modules image would start at page aligned file offset. A suggestion/idea from [~rpressler] was to record the modules offset & size info at the end of the hermetic image, which could be easily retrieved at runtime.

           ------------------------------
           | |
           | executable |
           | |
           ------------------------------
           | |
           | modules |
           | |
           ------------------------------
           | offset & size |
           -----------------------------

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: