Re: Iptables error [Was: 2.6.16-rc1-mm2]

From: Eric W. Biederman
Date: Mon Jan 23 2006 - 15:53:38 EST


Linus Torvalds <torvalds@xxxxxxxx> writes:

> On Fri, 20 Jan 2006, Benoit Boissinot wrote:
>>
>> On x86 (32bits), i have the same i think:
>
> Interestingly, __alignof__(unsigned long long) is 8 these days, even
> though I think historically on x86 it was 4. Is this perhaps different in
> gcc-3 and gcc-4?
>
> Or do I just remember wrong?

Nope. There are compilers where it is 4 byte aligned.
I believe this was actually a C abi change.

I actually had some code break because of it. A 32bit binary generated
a structure and a 64bit binary couldn't read it. I hadn't realized
they had changed recent versions of gcc.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/