* pe-dll.c (pe_dll_id_target): check object target name also
authorDJ Delorie <dj@redhat.com>
Wed, 19 Jul 2000 00:04:04 +0000 (00:04 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 19 Jul 2000 00:04:04 +0000 (00:04 +0000)
ld/ChangeLog
ld/pe-dll.c

index 61d9c5f827e9e9b3a81889465c06ba859b0ed5dc..0b661b562fff00f6c6811426e09eafe95ead0830 100644 (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
index 3fdcbba4df33b274bdb50264c18532a438c376dc..cbd0c495a44ee2eb93c816fdc881c06c97a64ef4 100644 (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;