* pe-dll.c (pe_dll_id_target): check object target name also

This commit is contained in:
DJ Delorie 2000-07-19 00:04:04 +00:00
parent 4b43d9f691
commit 9d68bc829c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-07-18 DJ Delorie <dj@cygnus.com>
* pe-dll.c (pe_dll_id_target): check object target name also
2000-07-18 Hans-Peter Nilsson <hp@axis.com>
* scripttempl/elf.sc (.init): Only do ${INIT_START} and

View File

@ -137,7 +137,8 @@ pe_dll_id_target (target)
{
int i;
for (i=0; pe_detail_list[i].target_name; i++)
if (strcmp (pe_detail_list[i].target_name, target) == 0)
if (strcmp (pe_detail_list[i].target_name, target) == 0
|| strcmp (pe_detail_list[i].object_target, target) == 0)
{
pe_details = pe_detail_list+i;
return;