This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] tftp.h: rework layout to work with fortification
David Miller <davem@davemloft.net> writes:
> From: Andreas Schwab <schwab@linux-m68k.org>
> Date: Thu, 12 Apr 2012 17:52:30 +0200
>
>> I wonder what's the use of packing here. There should be no padding,
>> each field has at most short alignment.
>
> I think it's to handle cpus like ARM where a structure containing
> smaller than u32 objects will be aligned up to need u32 alignment.
Then the packing needs to be moved to the inner struct.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."