Hi,

I've submitted a speculative pull request to rumprun-xen (PR #9) to fix an
issue I'm having when using the app-tools on Debian jessie.

It appears that the GCC (gcc version 4.9.1 (Debian 4.9.1-16)) spec files
have changed to always pass the LTO -plugin and -plugin-opt stuff to the
linker, even if LTO has not been enabled. This confuses stunt ld which
doesn't support those options.

Comparing Debian wheezy GCC %link_command spec with that in jessie:

wheezy: [...] %{!fno-use-linker-plugin:%{flto|flto=*|fuse-linker-plugin:     
-plugin %(linker_plugin_file)     -plugin-opt=%(lto_wrapper)     
-plugin-opt=-fresolution=%u.res [...]

jessie: [...] %{!fno-use-linker-plugin:%{!fno-lto:     -plugin 
%(linker_plugin_file)     -plugin-opt=%(lto_wrapper)     
-plugin-opt=-fresolution=%u.res [...]

My changes in the PR just drop (-plugin ARG|-plugin-opt
ARG|-plugin-opt=ARG) from the linker arguments. This fixes the problem for
me, but I have no idea if this has any adverse impact. I'm guessing not as
we don't use LTO.

Note - I couldn't find any documentation about either the -plugin,
-plugin-opt linker options (they're not in the man page) or about when this
change might have been implemented or who implemented it (Debian or
upstream?).

Any advice would be appreciated.

Martin

------------------------------------------------------------------------------
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to