On Thu, 5 Mar 2026 12:08:50 GMT, Julian Waters <[email protected]> wrote:
> This seems to implement the GC functionality for the compiler, but for the > linker it only works when Linux is the target OS. Is this intended? Afaik the `-Wl,--gc-sections` does not work on AIX or macOS (at least with the usual linkers), so we have to limit the linker flag. We could limit the setting for the cflags / compiler too to Linux ; I have to check however , maybe those add section - related flags bring some improvement on MacOS with the dead_strip linker option (which was introduced by https://github.com/openjdk/jdk/commit/8f3d0ade11ddb45bb1719b6818e1b51df237a59b ) . ------------- PR Comment: https://git.openjdk.org/jdk/pull/30071#issuecomment-4004842712
