Re: Linux 2.6.38-rc1 doesn't boot

From: Jeff Chua
Date: Wed Jan 19 2011 - 09:03:29 EST


On Wed, Jan 19, 2011 at 8:31 PM, H.J. Lu <hjl.tools@xxxxxxxxx> wrote:
> On Wed, Jan 19, 2011 at 12:32 AM, Sedat Dilek
> <sedat.dilek@xxxxxxxxxxxxxx> wrote:
>> Referring to the original posting from [1]:
>>
>> I am on latest linux-next (next-20110118) which has also [3] included,
>> x86_32 and using binutils-2.21 with PR ld/12327 fix from
>> Debian/experimental (see [2]).
>>
>> AFAICS the changes to my kernel-config... You are on x86_64 and have not set:
>>
>> CONFIG_RELOCATABLE=y
>> CONFIG_X86_NEED_RELOCS=y
>>
>> Ifdef *also* for CONFIG_RELOCATABLE for the parts in commit from [3] ?
>>
>> - Sedat -
>>
>> [1] http://lkml.org/lkml/2011/1/19/52
>> [2] http://bazaar.launchpad.net/~doko/binutils/pkg-2.21-debian/revision/85
>> [3] http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commit;h=86b1e8dd83cbb0
>>
>
> Looks like the patch has been reverted.

Can't boot here too. I don't have CONFIG_RELOCATABLE set on 64-bit.


Reverting the commit solves the problem.

commit 86b1e8dd83cbb0fcbf3d61d2b461df8be1f528cf
Author: Shaohua Li <shaohua.li@xxxxxxxxx>
Date: Tue Jan 18 08:57:49 2011 +0800

x86: Make relocatable kernel work with new binutils

The CONFIG_RELOCATABLE=y option is broken with new binutils, which will make
boot panic.

According to Lu Hongjiu, the affected binutils are from 2.20.51.0.12 to
2.21.51.0.3, which are release since Oct 22 this year. At least
ubuntu 10.10 is


Thanks,
Jeff.
--
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/