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

Alan Bateman Alan.Bateman at oracle.com
Tue Feb 26 17:59:28 UTC 2019


On 26/02/2019 11:01, Severin Gehwolf wrote:
> :
> --list-plugins output for --strip-native-debug-symbols:
>
> Plugin Name: strip-native-debug-symbols
> Option: --strip-native-debug-symbols=<exclude-debuginfo-files|keep-debuginfo-files>
> Description: Strip debug symbols from native libraries (if any).
>   This plugin requires at least one option:
>     objcopy: The path to the objcopy binary. Defaults to objcopy in PATH.
>     exclude-debuginfo-files: Omit debug info files. Defaults to true.
>     keep-debuginfo-files[=<ext>]: Keep debug info files in <file>.<ext>.
>                                   Defaults to <file>.debuginfo
>   Examples: --strip-native-debug-symbols objcopy=/usr/bin/objcopy
>             --strip-native-debug-symbols=exclude-debuginfo-files
>             --strip-native-debug-symbols keep-debuginfo-files:objcopy=objcopy
>
>
> Latest webrev which implements this:
> http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8214796/08/webrev/
>
> CSR for the new jlink option:
> https://bugs.openjdk.java.net/browse/JDK-8219257
I don't have time right now to study the webrev but I think the proposal 
(and CSR) looks okay. The only thing is that it's bit awkward that each 
of the possible values to the option are optionally but at least one is 
required. Once jlink is updated to allow for the value to be optional 
then I assume this wart can go away.

-Alan



More information about the jigsaw-dev mailing list