[Proposal] jlink plugin which replaces dynamic shared libraries

Severin Gehwolf sgehwolf at redhat.com
Fri Dec 21 12:23:09 UTC 2018


On Fri, 2018-12-21 at 12:07 +0000, Alan Bateman wrote:
> On 18/12/2018 14:40, Severin Gehwolf wrote:
> > :
> > I've added a proof-of-concept for a strip-native-debug-symbols plugin
> > to the bug. It requires objcopy to be on the system on which jlink is
> > being run. Comments welcome.
> > 
> 
> I haven't had time to study this closely yet but I think having a plugin 
> to strip the native debug symbols would be good to have.

Great.

> I suspect that 
> jlink will need a bit of support for integrating platform specific 
> plugins into the build as tools such as objdump and options such as 
> --add-gun-debuglink aren't going to make sense everywhere.

Yes. It whould make sense to include this plugin only for Linux and,
perhaps, Solaris. If there was a way to include plugins based on the
build platform this would help.

> From the 
> examples, I also wonder about unwieldily command lines usages and 
> whether having a platform specific plugin would make this a bit easier.

Sure. One specific issue I've run into was that there seems to be no
way to specify for a plugin to take >= 0 arguments. Once a plugin
specifies, hasArgument() == true, it seems to require at least one.

Thanks,
Severin



More information about the jigsaw-dev mailing list