Stitch hermetic Java image using jlink

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: repo-leyden
    • Component/s: 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 |
           -----------------------------

      https://docs.google.com/document/d/1LWy9vFDis5-hbJwrFUBH1rc8w8f3oL6O3sOzQXjXVUM/edit?tab=t.0

            Assignee:
            Jiangli Zhou
            Reporter:
            Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: