diff --git a/src/stub/Makefile b/src/stub/Makefile index 078e1d60..3e99cda8 100644 --- a/src/stub/Makefile +++ b/src/stub/Makefile @@ -1359,7 +1359,9 @@ tc.ppc64le-linux.elf.gcc = powerpc64-linux-gcc-4.9.2 -m64 -mlittle-endian -nost tc.ppc64le-linux.elf.gcc += -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector tc.ppc64le-linux.elf.gcc += -Wall -W -Wcast-align -Wcast-qual -Wstrict-prototypes -Wwrite-strings -Werror -tc.ppc64le-linux.elf.ld = powerpc64-linux-ld-2.25 -b $(tc_bfdname) +tc.ppc64le-linux.elf.ld = powerpc64-linux-ld-2.25 -b $(tc_bfdname) +tc.ppc64le-linux.elf.objcopy = multiarch-objcopy-2.27 -F $(tc_bfdname) +tc.ppc64le-linux.elf.objdump = multiarch-objdump-2.27 -b $(tc_bfdname) ppc64le-linux.elf-entry.h : $(srcdir)/src/$$T.S $(call tc,gcc) -c $< -o tmp/$T.bin diff --git a/src/stub/ppc64le-darwin.dylib-entry.h b/src/stub/ppc64le-darwin.dylib-entry.h index 55208a0a..8bbcd9ac 100644 --- a/src/stub/ppc64le-darwin.dylib-entry.h +++ b/src/stub/ppc64le-darwin.dylib-entry.h @@ -32,13 +32,13 @@ #define STUB_PPC64LE_DARWIN_DYLIB_ENTRY_SIZE 9851 -#define STUB_PPC64LE_DARWIN_DYLIB_ENTRY_ADLER32 0x75d95bd9 -#define STUB_PPC64LE_DARWIN_DYLIB_ENTRY_CRC32 0x3fcb6329 +#define STUB_PPC64LE_DARWIN_DYLIB_ENTRY_ADLER32 0x2a885bc3 +#define STUB_PPC64LE_DARWIN_DYLIB_ENTRY_CRC32 0x9d3b5811 unsigned char stub_ppc64le_darwin_dylib_entry[9851] = { /* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x0010 */ 1, 0, 21, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0,176, 27, 0, 0, 0, 0, 0, 0, +/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0,152, 29, 0, 0, 0, 0, 0, 0, /* 0x0030 */ 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 22, 0, 19, 0, /* 0x0040 */ 166, 2, 72,124, 1, 0, 0, 72,236, 41, 0,124,166, 2,168,125, /* 0x0050 */ 8, 0, 7, 40, 92, 1,130, 64, 0, 0,166,248, 20, 26,132,124, diff --git a/src/stub/ppc64le-darwin.macho-entry.h b/src/stub/ppc64le-darwin.macho-entry.h index 02ced570..3d2cf745 100644 --- a/src/stub/ppc64le-darwin.macho-entry.h +++ b/src/stub/ppc64le-darwin.macho-entry.h @@ -32,13 +32,13 @@ #define STUB_PPC64LE_DARWIN_MACHO_ENTRY_SIZE 9187 -#define STUB_PPC64LE_DARWIN_MACHO_ENTRY_ADLER32 0x9d5e4aa4 -#define STUB_PPC64LE_DARWIN_MACHO_ENTRY_CRC32 0x5d78462f +#define STUB_PPC64LE_DARWIN_MACHO_ENTRY_ADLER32 0x8b1d4a8e +#define STUB_PPC64LE_DARWIN_MACHO_ENTRY_CRC32 0x1d66b327 unsigned char stub_ppc64le_darwin_macho_entry[9187] = { /* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x0010 */ 1, 0, 21, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0, 24, 25, 0, 0, 0, 0, 0, 0, +/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, /* 0x0030 */ 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 22, 0, 19, 0, /* 0x0040 */ 1, 0, 0, 72,236, 41, 0,124,166, 2,168,125, 8, 0, 7, 40, /* 0x0050 */ 92, 1,130, 64, 0, 0,166,248, 20, 26,132,124, 0,128, 0, 60, diff --git a/src/stub/ppc64le-linux.elf-entry.h b/src/stub/ppc64le-linux.elf-entry.h index 4bf5b5f1..e5b40a7f 100644 --- a/src/stub/ppc64le-linux.elf-entry.h +++ b/src/stub/ppc64le-linux.elf-entry.h @@ -32,13 +32,13 @@ #define STUB_PPC64LE_LINUX_ELF_ENTRY_SIZE 9657 -#define STUB_PPC64LE_LINUX_ELF_ENTRY_ADLER32 0xbd87cf84 -#define STUB_PPC64LE_LINUX_ELF_ENTRY_CRC32 0xcd1a5c42 +#define STUB_PPC64LE_LINUX_ELF_ENTRY_ADLER32 0x20e0ce9f +#define STUB_PPC64LE_LINUX_ELF_ENTRY_CRC32 0x65fa7f1a unsigned char stub_ppc64le_linux_elf_entry[9657] = { /* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x0010 */ 1, 0, 21, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0,248, 25, 0, 0, 0, 0, 0, 0, +/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0, 16, 28, 0, 0, 0, 0, 0, 0, /* 0x0030 */ 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 64, 0, 24, 0, 21, 0, /* 0x0040 */ 1, 0, 0, 72,236, 41, 0,124,166, 2,168,125, 8, 0, 7, 40, /* 0x0050 */ 92, 1,130, 64, 0, 0,166,248, 20, 26,132,124, 0,128, 0, 60, diff --git a/src/stub/src/arch/ppc64le/64/Makefile.extra b/src/stub/src/arch/ppc64le/64/Makefile.extra index dea99914..7263409a 100644 --- a/src/stub/src/arch/ppc64le/64/Makefile.extra +++ b/src/stub/src/arch/ppc64le/64/Makefile.extra @@ -30,7 +30,7 @@ include $(top_srcdir)/src/stub/Makefile # ************************************************************************/ lzma_d_c%.S : tc_list = method-lzma ppc64le-linux.elf default -lzma_d_c%.S : tc_bfdname = elf64-ppc64le +lzma_d_c%.S : tc_bfdname = elf64-powerpcle c := tc.method-lzma.gcc $c = $(tc.ppc64le-linux.elf.gcc) @@ -42,6 +42,7 @@ $c += -fwrapv $c += -DWITH_LZMA=$(UPX_LZMA_VERSION) $c += -I$(UPX_LZMADIR) $c += -I$(top_srcdir)/src +$c += -Wno-error lzma_d_c%.S : lzma_d_c.c $(call tc,gcc) $(PP_FLAGS) -c $< -o tmp/$T.o