[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

An ld patch



> 
> On Mon, Feb 09, 1998 at 02:41:45PM +0100, Andreas Jaeger wrote:
> > 
> > Don't make your life too difficult. Just apply the following patch
> > which should be in the next glibc snapshot.
> > Index: libc.map
> > ===================================================================
> > RCS file: /egcs/carton/cvsfiles/libc/libc.map,v
> > retrieving revision 1.38
> > diff -u -r1.38 libc.map
> > --- libc.map	1998/02/01 16:18:18	1.38
> > +++ libc.map	1998/02/09 07:52:01
> > @@ -20,6 +20,9 @@
> >      # This is for ix86 only.
> >      _fp_hw;
> >  
> > +    # This is for sparc only.
> > +    .div; .mul; .rem; .udiv; .umul; .urem;
> > +
> 
> 	Sorry, but that wouldn't work.  Current binutils don't work
> if you include symbols beginning with `.' in the libc.map.  This is
> (IMHO) a bug in binutils... I'm CC'ing H.J. Lu.
> 
> > Juan> 	The glibc development people are a bit quiet... there aren't
> > Juan> new versions yet, but I'm going to release a new version including a
> > Juan> patch for /etc/ld.so.preload handling (it doesn't work now), and that
> > Juan> library including .{u,}{div,mul,rem}
> > 
> > Whom are you contacting? I'm with the glibc team and asked already
> > some times for patches and didn't receive any answer at all:-(. As
> > I've told you already Ulrich Drepper who's mainting glibc is moving at 
> > the moment and therefore not available (but should be soonish again).
> 
> 	Sorry, I didn't want to disturb you... all of you are doing a
> very good job :)
> 
> 	I sent those suggestions to Miguel de Icaza, who is
> (was?) the one who used to apply patches for Sparc on glibc, and
> didn't get any answer.
> 

Ian, since '.' is a valid symbol prefix in gas, I don't see why
ld doesn't allow it. Here is a patch.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
---
Mon Feb  9 09:01:20 1998  H.J. Lu  (hjl@gnu.org)

	* ld/ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.

Index: ld/ldlex.l
===================================================================
RCS file: /home/work/cvs/gnu/binutils/ld/ldlex.l,v
retrieving revision 1.1.1.16
diff -u -r1.1.1.16 ldlex.l
--- ldlex.l	1998/01/30 16:44:46	1.1.1.16
+++ ldlex.l	1998/02/09 23:52:44
@@ -113,7 +113,7 @@
 NOCFILENAMECHAR	[_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
 
 V_TAG [.$_a-zA-Z][._a-zA-Z0-9]*
-V_IDENTIFIER [*?$_a-zA-Z][*?_a-zA-Z0-9]*
+V_IDENTIFIER [*?.$_a-zA-Z][*?_a-zA-Z0-9]*
 
 %s SCRIPT
 %s EXPRESSION


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-sparc-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: