From 084b0fb0ecbae7b0dbf73f2322e7d3a7597b1bcd Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 25 Oct 2016 22:08:31 -0700 Subject: [PATCH] compel/handle-elf.c: handle R_PPC64_REL32 When compiled with clang-3.8 on ppc, compel complains: > GEN criu/pie/parasite-native-blob.h > parasite_native_blob: Error (compel/src/lib/handle-elf-host.c:541): > Unsupported relocation of type 26 Look into R_PPC64_REL64/R_PPC64_ADDR64 and handle 32-bit the same way. travis-ci: success for PPC+clang compile fixes Cc: Laurent Dufour Signed-off-by: Kir Kolyshkin Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- compel/src/lib/handle-elf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compel/src/lib/handle-elf.c b/compel/src/lib/handle-elf.c index 32759fe0f..c6b7874cc 100644 --- a/compel/src/lib/handle-elf.c +++ b/compel/src/lib/handle-elf.c @@ -415,6 +415,7 @@ int __handle_elf(void *mem, size_t size) break; case R_PPC64_ADDR32: + case R_PPC64_REL32: pr_debug("\t\t\tR_PPC64_ADDR32 at 0x%-4lx val 0x%x\n", place, (unsigned int)(value32 + addend32)); pr_out(" { .offset = 0x%-8x, .type = COMPEL_TYPE_INT, "