[patch] remove .size directives from libc/sysdeps/linux/powerpc/crtn.S
Douglas Mencken
dougmencken at gmail.com
Wed Mar 23 20:06:41 UTC 2011
Oops, forgot to CC to uclibc.
On Wed, Mar 23, 2011 at 8:57 PM, Douglas Mencken <dougmencken at gmail.com> wrote:
>> shouldn't also .globl and .type be removed?
>
> No, it's used by 'as' to generate proper ELF entries.
>
> $ readelf -a crtn.o | grep FUNC
> 8: 00000000 16 FUNC GLOBAL DEFAULT UND _init
> 9: 00000000 16 FUNC GLOBAL DEFAULT UND _fini
>
> .size was never used, it's useless, and now binutils does right job as
> forcing them to be an error.
> At least, for powerpc assembly.
Well, it's only time for you to figure that out. When your team got
binutils 2.21 (would it happen after a month, a year or 1000 years?).
By the way, linux the kernel guys do actively removing .size
directives from assembly source files.
More information about the uClibc
mailing list