Loading...
--- dyld/dyld-360.22/src/threadLocalVariables.c
+++ dyld/dyld-239.4/src/threadLocalVariables.c
@@ -78,7 +78,7 @@
-#if __has_feature(tls) || __arm64__ || __arm__
+#if __has_feature(tls)
typedef struct TLVHandler {
struct TLVHandler *next;
@@ -237,8 +237,8 @@
if ( (sect->flags & SECTION_TYPE) == S_THREAD_LOCAL_INIT_FUNCTION_POINTERS ) {
typedef void (*InitFunc)(void);
InitFunc* funcs = (InitFunc*)(sect->addr + slide);
- const size_t count = sect->size / sizeof(uintptr_t);
- for (size_t i=count; i > 0; --i) {
+ const uint32_t count = sect->size / sizeof(uintptr_t);
+ for (uint32_t i=count; i > 0; --i) {
InitFunc func = funcs[i-1];
func();
}
@@ -401,7 +401,7 @@
if ( list->allocCount == list->allocCount ) {
// handle resizing allocation
uint32_t newAllocCount = list->allocCount * 2;
- size_t newAllocSize = offsetof(struct TLVTerminatorList, entries[newAllocCount]);
+ uint32_t newAllocSize = offsetof(struct TLVTerminatorList, entries[newAllocCount]);
struct TLVTerminatorList* newlist = (struct TLVTerminatorList*)malloc(newAllocSize);
newlist->allocCount = newAllocCount;
newlist->useCount = list->useCount;