Re: [PATCH] Fix multiple definition error under lto

From: Jiri Kosina
Date: Tue Dec 13 2016 - 10:06:00 EST


On Mon, 12 Dec 2016, Eduardo Valentin wrote:

> > > drivers/thermal/built-in.o: In function `type_show.lto_priv.33':
> > > (.text+0x3d80): multiple definition of `type_show.lto_priv.33'
> > > drivers/base/built-in.o:(.text+0x2a40): first defined here
> > >
> > can you illustrate how to reproduce this problem?
>
> same here. I am not able to see this. Can you please describe your
> environment?

I'm pretty sure he's experimenting with LTO and hitting the LTO phase
getting link-time symbol conflicts between definitions coming from thermal
and base. I'd even say this to be a toolchain bug, given the fact that
both symbols are static.

--
Jiri Kosina
SUSE Labs