Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754163AbYF0Kfa (ORCPT ); Fri, 27 Jun 2008 06:35:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751780AbYF0KfT (ORCPT ); Fri, 27 Jun 2008 06:35:19 -0400 Received: from baikonur.stro.at ([213.239.196.228]:34515 "EHLO baikonur.stro.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbYF0KfR (ORCPT ); Fri, 27 Jun 2008 06:35:17 -0400 Date: Fri, 27 Jun 2008 12:07:18 +0200 From: maximilian attems To: ink@jurassic.park.msu.ru, rth@twiddle.net Cc: akpm@linux-foundation.org, debian-kernel@lists.debian.org, linux-kernel@vger.kernel.org Subject: (fwd) Alpha Linux kernel fails with inconsistent kallsyms data Message-ID: <20080627100718.GA19274@stro.at> Mail-Followup-To: ink@jurassic.park.msu.ru, rth@twiddle.net, akpm@linux-foundation.org, debian-kernel@lists.debian.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2333 Lines: 85 according to the build log http://buildd.debian.org/fetch.cgi?pkg=linux-2.6;ver=2.6.25-6;arch=alpha;stamp=1214551466 alpha linux image built fine with belows patch, please have an eye. thanks -- maks ----- Forwarded message from Bastian Blank ----- Date: Sun, 22 Jun 2008 22:11:43 +0200 From: Bastian Blank To: debian-kernel@lists.debian.org, rth@twiddle.net Cc: debian-alpha@lists.debian.org Subject: Alpha Linux kernel fails with inconsistent kallsyms data Hi folks The build of the Alpha Linux kernel currently fails[1] with inconsistent kallsyms data. As I never saw that before, I thought about hardware problems. But in fact it is a bug in the Linux kernel. The end of the rodata section is marked with the "__end_rodata" symbol. This symbol have different aligning constraints than the inittext parts and therefor the start marked "_sinittext". Because of that the __end_rodata symbol shifts between < _sinittext and == _sinittext. The later variant is seen as a code symbol and recorded in the kallsyms data. On fix would be to move the exception table a little bit and get some space between that two areas. Bastian [1]: http://buildd.debian.org/fetch.cgi?pkg=linux-2.6&arch=alpha&ver=2.6.25-5&stamp=1213919009&file=log&as=raw -- The face of war has never changed. Surely it is more logical to heal than to kill. -- Surak of Vulcan, "The Savage Curtain", stardate 5906.5 diff --git a/arch/alpha/kernel/vmlinux.lds.S b/arch/alpha/kernel/vmlinux.lds.S index f13249b..ef37fc1 100644 --- a/arch/alpha/kernel/vmlinux.lds.S +++ b/arch/alpha/kernel/vmlinux.lds.S @@ -25,6 +25,13 @@ SECTIONS } :kernel _etext = .; /* End of text section */ + NOTES :kernel :note + .dummy : { + *(.dummy) + } :kernel + + RODATA + /* Exception table */ . = ALIGN(16); __ex_table : { @@ -33,13 +40,6 @@ SECTIONS __stop___ex_table = .; } - NOTES :kernel :note - .dummy : { - *(.dummy) - } :kernel - - RODATA - /* Will be freed after init */ . = ALIGN(PAGE_SIZE); /* Init code and data */ ----- End forwarded message ----- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/