[PATCH] tftp.h: rework layout to work with fortification

Joseph S. Myers joseph@codesourcery.com
Thu Apr 19 16:07:00 GMT 2012


On Thu, 12 Apr 2012, David Miller wrote:

> 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.

Since I removed ARM old-ABI support from ports, that isn't relevant to 
glibc (I don't know any other architectures with that issue), although 
it may still be relevant to the kernel.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list