mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
* 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.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
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>
|
2001-10-18 Chris Demetriou <cgd@broadcom.com>
|
||||||
|
|
||||||
* ldmain.c (get_emulation): Improve comment about the handling
|
* ldmain.c (get_emulation): Improve comment about the handling
|
||||||
|
14
ld/pe-dll.c
14
ld/pe-dll.c
@ -241,6 +241,8 @@ static autofilter_entry_type autofilter_objlist[] =
|
|||||||
{ "crt2.o", 6 },
|
{ "crt2.o", 6 },
|
||||||
{ "dllcrt1.o", 9 },
|
{ "dllcrt1.o", 9 },
|
||||||
{ "dllcrt2.o", 9 },
|
{ "dllcrt2.o", 9 },
|
||||||
|
{ "gcrt1.o", 7 },
|
||||||
|
{ "gcrt2.o", 7 },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -418,7 +420,7 @@ auto_export (abfd, d, n)
|
|||||||
|
|
||||||
if (pe_dll_do_default_excludes)
|
if (pe_dll_do_default_excludes)
|
||||||
{
|
{
|
||||||
char * p;
|
const char * p;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (pe_dll_extra_pe_debug)
|
if (pe_dll_extra_pe_debug)
|
||||||
@ -440,16 +442,16 @@ auto_export (abfd, d, n)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Next, exclude symbols from certain startup objects. */
|
/* Next, exclude symbols from certain startup objects. */
|
||||||
afptr = autofilter_objlist;
|
|
||||||
|
|
||||||
|
if (abfd && (p = lbasename (abfd->filename)) )
|
||||||
|
{
|
||||||
|
afptr = autofilter_objlist;
|
||||||
while (afptr->name)
|
while (afptr->name)
|
||||||
{
|
{
|
||||||
if (abfd &&
|
if ( strcmp (p, afptr->name) == 0 )
|
||||||
(p = strstr (abfd->filename, afptr->name)) &&
|
|
||||||
(*(p + afptr->len - 1) == 0))
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
afptr ++;
|
afptr ++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't try to blindly exclude all symbols
|
/* Don't try to blindly exclude all symbols
|
||||||
|
Reference in New Issue
Block a user