[git commit] x86_64: fix .size of _init/_fini

Mike Frysinger vapier at gentoo.org
Thu May 5 08:02:05 UTC 2011


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


More information about the uClibc mailing list