this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix elf_calls apple[] variable parsing

+2 -2
+2 -2
src/kernel/libsyscall/wrappers/_libkernel_init.c
··· 31 31 32 32 extern int mach_init(void); 33 33 34 - __attribute__((visibility("hidden"))) 34 + __attribute__((visibility("default"))) 35 35 struct elf_calls* _elfcalls; 36 36 37 37 extern int strncmp(const char *s1, const char *s2, __SIZE_TYPE__ n); ··· 59 59 { 60 60 if (strncmp(apple[i], "elf_calls=", 10) == 0) 61 61 { 62 - uintptr_t table = (uintptr_t) __simple_atoi16(apple[i] + 10, NULL); 62 + uintptr_t table = (uintptr_t) __simple_atoi16(apple[i] + 12, NULL); 63 63 _elfcalls = (struct elf_calls*) table; 64 64 } 65 65 }