Re: x86-64: Maintain 16-byte stack alignment

From: Herbert Xu
Date: Wed Jan 11 2017 - 03:11:55 EST


On Wed, Jan 11, 2017 at 08:06:54AM +0000, Ard Biesheuvel wrote:
>
> Couldn't we update the __aligned(x) macro to emit 32 if arch == x86
> and x == 16? All other cases should work just fine afaict

Not everyone uses that macro. You'd also need to add some checks
to stop people from using the gcc __attribute__ directly.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt