[git commit] x86_64: fix .size of _init/_fini
Peter Mazinger
ps.m at gmx.net
Sun May 8 14:54:50 UTC 2011
How does it come, that glibc does not need .size directive on these files (crti.o and crtn.o) but uClibc would need them?
Peter
-------- Original-Nachricht --------
> Datum: Thu, 5 May 2011 04:02:05 -0400
> Von: Mike Frysinger <vapier at gentoo.org>
> An: uclibc at uclibc.org
> Betreff: Re: [git commit] x86_64: fix .size of _init/_fini
> On Thu, May 5, 2011 at 03:27, Bernhard Reutner-Fischer wrote:
> > binutils-2.21 barf on .size that do not evaluate to const, so use the
> > section size and not a function that is not visible here.
> >
> > --- a/libc/sysdeps/linux/x86_64/crtn.S
> > +++ b/libc/sysdeps/linux/x86_64/crtn.S
> > @@ -7,7 +7,7 @@
> > .type _init, %function
> > addq $8, %rsp
> > ret
> > -.size _init,.-_init
> > +.size _init,.-.init
>
> so we set the .type/.size of _init, but there is no actual _init
> symbol ? perhaps the fix is to add the _init symbol ?
> -mike
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
More information about the uClibc
mailing list