make it work on ppc Mac OS X (off_t is 64 bit and is not converted
to 32 bit unsigned int when calling sputl() since it is a macro
* as/link/lkar.c: changed the initialization of This->loaded
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5348
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2009-01-24 Borut Razem <borut.razem AT siol.net>
+
+ * as/asranlib/asranlib.h: changed type of offset to unsigned int to
+ make it work on ppc Mac OS X (off_t is 64 bit and is not converted
+ to 32 bit unsigned int when calling sputl() since it is a macro
+ * as/link/lkar.c: changed the initialization of This->loaded
+
2009-01-23 Borut Razem <borut.razem AT siol.net>
* as/link/lkar.h: changed type of ar_size to size_t to make it work on
};
struct symbol_s *symlist, *lastsym;
-off_t offset, first_member_offset;
+unsigned int offset, first_member_offset;
int
add_symbol (const char *sym, void *param)
This = This->next;
}
This->next = NULL;
- This->loaded = -1;
+ This->loaded = 0;
This->libspc = lbnh->libspc;
This->offset = offset;
This->relfil = get_member_name_by_offset (libfp, offset); /* member name */
ThisSym->next = (pmlibrarysymbol) new (sizeof (mlibrarysymbol));
ThisSym = ThisSym->next;
}
- This->loaded = 0;
ThisSym->next = NULL;
ThisSym->name = sym;
}