OSX/iOS/ARM64: Fix generation of Mach-O object files.

Thanks to Carlo Cabrera.
This commit is contained in:
Mike Pall 2022-07-22 12:14:40 +02:00
parent 32984282dd
commit 3065c910ad

View File

@ -456,18 +456,18 @@ typedef struct {
uint32_t value; uint32_t value;
} mach_nlist; } mach_nlist;
typedef struct { typedef struct {
uint32_t strx; int32_t strx;
uint8_t type, sect; uint8_t type, sect;
uint16_t desc; uint16_t desc;
uint64_t value; uint64_t value;
} mach_nlist_64; } mach_nlist_64;
typedef struct typedef struct
{ {
uint32_t magic, nfat_arch; int32_t magic, nfat_arch;
} mach_fat_header; } mach_fat_header;
typedef struct typedef struct
{ {
uint32_t cputype, cpusubtype, offset, size, align; int32_t cputype, cpusubtype, offset, size, align;
} mach_fat_arch; } mach_fat_arch;
typedef struct { typedef struct {
struct { struct {