[PATCH] fix in-kernel genksyms for parisc symbols

James Bottomley (James.Bottomley@steeleye.com)
23 Jun 2003 18:27:43 -0500


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-19967-1056411429-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

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

--=_courier-19967-1056411429-0001-2
Content-Type: text/plain; name="tmp.diff"; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=tmp.diff

=3D=3D=3D=3D=3D scripts/genksyms/lex.l 1.2 vs edited =3D=3D=3D=3D=3D
--- 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 @@
=20
%}
=20
-IDENT [A-Za-z_][A-Za-z0-9_]*
+IDENT [A-Za-z_\$][A-Za-z0-9_\$]*
=20
O_INT 0[0-7]*
D_INT [1-9][0-9]*

--=_courier-19967-1056411429-0001-2--