Re: "objtool orc" creates invalid file arch/x86/kernel/time.o

From: Arnd Bergmann
Date: Thu Sep 14 2017 - 18:07:13 EST


On Thu, Sep 14, 2017 at 11:44 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote:
> On Thu, Sep 14, 2017 at 11:00 PM, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>> On Sun, Sep 10, 2017 at 10:38:58PM +0200, Arnd Bergmann wrote:
>>> Hi Josh,
>>>
>>> I have a randconfig build that produces a link error:
>>>
>>> built-in.o: member arch/x86/kernel/time.o in archive is not an object
>>>
>>> I've traced it down to the "objtool orc generate" command that appears
>>> to corrupt the file, by running the same commands that 'make' calls:
>>
>> Thanks, I was able to recreate with your config. I'll post the patch
>> soon (here's the preview):
>
> Ok, thanks! I've added it to my randconfig test tree. With this build error,
> I now have three failing configs, two with the same file, and another one
> in a timer driver. I'll see if the patch addresses all three of them, but
> won't have the results until tomorrow.

I guess it must be 'tomorrow' in my time zone now ;-)

The patch fixed all three configurations.

Arnd