+2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
+
+ * pe-dll.c (autofilter_objectlist): Add startup objects
+ for profiling.
+ (auto-export): Constify char * p.
+ Extract file basename and use strcmp rather than ststr
+ for object lookup.
+
2001-10-18 Chris Demetriou <cgd@broadcom.com>
* ldmain.c (get_emulation): Improve comment about the handling
{ "crt2.o", 6 },
{ "dllcrt1.o", 9 },
{ "dllcrt2.o", 9 },
+ { "gcrt1.o", 7 },
+ { "gcrt2.o", 7 },
{ NULL, 0 }
};
if (pe_dll_do_default_excludes)
{
- char * p;
+ const char * p;
int len;
if (pe_dll_extra_pe_debug)
}
/* Next, exclude symbols from certain startup objects. */
- afptr = autofilter_objlist;
+ if (abfd && (p = lbasename (abfd->filename)) )
+ {
+ afptr = autofilter_objlist;
while (afptr->name)
{
- if (abfd &&
- (p = strstr (abfd->filename, afptr->name)) &&
- (*(p + afptr->len - 1) == 0))
+ if ( strcmp (p, afptr->name) == 0 )
return 0;
-
afptr ++;
+ }
}
/* Don't try to blindly exclude all symbols