* [PATCH] kallsyms: fix sparc gibberish
@ 2004-09-08 12:30 Paulo Marques
0 siblings, 0 replies; only message in thread
From: Paulo Marques @ 2004-09-08 12:30 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 464 bytes --]
This one liner fixes the bug of using ".word" to represent 16 bits
quantities, that made kallsyms produce gibberish on sparc.
Although it works on almost every platform except sparc, it should
really use ".short" or ".hword" to represent 16 bits on any platform.
Please apply,
Signed-Off-By: Paulo Marques <pmarques@grupopie.com>
--
Paulo Marques - www.grupopie.com
To err is human, but to really foul things up requires a computer.
Farmers' Almanac, 1978
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 369 bytes --]
--- linux-2.6.9-rc1-mm3/scripts/kallsyms.c 2004-09-05 21:51:14.000000000 +0100
+++ linux-2.6.9-rc1-kall/scripts/kallsyms.c 2004-09-05 21:52:38.000000000 +0100
@@ -303,7 +303,7 @@ write_src(void)
output_label("kallsyms_token_index");
for (i = 0; i < 256; i++)
- printf("\t.word\t%d\n", best_idx[i]);
+ printf("\t.short\t%d\n", best_idx[i]);
printf("\n");
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-08 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-08 12:30 [PATCH] kallsyms: fix sparc gibberish Paulo Marques
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox