fix for arm-pe linker testsuite failures - only define an entry symbol if one has...
authorNick Clifton <nickc@redhat.com>
Mon, 23 Nov 1998 22:38:48 +0000 (22:38 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 23 Nov 1998 22:38:48 +0000 (22:38 +0000)
ld/ChangeLog
ld/emultempl/pe.em

index e1fc6d6aa4e094105927d78f4720ddd569b0d12d..3339ec7e7e37209d4a375e71c07f2505490d98e1 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov 23 14:36:18 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * emultempl/pe.em (after_parse): Only create an undefined entry
+       symbol if one has been specified.
+
 1998-11-23  DJ Delorie  <dj@cygnus.com>
 
        * emultempl/pe.em (gld_i386pe_after_open): call
index b5ee2d1ca77d5add5fe8b8f279748399a3527dcb..1742961fb3aee940aef3bfe75aa16e58dcb84423 100644 (file)
@@ -516,7 +516,8 @@ gld_${EMULATION_NAME}_after_parse ()
      opened, so registering the symbol as undefined will make a
      difference.  */
 
-  ldlang_add_undef (entry_symbol);
+  if (entry_symbol)
+    ldlang_add_undef (entry_symbol);
 }
 
 static struct bfd_link_hash_entry *pe_undef_found_sym;