public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paulo Marques <pmarques@grupopie.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kallsyms: fix sparc gibberish
Date: Wed, 08 Sep 2004 13:30:50 +0100	[thread overview]
Message-ID: <413EFB7A.8000303@grupopie.com> (raw)

[-- 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");
 }
 

                 reply	other threads:[~2004-09-08 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=413EFB7A.8000303@grupopie.com \
    --to=pmarques@grupopie.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /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