Integrated: 8347755: Support static library in jmod
Henry Jen
henryjen at openjdk.org
Tue Apr 22 17:37:12 UTC 2025
On Tue, 4 Mar 2025 02:56:54 GMT, Henry Jen <henryjen at openjdk.org> wrote:
> This PR add --static-libs option to the jmod tool, it's basically mirroring --libs option to support adding a new section of static archive into the jmod file under the new section `static-lib`.
>
> The JMOD magic header contains a MAJOR and MINOR version, we bump up the MINOR version if the --static-libs option is specified; otherwise, keep the MINOR version as 1. This allow created JMOD file without the newly supported static-lib section to continue be consumed by earlier version of jmod tool.
>
> Also fix the formatting for _hermetic_jdk_jimage_offset, which is a julong(uint64_t) as unsigned long long on MacOS, thus need to use %llu.
This pull request has now been integrated.
Changeset: 4180d204
Author: Henry Jen <henryjen at openjdk.org>
URL: https://git.openjdk.org/leyden/commit/4180d204b6b7ee5f7fe96591a007b80a7513187f
Stats: 176 lines in 11 files changed: 147 ins; 0 del; 29 mod
8347755: Support static library in jmod
Reviewed-by: rpressler, sgehwolf
-------------
PR: https://git.openjdk.org/leyden/pull/46
More information about the leyden-dev
mailing list