1141
1149
static void GC_dyld_image_add(struct mach_header* hdr, unsigned long slide) {
1142
1150
unsigned long start,end,i;
1143
1151
const struct section *sec;
1146
1153
for(i=0;i<sizeof(GC_dyld_sections)/sizeof(GC_dyld_sections[0]);i++) {
1147
1154
sec = getsectbynamefromheader(
1148
1155
hdr,GC_dyld_sections[i].seg,GC_dyld_sections[i].sect);
1154
1161
start,end,sec->size,GC_dyld_name_for_hdr(hdr));
1156
1163
GC_add_roots((char*)start,(char*)end);
1163
1170
/* This should never be called by a thread holding the lock */