src: remove more traces of fictional powerpc64le-darwin

This commit is contained in:
Markus F.X.J. Oberhumer 2022-10-06 15:53:50 +02:00
parent 39c5be43aa
commit 65707900bc
11 changed files with 1257 additions and 1259 deletions

View File

@ -480,10 +480,10 @@ constexpr bool string_ge(const char *a, const char *b) {
#define UPX_F_MACH_ARM64EL 37
#define UPX_F_MACH_PPC64LE 38
//#define UPX_F_MACH_PPC64LE 38 // DOES NOT EXIST
#define UPX_F_LINUX_ELFPPC64LE 39
#define UPX_F_VMLINUX_PPC64LE 40
#define UPX_F_DYLIB_PPC64LE 41
//#define UPX_F_DYLIB_PPC64LE 41 // DOES NOT EXIST
#define UPX_F_LINUX_ELF64_ARM 42

View File

@ -45,7 +45,6 @@
CPU_TYPE_ARM64 = 0x0100000c,
CPU_TYPE_POWERPC = 0x00000012,
CPU_TYPE_POWERPC64 = 0x01000012,
CPU_TYPE_POWERPC64LE = 0x01000021
};
enum { // cpusubtype
CPU_SUBTYPE_ARM_ALL = 0,

View File

@ -214,7 +214,7 @@ const char *Packer::getDecompressorSections() const
|| UPX_F_VMLINUX_PPC32 ==ph.format
|| UPX_F_VMLINUX_PPC64LE ==ph.format
|| UPX_F_MACH_PPC32 ==ph.format
|| UPX_F_MACH_PPC64LE ==ph.format
|| UPX_F_MACH_PPC64 ==ph.format
|| UPX_F_MACH_i386 ==ph.format
|| UPX_F_DYLIB_i386 ==ph.format
) {
@ -257,7 +257,7 @@ void Packer::defineDecompressorSymbols()
|| UPX_F_VMLINUX_PPC32 ==ph.format
|| UPX_F_VMLINUX_PPC64LE ==ph.format
|| UPX_F_MACH_PPC32 ==ph.format
|| UPX_F_MACH_PPC64LE ==ph.format
|| UPX_F_MACH_PPC64 ==ph.format
|| UPX_F_MACH_i386 ==ph.format
|| UPX_F_DYLIB_i386 ==ph.format
) {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,8 @@
/*
* powerpc64le-darwin.dylib-entry.S -- program entry point & decompress (PowerPC64 dylib)
/* powerpc64-darwin.dylib-entry.S -- program entry point & decompress (PowerPC64 dylib)
*
* This file is part of the UPX executable compressor.
*
* Copyright (C) 2005-2021 John F. Reiser
* Copyright (C) 2005-2022 John F. Reiser
* All Rights Reserved.
*
* UPX and the UCL library are free software; you can redistribute them
@ -31,8 +30,8 @@
#endif //}
NBPW= 8 // Number of Bytes Per Word
#include "arch/powerpc/64le/macros.S"
#include "arch/powerpc/64le/ppc_regs.h"
#include "arch/powerpc/64/macros.S"
#include "arch/powerpc/64/ppc_regs.h"
/*************************************************************************
// We have been CALLed as a subroutine from dyld; C-language rules apply.
@ -65,15 +64,15 @@ SZ_DLINE=128 # size of data cache line in Apple G5
#define disp a7
section NRV2E
#include "arch/powerpc/64le/nrv2e_d.S"
#include "arch/powerpc/64/nrv2e_d.S"
section NRV2D
#include "arch/powerpc/64le/nrv2d_d.S"
#include "arch/powerpc/64/nrv2d_d.S"
section NRV2B
#include "arch/powerpc/64le/nrv2b_d.S"
#include "arch/powerpc/64/nrv2b_d.S"
#include "arch/powerpc/64le/lzma_d.S"
#include "arch/powerpc/64/lzma_d.S"
#undef off
#undef len
@ -344,7 +343,7 @@ get4:
blr
unfilter:
#include "arch/powerpc/64le/bxx.S"
#include "arch/powerpc/64/bxx.S"
main:
b main2

View File

@ -1,9 +1,8 @@
/*
* powerpc64le-darwin.macho-entry.S -- program entry point & decompressor (PowerPC32 Mach-o)
/* powerpc64-darwin.macho-entry.S -- program entry point & decompressor (PowerPC64 Mach-o)
*
* This file is part of the UPX executable compressor.
*
* Copyright (C) 2005-2021 John F. Reiser
* Copyright (C) 2005-2022 John F. Reiser
* All Rights Reserved.
*
* UPX and the UCL library are free software; you can redistribute them
@ -31,8 +30,8 @@
#endif //}
NBPW= 8 // Number of Bytes Per Word
#include "arch/powerpc/64le/macros.S"
#include "arch/powerpc/64le/ppc_regs.h"
#include "arch/powerpc/64/macros.S"
#include "arch/powerpc/64/ppc_regs.h"
LINKAREA= 6*8
section MACOS000
@ -57,15 +56,15 @@ SZ_DLINE=128 # size of data cache line in Apple G5
#define disp a7
section NRV2E
#include "arch/powerpc/64le/nrv2e_d.S"
#include "arch/powerpc/64/nrv2e_d.S"
section NRV2D
#include "arch/powerpc/64le/nrv2d_d.S"
#include "arch/powerpc/64/nrv2d_d.S"
section NRV2B
#include "arch/powerpc/64le/nrv2b_d.S"
#include "arch/powerpc/64/nrv2b_d.S"
#include "arch/powerpc/64le/lzma_d.S"
#include "arch/powerpc/64/lzma_d.S"
section NRV_TAIL
eof_nrv:

View File

@ -1,10 +1,10 @@
/* powerpc-darwin.macho-fold.S -- linkage to C code to process Mach-o binary
/* powerpc64-darwin.macho-fold.S -- linkage to C code to process Mach-o binary
*
* This file is part of the UPX executable compressor.
*
* Copyright (C) 1996-2021 Markus Franz Xaver Johannes Oberhumer
* Copyright (C) 1996-2021 Laszlo Molnar
* Copyright (C) 2000-2021 John F. Reiser
* Copyright (C) 1996-2022 Markus Franz Xaver Johannes Oberhumer
* Copyright (C) 1996-2022 Laszlo Molnar
* Copyright (C) 2000-2022 John F. Reiser
* All Rights Reserved.
*
* UPX and the UCL library are free software; you can redistribute them
@ -29,8 +29,8 @@
* <jreiser@users.sourceforge.net>
*/
#include "arch/powerpc/64le/macros.S"
#include "arch/powerpc/64le/ppc_regs.h"
#include "arch/powerpc/64/macros.S"
#include "arch/powerpc/64/ppc_regs.h"
retaddr = 2*8
sz_b_info= 12

View File

@ -1,10 +1,10 @@
/* powerpc64le-darwin.macho-main.c -- loader stub for Mach-o PowerPC64LE
/* powerpc64-darwin.macho-main.c -- loader stub for Mach-o PowerPC64
This file is part of the UPX executable compressor.
Copyright (C) 1996-2021 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2021 Laszlo Molnar
Copyright (C) 2000-2021 John F. Reiser
Copyright (C) 1996-2022 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2022 Laszlo Molnar
Copyright (C) 2000-2022 John F. Reiser
All Rights Reserved.
UPX and the UCL library are free software; you can redistribute them

View File

@ -9,12 +9,12 @@ Idx Name Size VMA LMA File off Algn
4 NRV2B 000000f8 0000000000000000 0000000000000000 000002e0 2**0 CONTENTS, RELOC, READONLY
5 LZMA_ELF00 00000094 0000000000000000 0000000000000000 000003d8 2**0 CONTENTS, RELOC, READONLY
6 LZMA_DEC30 00000028 0000000000000000 0000000000000000 0000046c 2**0 CONTENTS, READONLY
7 LZMA_DEC10 00000bb8 0000000000000000 0000000000000000 00000494 2**0 CONTENTS, READONLY
8 LZMA_DEC20 00000c74 0000000000000000 0000000000000000 0000104c 2**0 CONTENTS, READONLY
9 NRV_TAIL 0000001c 0000000000000000 0000000000000000 00001cc0 2**0 CONTENTS, READONLY
10 CFLUSH 00000024 0000000000000000 0000000000000000 00001cdc 2**0 CONTENTS, READONLY
11 ELFMAINY 00000000 0000000000000000 0000000000000000 00001d00 2**0 CONTENTS, READONLY
12 ELFMAINZ 000002e8 0000000000000000 0000000000000000 00001d00 2**0 CONTENTS, READONLY
7 LZMA_DEC10 00000bc0 0000000000000000 0000000000000000 00000494 2**0 CONTENTS, READONLY
8 LZMA_DEC20 00000c74 0000000000000000 0000000000000000 00001054 2**0 CONTENTS, READONLY
9 NRV_TAIL 0000001c 0000000000000000 0000000000000000 00001cc8 2**0 CONTENTS, READONLY
10 CFLUSH 00000024 0000000000000000 0000000000000000 00001ce4 2**0 CONTENTS, READONLY
11 ELFMAINY 00000000 0000000000000000 0000000000000000 00001d08 2**0 CONTENTS, READONLY
12 ELFMAINZ 000002e8 0000000000000000 0000000000000000 00001d08 2**0 CONTENTS, READONLY
SYMBOL TABLE:
0000000000000000 l d LZMA_DEC30 0000000000000000 LZMA_DEC30
0000000000000000 l d NRV_TAIL 0000000000000000 NRV_TAIL

View File

@ -9,12 +9,12 @@ Idx Name Size VMA LMA File off Algn
4 NRV2B 000000f8 0000000000000000 0000000000000000 000002dc 2**0 CONTENTS, RELOC, READONLY
5 LZMA_ELF00 00000094 0000000000000000 0000000000000000 000003d4 2**0 CONTENTS, RELOC, READONLY
6 LZMA_DEC30 00000028 0000000000000000 0000000000000000 00000468 2**0 CONTENTS, READONLY
7 LZMA_DEC10 00000bb8 0000000000000000 0000000000000000 00000490 2**0 CONTENTS, READONLY
8 LZMA_DEC20 00000c74 0000000000000000 0000000000000000 00001048 2**0 CONTENTS, READONLY
9 NRV_TAIL 0000001c 0000000000000000 0000000000000000 00001cbc 2**0 CONTENTS, READONLY
10 CFLUSH 00000024 0000000000000000 0000000000000000 00001cd8 2**0 CONTENTS, READONLY
11 ELFMAINY 00000000 0000000000000000 0000000000000000 00001cfc 2**0 CONTENTS, READONLY
12 ELFMAINZ 00000058 0000000000000000 0000000000000000 00001cfc 2**0 CONTENTS, READONLY
7 LZMA_DEC10 00000bc0 0000000000000000 0000000000000000 00000490 2**0 CONTENTS, READONLY
8 LZMA_DEC20 00000c74 0000000000000000 0000000000000000 00001050 2**0 CONTENTS, READONLY
9 NRV_TAIL 0000001c 0000000000000000 0000000000000000 00001cc4 2**0 CONTENTS, READONLY
10 CFLUSH 00000024 0000000000000000 0000000000000000 00001ce0 2**0 CONTENTS, READONLY
11 ELFMAINY 00000000 0000000000000000 0000000000000000 00001d04 2**0 CONTENTS, READONLY
12 ELFMAINZ 00000058 0000000000000000 0000000000000000 00001d04 2**0 CONTENTS, READONLY
SYMBOL TABLE:
0000000000000000 l d LZMA_DEC30 0000000000000000 LZMA_DEC30
0000000000000000 l d NRV_TAIL 0000000000000000 NRV_TAIL