Pārlūkot izejas kodu

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

Thanks to Carlo Cabrera.
Mike Pall 3 gadi atpakaļ
vecāks
revīzija
3065c910ad
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/jit/bcsave.lua

+ 3 - 3
src/jit/bcsave.lua

@@ -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 {