linux-kernel.vger.kernel.org archive mirror
 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

* Re: [PATCH] fix in-kernel genksyms for parisc symbols
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Rusty Russell @ 2003-06-25  6:02 UTC (permalink / raw)
  To: James Bottomley; +Cc: Linux Kernel, Kai Germaschewski

In message <1056410864.1826.57.camel@mulgrave> you write:
> 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).

Looks fine, but my flex is different, too.  Kai?

Cheers,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

===== 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

* Re: [PATCH] fix in-kernel genksyms for parisc symbols
  2003-06-25  6:02 ` Rusty Russell
@ 2003-06-25 20:22   ` Kai Germaschewski
  2003-06-29 22:18     ` David Weinehall
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Germaschewski @ 2003-06-25 20:22 UTC (permalink / raw)
  To: Rusty Russell; +Cc: James Bottomley, Linux Kernel

On Wed, 25 Jun 2003, Rusty Russell wrote:

> In message <1056410864.1826.57.camel@mulgrave> you write:
> > 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).
> 
> Looks fine, but my flex is different, too.  Kai?

I merged it, will submit.

--Kai


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

* Re: [PATCH] fix in-kernel genksyms for parisc symbols
  2003-06-25 20:22   ` Kai Germaschewski
@ 2003-06-29 22:18     ` David Weinehall
  2003-07-02 15:24       ` Kai Germaschewski
  0 siblings, 1 reply; 5+ messages in thread
From: David Weinehall @ 2003-06-29 22:18 UTC (permalink / raw)
  To: Kai Germaschewski; +Cc: Rusty Russell, James Bottomley, Linux Kernel

On Wed, Jun 25, 2003 at 10:22:09PM +0200, Kai Germaschewski wrote:
> On Wed, 25 Jun 2003, Rusty Russell wrote:
> 
> > In message <1056410864.1826.57.camel@mulgrave> you write:
> > > 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).
> > 
> > Looks fine, but my flex is different, too.  Kai?
> 
> I merged it, will submit.

Could you divulge what version of flex you use, to simplify future
changes?


Regards: David Weinehall
-- 
 /) David Weinehall <tao@acc.umu.se> /) Northern lights wander      (\
//  Maintainer of the v2.0 kernel   //  Dance across the winter sky //
\)  http://www.acc.umu.se/~tao/    (/   Full colour fire           (/

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

* Re: [PATCH] fix in-kernel genksyms for parisc symbols
  2003-06-29 22:18     ` David Weinehall
@ 2003-07-02 15:24       ` Kai Germaschewski
  0 siblings, 0 replies; 5+ messages in thread
From: Kai Germaschewski @ 2003-07-02 15:24 UTC (permalink / raw)
  To: David Weinehall; +Cc: Rusty Russell, James Bottomley, Linux Kernel

On Mon, 30 Jun 2003, David Weinehall wrote:

> Could you divulge what version of flex you use, to simplify future
> changes?

Well, the standard RedHat 7.3 stuff - unfortunately that box is moving
currently, so I don't know the versions. But any version should work, the
diff may be bigger, but the interesting change is to lex.l, anyway.

--Kai


^ 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).