]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
OSX/iOS/ARM64: Fix generation of Mach-O object files.
authorMike Pall <mike>
Fri, 22 Jul 2022 10:14:40 +0000 (12:14 +0200)
committerMike Pall <mike>
Fri, 22 Jul 2022 10:14:40 +0000 (12:14 +0200)
Thanks to Carlo Cabrera.

src/jit/bcsave.lua

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