Re: [PATCH 2/2] x86, boot: Optimize the elf header handling.

From: Eric W. Biederman
Date: Sun Jul 01 2012 - 12:08:10 EST


"H. Peter Anvin" <hpa@xxxxxxxxx> writes:

> On 07/01/2012 08:04 AM, H. Peter Anvin wrote:
>>
>> Sadly, this patch breaks the boot with of of my standard configurations
>> (attached)... it goes into an infinite reboot loop. This was the first
>> config I tested, so it might very well break more.
>>
>
> Some more investigation: the boot crashes because the .data..percpu
> segment is all zero -- since this includes the GDT, we die quickly and
> dramatically only a handful of instructions into head_64.S.
>
> I'm dropping this patchset for now.

Fair enough. But ugh.

Can you point me at your config?
Can you tell me your linker version?

I tested this originally on both x86_64 and i386, and it
worked both places for me.

I want to stair at that failure mode. I am wondering what happened
in your configuration that is different from mine. Perhaps a linker
bug? A subtle conflict with something else? The patch didn't do
anything that should have affectected per cpu sections...

Eric

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/