Re: [PATCH] powerpc: avoid broken GCC __attribute__((optimize))

2020-11-25 Thread Michael Ellerman
On Wed, 28 Oct 2020 09:04:33 +0100, Ard Biesheuvel wrote: > Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") > introduced a couple of uses of __attribute__((optimize)) with function > scope, to disable the stack protector in some early boot code. > > Unfortunately, and th

Re: [PATCH] powerpc: avoid broken GCC __attribute__((optimize))

2020-10-29 Thread Michael Ellerman
Ard Biesheuvel writes: > On Wed, 28 Oct 2020 at 09:04, Ard Biesheuvel wrote: >> >> Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") >> introduced a couple of uses of __attribute__((optimize)) with function >> scope, to disable the stack protector in some early boot code.

[PATCH] powerpc: avoid broken GCC __attribute__((optimize))

2020-10-28 Thread Ard Biesheuvel
Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") introduced a couple of uses of __attribute__((optimize)) with function scope, to disable the stack protector in some early boot code. Unfortunately, and this is documented in the GCC man pages [0], overriding function attri

Re: [PATCH] powerpc: avoid broken GCC __attribute__((optimize))

2020-10-28 Thread Ard Biesheuvel
On Wed, 28 Oct 2020 at 09:04, Ard Biesheuvel wrote: > > Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") > introduced a couple of uses of __attribute__((optimize)) with function > scope, to disable the stack protector in some early boot code. > > Unfortunately, and this i