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

From: Eric W. Biederman
Date: Sun Jul 01 2012 - 13:10:17 EST


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

> On 07/01/2012 09:26 AM, Eric W. Biederman wrote:
>>
>> Fair enough. It looks like somehow SMP got unset in my test
>> configuration and enabling SMP certainly kills the boot for
>> me. So it looks like I can reproduce this.
>>
>> So I am guess I just missed something. Ugh.
>>
>> Digging deeper...
>>
>
> Could there be a VMA/LMA confusion? The VMA for the .data..percpu
> section is zero.

I am suspecting something similar. At the moment I am trying
to remember how to get early printk working in misc.c so I can
poke around a bit more.

The theory that I was working on, that used to be true, and
seems to be true of everything except the percpu section is
that objcopy just does the right thing when creating vmlinux.bin.
vmlinux.bin being what we compress.

I don't see anything obviously wrong with the headers of vmlinux.bin
although we still unnecessarily have section headers in that file.

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/