RFR: 8347755: Support static library in jmod [v5]
Henry Jen
henryjen at openjdk.org
Thu Mar 13 17:46:43 UTC 2025
> 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.
Henry Jen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:
- Merge
- Support `make static-jmods` to create static jmods
- support major version validation
- Update jmod.md
- Use JULONG_FORMAT_X to suit various platforms
- Fix julong format on MacOS
- Add --static-libs to jmod
-------------
Changes:
- all: https://git.openjdk.org/leyden/pull/46/files
- new: https://git.openjdk.org/leyden/pull/46/files/95a037b8..242e9e7a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=leyden&pr=46&range=04
- incr: https://webrevs.openjdk.org/?repo=leyden&pr=46&range=03-04
Stats: 25322 lines in 856 files changed: 10200 ins; 10637 del; 4485 mod
Patch: https://git.openjdk.org/leyden/pull/46.diff
Fetch: git fetch https://git.openjdk.org/leyden.git pull/46/head:pull/46
PR: https://git.openjdk.org/leyden/pull/46
More information about the leyden-dev
mailing list