On Sun, 2006-08-27 at 22:15 +0200, Marcin 'Qrczak' Kowalczyk wrote:
> I asked:
> I found that the .size bug has been reported in January 2006:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25805
This is a different issue unrelated to .size but really to actually not
outputting all the data for fle
I asked:
> Can this have serious effects (like overlapped or split objects),
> or is .size used only for e.g. debugging?
It seems that .size is used for shared libraries compiled without
-fPIC: linking the same code statically or with -fPIC fixes the wrong
behavior, and -finhibit-size-directive c
Ian Lance Taylor <[EMAIL PROTECTED]> writes:
> "Marcin 'Qrczak' Kowalczyk" <[EMAIL PROTECTED]> writes:
>
>> gcc-4.1.0-0.20051206r108118 emits wrong .size directives for
>> statically initialized objects with a flexible array member,
>> e.g.:
>>
>> struct {int x; int y[];} obj = {1, {2, 3}};
>>
>
"Marcin 'Qrczak' Kowalczyk" <[EMAIL PROTECTED]> writes:
> gcc-4.1.0-0.20051206r108118 emits wrong .size directives for
> statically initialized objects with a flexible array member,
> e.g.:
>
> struct {int x; int y[];} obj = {1, {2, 3}};
>
> .globl obj
> .data
> .align 4
>