Re: [PATCH 1/1] x86/purgatory: Change compiler flags to avoid relocation errors.

2019-09-05 Thread Andreas Smas
On Thu, Sep 5, 2019 at 11:20 AM Nick Desaulniers wrote: > > On Wed, Sep 4, 2019 at 10:34 PM Andreas Smas wrote: > > > > On Wed, Sep 4, 2019 at 3:19 PM Nick Desaulniers > > wrote: > > > Thanks for confirming the fix. While it sounds like -mcmodel=large is &

Re: [PATCH 1/1] x86/purgatory: Change compiler flags to avoid relocation errors.

2019-09-04 Thread Andreas Smas
On Wed, Sep 4, 2019 at 3:19 PM Nick Desaulniers wrote: > > + (folks recommended by ./scripts/get_maintainer.pl ) > (See also, step 7: > https://nickdesaulniers.github.io/blog/2017/05/16/submitting-your-first-patch-to-the-linux-kernel-and-responding-to-feedback/) > > On Wed, Sep 4, 2019 at 2:45 PM

x86/purgatory: undefined symbol __stack_chk_fail

2019-09-03 Thread Andreas Smas
Hi, For me, kernels built including this commit b059f801a937 (x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS) results in kexec() failing to load the kernel: kexec: Undefined symbol: __stack_chk_fail kexec-bzImage64: Loading purgatory failed Can be seen: $ readelf -a arch/x86/