On 24/10/2015 14:53, Segher Boessenkool wrote:
On Sat, Oct 24, 2015 at 11:16:59AM +0200, Laurent Vivier wrote:
asm/sigcontext.h:
#ifdef __powerpc64__ #include <asm/elf.h> #endif
to avoid to include here target/include/asm/elf.h, hardcode the path to /usr/include/asm/elf.h in it.
That only works for native builds on powerpc64-linux. Is that all that is wanted here?
Yes, it is.
On a powerpc64 host, when we compile the bootstrap, it includes asm/sigcontext.h, that wants to include asm/elf.h from /usr/include, but instead it includes asm/elf.h from obj-XXX/target/include/. So, I try to include the good one from there.
I've modified elf.h for target ppc, sparc32 and sparc64 because I have tried to cross-compile them on a powrpc64 host.
Segher
Laurent