[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kexec
Subject:    Re: kexec/kdump fails to load in ELF symbol relocation on ppc64 arch
From:       Laurent Dufour <ldufour () linux ! vnet ! ibm ! com>
Date:       2014-07-22 13:54:29
Message-ID: 53CE6D15.9060509 () linux ! vnet ! ibm ! com
[Download RAW message or body]

On 22/07/2014 12:42, WANG Chao wrote:
> Hi, Laurent
> 
> With gcc -fexceptions, kexec/kdump fails to load:
> 
>  # kexec -p /boot/vmlinuz
>  Warning: append= option is not passed. Using the first kernel root partition
>  REL24 -157778404 out of range!

Hi Chao,

I think the root cause of the issue is due to an unresolved symbol in
the purgatory. The '_Unwind_Resume' symbol mentioned in the log is
generated by GCC which assumes it will find it somewhere when linking
with the according shared library.
The purgatory is not linked with any library and thus should not be
instrumented as the -fexecptions GCC's option does.
This should be similar to the fix I've done through the commit
7d33c8933ebf where the stack protection mechanism was introducing
unresolved symbols.

I'll look for a patch which is disabling the GCC -fexceptions option
when building the purgatory.

Laurent.


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic