Commit 11aa9341 authored by Kai Germaschewski's avatar Kai Germaschewski Committed by Linus Torvalds

kbuild: fix broken kallsyms on non-x86 archs

From: James Bottomley <James.Bottomley@steeleye.com>
  
kallsyms is broken in parisc on 2.5.56 again because of assembler syntax
subtleties.  This is the offending line:
  
printf("\t.byte 0x%02x ; .asciz\t\"%s\"\n"
  
Note the `;' separating the two statements.  On some platforms `;' is a
comment in assembly code, and thus the following .asciz is ignored.
parent 6a81f32d
...@@ -144,7 +144,7 @@ write_src(void) ...@@ -144,7 +144,7 @@ write_src(void)
for (k = 0; table[i].sym[k] && table[i].sym[k] == prev[k]; ++k) for (k = 0; table[i].sym[k] && table[i].sym[k] == prev[k]; ++k)
; ;
printf("\t.byte 0x%02x ; .asciz\t\"%s\"\n", k, table[i].sym + k); printf("\t.byte 0x%02x\n\t.asciz\t\"%s\"\n", k, table[i].sym + k);
last_addr = table[i].addr; last_addr = table[i].addr;
prev = table[i].sym; prev = table[i].sym;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment