All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix in-kernel genksyms for parisc symbols
@ 2003-06-23 23:27 James Bottomley
  2003-06-25  6:02 ` Rusty Russell
  0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2003-06-23 23:27 UTC (permalink / raw)
  To: Rusty Russell; +Cc: Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

The problem is that the parisc libgcc.a library contains symbols that
look like $$mulI and the like, but genksyms doesn't think $ is legal for
a function symbol, so they all get dropped from the output.  This means
that inserting almost any module on parisc taints the kernel because
these symbols have no version.

The fix (attached below) was to allow $ in an identifier in lex.l (and
obviously to update the _shipped files as well, but my flex/bison seem
to be rather different from the one they were generated with, so I'll
leave that to whomever has the correct versions).

James



[-- Attachment #2: tmp.diff --]
[-- Type: text/plain, Size: 310 bytes --]

===== scripts/genksyms/lex.l 1.2 vs edited =====
--- 1.2/scripts/genksyms/lex.l	Wed Feb 19 16:42:13 2003
+++ edited/scripts/genksyms/lex.l	Mon Jun 23 17:17:17 2003
@@ -37,7 +37,7 @@
 
 %}
 
-IDENT			[A-Za-z_][A-Za-z0-9_]*
+IDENT			[A-Za-z_\$][A-Za-z0-9_\$]*
 
 O_INT			0[0-7]*
 D_INT			[1-9][0-9]*

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-02 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-23 23:27 [PATCH] fix in-kernel genksyms for parisc symbols James Bottomley
2003-06-25  6:02 ` Rusty Russell
2003-06-25 20:22   ` Kai Germaschewski
2003-06-29 22:18     ` David Weinehall
2003-07-02 15:24       ` Kai Germaschewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.