On Tue, 28 Apr 2026 14:42:56 GMT, Matthias Baesken <[email protected]> wrote:
> Currently we use objcopy to generate debuginfo files. > It would be sometimes helpful to generate debuginfo files with compressed > content (e.g. objcopy --compress-debug-sections=zlib-gnu). > > This could be supported by an additional configure flag. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). The tool `objcopy` is used in 3 different places in Link.gmk. This new parameter is adding `OBJCOPYFLAGS` which gives the impression that they are universal flags for running `objcopy`, but in reality they are only used for one of those invocations. That's misleading. Are there any other flags or options you would expect someone to want to use here? If not, I think it would make more sense to make the option specifically about compressing debuginfo files. OTOH, we already have the `--with-native-debug-symbols=[none, internal, external, zipped]` which kind of touches the same area, so it may get confusing if done poorly. I'm not against the idea of this feature, but the new configure option needs to fit in reasonably with the existing ones. ------------- Changes requested by erikj (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/30971#pullrequestreview-4191647368
