From: Keith Owens <kaos@sgi.com>
To: jhf@rivenstone.net (Joseph Fannin)
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, paulus@samba.org,
benh@kernel.crashing.org, rusty@rustcorp.com.au
Subject: Re: 2.6.7-mm6 - ppc32 inconsistent kallsyms data
Date: Tue, 06 Jul 2004 17:31:22 +1000 [thread overview]
Message-ID: <13859.1089099082@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Tue, 06 Jul 2004 12:06:08 +1000." <2970.1089079568@kao2.melbourne.sgi.com>
On Tue, 06 Jul 2004 12:06:08 +1000,
Keith Owens <kaos@sgi.com> wrote:
>On Mon, 5 Jul 2004 16:38:18 -0400,
>jhf@rivenstone.net (Joseph Fannin) wrote:
>>On Mon, Jul 05, 2004 at 02:31:20AM -0700, Andrew Morton wrote:
>>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.7/2.6.7-mm6/
>>
>> I'm getting this while building for ppc32:
>> Inconsistent kallsyms data, try setting CONFIG_KALLSYMS_EXTRA_PASS
>>
>> This didn't happen with -mm6.
>>
>> The help text for CONFIG_KALLSYMS_EXTRA_PASS says I should report a
>>bug, and reads like kallsyms is a utility or part of the toolchain;
>>I think it's talking about the kernel feature though, so I guess
>>I'll report it here. I'll keep this tree around in case any more
>>information is needed.
>
>Run these commands on the tree that needed CONFIG_KALLSYMS_EXTRA_PASS=y
>(assumes Bourne shell)
>
>for i in 1 2 3; do nm .tmp_kallsyms$i.o > .tmp_mapk$i; nm .tmp_vmlinux$i > .tmp_mapv$i; done
>tar cjvf /var/tmp/kallsyms.tar.bz2 .tmp_kallsyms* .tmp_vmlinux* .tmp_map*
>
>Send the tarball to me, not the list.
This is a real linker problem on ppc32. The linker automatically adds
_SDA_BASE_ and _SDA2_BASE_ symbols, these symbols are not defined in
vmlinux.lds.S. The SDA symbols move around as kallsyms data is added
between phases 1 and 2. That movement, together with the stem
compression (which depends on the immediately previous symbol) means
that the compressed symbol table changes size between phases 1 and 2,
which it is not supposed to do.
This problem has been there all along. It showed up now because I
added a test to verify that the kallsyms data is consistent after phase
2, instead of blindly assuming that it is stable. jhf, can you verify
that this patch removes the need for an extra kallsyms pass?
--- kallsyms-ppc32 ---
PPC small data area base symbols shift between kallsyms phases 1 and 2,
which makes the kallsyms data unstable. Exclude them from the kallsyms
list.
Signed-off-by: Keith Owens <kaos@sgi.com>
Index: 2.6.7-mm6/scripts/kallsyms.c
===================================================================
--- 2.6.7-mm6.orig/scripts/kallsyms.c 2004-07-06 17:26:14.000000000 +1000
+++ 2.6.7-mm6/scripts/kallsyms.c 2004-07-06 17:26:33.000000000 +1000
@@ -83,6 +83,11 @@ symbol_valid(struct sym_entry *s)
strcmp(s->sym, "kallsyms_names") == 0)
return 0;
+ /* Exclude linker generated symbols which vary between passes */
+ if (strstr(s->sym, "_SDA_BASE_") || /* ppc */
+ strcmp(s->sym, "_SDA2_BASE_") == 0) /* ppc */
+ return 0;
+
return 1;
}
next prev parent reply other threads:[~2004-07-06 7:31 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-05 9:31 2.6.7-mm6 Andrew Morton
2004-07-05 10:18 ` 2.6.7-mm6 Christoph Hellwig
2004-07-05 10:44 ` 2.6.7-mm6 Christoph Hellwig
2004-07-05 10:32 ` 2.6.7-mm6 Redeeman
2004-07-05 13:54 ` 2.6.7-mm6 Frieder Buerzele
2004-07-05 14:41 ` 2.6.7-mm6 Redeeman
2004-07-05 10:39 ` 2.6.7-mm6 Martin Zwickel
2004-07-05 19:04 ` 2.6.7-mm6 Jurgen Kramer
2004-07-05 20:38 ` 2.6.7-mm6 - ppc32 inconsistent kallsyms data Joseph Fannin
2004-07-05 20:54 ` Andrew Morton
2004-07-06 2:06 ` Keith Owens
2004-07-06 7:31 ` Keith Owens [this message]
2004-07-06 7:43 ` Keith Owens
2004-07-06 20:54 ` Joseph Fannin
2004-07-06 9:09 ` Rusty Russell
2004-07-06 12:28 ` Keith Owens
2004-07-05 22:52 ` 2.6.7-mm6: ALSA: vortex_asXtalkGainsAllChan multiple definitions Adrian Bunk
2004-07-05 22:56 ` [patch] 2.6.7-mm6: let CDROM_PKTCDVD depend on experimental Adrian Bunk
2004-07-06 6:49 ` USB Lockups with 2.6.7-mm6, was Re: 2.6.7-mm6 Ralf Hildebrandt
2004-07-06 12:54 ` 2.6.7-mm6 William Lee Irwin III
2004-07-06 17:51 ` 2.6.7-mm6 Dmitry Torokhov
2004-07-06 18:55 ` 2.6.7-mm6 Jan-Benedict Glaw
2004-07-06 23:12 ` 2.6.7-mm6 William Lee Irwin III
2004-07-06 23:55 ` 2.6.7-mm6 William Lee Irwin III
2004-07-07 5:15 ` 2.6.7-mm6 Dmitry Torokhov
2004-07-07 6:37 ` 2.6.7-mm6 William Lee Irwin III
2004-07-07 12:47 ` 2.6.7-mm6 Dmitry Torokhov
2004-07-07 12:55 ` 2.6.7-mm6 William Lee Irwin III
2004-07-07 16:31 ` 2.6.7-mm6 Vojtech Pavlik
2004-07-07 17:15 ` 2.6.7-mm6 Dmitry Torokhov
2004-07-07 19:05 ` 2.6.7-mm6 Vojtech Pavlik
2004-07-06 22:34 ` 2.6.7-mm6 Andrew Morton
2004-07-06 22:45 ` 2.6.7-mm6 David S. Miller
2004-07-06 22:52 ` 2.6.7-mm6 William Lee Irwin III
2004-07-06 23:07 ` 2.6.7-mm6 Russell King
2004-07-06 23:36 ` 2.6.7-mm6 William Lee Irwin III
2004-07-07 0:02 ` 2.6.7-mm6 David S. Miller
2004-07-07 2:29 ` 2.6.7-mm6 Nick Piggin
2004-07-07 7:35 ` 2.6.7-mm6 Ingo Molnar
2004-07-07 21:02 ` 2.6.7-mm6 David S. Miller
2004-07-09 2:45 ` 2.6.7-mm6 Nick Piggin
2004-07-09 2:51 ` 2.6.7-mm6 William Lee Irwin III
2004-07-09 5:09 ` 2.6.7-mm6 Nick Piggin
2004-07-09 6:29 ` 2.6.7-mm6 Ingo Molnar
2004-07-09 6:58 ` 2.6.7-mm6 William Lee Irwin III
2004-07-09 7:07 ` 2.6.7-mm6 Nick Piggin
2004-07-09 7:16 ` 2.6.7-mm6 William Lee Irwin III
2004-07-06 14:49 ` 2.6.7-mm6 - USB problems Jesse Stockall
2004-07-07 16:44 ` 2.6.7-mm6 Jesse Barnes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13859.1089099082@kao2.melbourne.sgi.com \
--to=kaos@sgi.com \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=jhf@rivenstone.net \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox