diff options
author | Mike Pall <mike> | 2022-07-22 12:14:40 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-07-22 12:14:40 +0200 |
commit | 3065c910ad6027031aabe2dfd3c26a3d0f014b4f (patch) | |
tree | 9849304fd6e9d555b9be25337b549f74ed38f30a /src/jit | |
parent | 32984282ddae666b3c94cd27538e1c78b49a1877 (diff) | |
download | luajit-3065c910ad6027031aabe2dfd3c26a3d0f014b4f.tar.gz luajit-3065c910ad6027031aabe2dfd3c26a3d0f014b4f.tar.bz2 luajit-3065c910ad6027031aabe2dfd3c26a3d0f014b4f.zip |
OSX/iOS/ARM64: Fix generation of Mach-O object files.
Thanks to Carlo Cabrera.
Diffstat (limited to 'src/jit')
-rw-r--r-- | src/jit/bcsave.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jit/bcsave.lua b/src/jit/bcsave.lua index adf197c6..f8ed3a1b 100644 --- a/src/jit/bcsave.lua +++ b/src/jit/bcsave.lua | |||
@@ -456,18 +456,18 @@ typedef struct { | |||
456 | uint32_t value; | 456 | uint32_t value; |
457 | } mach_nlist; | 457 | } mach_nlist; |
458 | typedef struct { | 458 | typedef struct { |
459 | uint32_t strx; | 459 | int32_t strx; |
460 | uint8_t type, sect; | 460 | uint8_t type, sect; |
461 | uint16_t desc; | 461 | uint16_t desc; |
462 | uint64_t value; | 462 | uint64_t value; |
463 | } mach_nlist_64; | 463 | } mach_nlist_64; |
464 | typedef struct | 464 | typedef struct |
465 | { | 465 | { |
466 | uint32_t magic, nfat_arch; | 466 | int32_t magic, nfat_arch; |
467 | } mach_fat_header; | 467 | } mach_fat_header; |
468 | typedef struct | 468 | typedef struct |
469 | { | 469 | { |
470 | uint32_t cputype, cpusubtype, offset, size, align; | 470 | int32_t cputype, cpusubtype, offset, size, align; |
471 | } mach_fat_arch; | 471 | } mach_fat_arch; |
472 | typedef struct { | 472 | typedef struct { |
473 | struct { | 473 | struct { |