--- kexec/arch/ppc64/crashdump-ppc64.h | 4 ++-- purgatory/Makefile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) --- a/kexec/arch/ppc64/crashdump-ppc64.h +++ b/kexec/arch/ppc64/crashdump-ppc64.h @@ -6,9 +6,9 @@ int load_crashdump_segments(struct kexec unsigned long max_addr, unsigned long min_base); void add_usable_mem_rgns(unsigned long long base, unsigned long long size); -#define PAGE_OFFSET 0xC000000000000000 +#define PAGE_OFFSET 0xC000000000000000ULL #define KERNELBASE PAGE_OFFSET -#define VMALLOCBASE 0xD000000000000000 +#define VMALLOCBASE 0xD000000000000000ULL #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) #define MAXMEM (-KERNELBASE-VMALLOCBASE) --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -7,6 +7,9 @@ # should keep us from accidentially include unsafe library functions # or headers. +ifeq ($(ARCH),ppc) +EXTRA_LDFLAGS = -melf64ppc +endif ifeq ($(ARCH),ppc64) EXTRA_LDFLAGS = -melf64ppc endif