lkml.org 
[lkml]   [2004]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kallsyms: fix sparc gibberish

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
--- 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");
}
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.053 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site