RFR: 8214796: Create a jlink plugin for stripping debug info symbols from native libraries

Severin Gehwolf sgehwolf at redhat.com
Thu Feb 14 08:27:12 UTC 2019


On Wed, 2019-02-13 at 15:36 -0800, Mandy Chung wrote:
> On 2/13/19 1:04 AM, Severin Gehwolf wrote:
> > >      --strip-native-debug-symbols no-keep-debuginfo
> > --strip-native-debug-symbols strip-debuginfo
> > --strip-native-debug-symbols remove-debuginfo
> > 
> > It would avoid using negation.
> 
> What about 'omit', i.e.
> 
> --strip-native-debug-symbols  omit-debuginfo
> --strip-native-debug-symbols  keep-debuginfo=<ext>

I like it. Good for me.

> > Sure. I've filed JDK-8218913 for doing this first. Would a name of --
> > strip-java-debug-symbols be acceptable? My thinking is that it would
> > have nice symmetry with --strip-native-debug-symbols. Thoughts?
> 
> --strip-native-debug-symbols is okay.
> 
> Having a second thought, javac -g and gcc -g both say "debugging
> information".  I think we could go with:
> 
> --strip-java-debug-info
> --strip-native-debug-info  omit-debuginfo
> --strip-native-debug-info  keep-debuginfo=<ext>
> 
> unless anyone thinks `-debug-symbols` is better?
> 
> The options are getting pretty good now.

+1. debug-info over debug-symbols is good for me.

Thanks,
Severin



More information about the jigsaw-dev mailing list