On Tue, 3 Sep 2024 12:50:01 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:
> As a prerequisite for Hermetic Java, we need a statically linked `java` > launcher. It should behave like the normal, dynamically linked `java` > launcher, except that all JDK native libraries should be statically, not > dynamically, linked. > > This patch is the first step towards this goal. It will generate a > `static-jdk` image with a statically linked launcher. This launcher is > missing several native libs, however, and does therefore not behave like a > proper dynamic java. One of the reasons for this is that local symbol hiding > in static libraries are not implemented yet, which causes symbol clashes when > linking all static libraries together. This will be addressed in an upcoming > patch. > > All changes in the `src` directory are copied from, or inspired by, changes > made in [the hermetic-java-runtime branch in Project > Leyden](https://github.com/openjdk/leyden/tree/hermetic-java-runtime). This pull request has now been integrated. Changeset: 1ca76445 Author: Magnus Ihse Bursie <i...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/1ca764454b1cb296f4aa38a4dfdf3d4abb5c19d6 Stats: 497 lines in 27 files changed: 399 ins; 23 del; 75 mod 8339480: Build static-jdk image with a statically linked launcher Co-authored-by: Magnus Ihse Bursie <i...@openjdk.org> Co-authored-by: Jiangli Zhou <jian...@openjdk.org> Reviewed-by: dholmes, erikj, coleenp ------------- PR: https://git.openjdk.org/jdk/pull/20837