Re: mips gcc plugin issues

From: Arnd Bergmann
Date: Thu Jun 20 2024 - 01:10:44 EST


On Wed, Jun 19, 2024, at 23:17, Kees Cook wrote:
> On Wed, Jun 19, 2024 at 11:12:25PM +0200, Arnd Bergmann wrote:
>> On Wed, Jun 19, 2024, at 22:50, Kees Cook wrote:

>> The problem here is that a gcc plugin links against the
>> compiler, not against code produced by it. I'm linking the
>> crosstool compilers statically against libraries as much as
>> possible in order to make them more portable between distros,
>> but the downside of that is that plugins will only work in
>> the environment that I was using to build these toolchains.
>>
>> My build environment is an older Debian (in order to be
>> portable to old glibc versions), but with the system compiler
>> updated to gcc-13 (since x86 libgcc cannot be cross-compiled
>> with an older compiler).
>
> Can the crosstools remove the plugin support? That seems like the best
> solution. Kconfig test for plugin availability with:
>
> depends on $(success,test -e $(shell,$(CC)
> -print-file-name=plugin)/include/plugin-version.h)

Good idea, yes. I still have to upload gcc-14.1 and gcc-13.3 binaries
anyway, so I'll try turning off plugin support when I build it.

Arnd