aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1998-11-23 22:38:48 +0000
committerNick Clifton <nickc@redhat.com>1998-11-23 22:38:48 +0000
commit715e7aadec737d21cb034713210909063429ceb2 (patch)
tree62d6a4ed2189be7be30c2ddf1f6b7975f2ede859 /ld/emultempl
parent3feaa5aff84763f8798d6fca9a4b5d15c5c6ecf1 (diff)
downloadfsf-binutils-gdb-715e7aadec737d21cb034713210909063429ceb2.zip
fsf-binutils-gdb-715e7aadec737d21cb034713210909063429ceb2.tar.gz
fsf-binutils-gdb-715e7aadec737d21cb034713210909063429ceb2.tar.bz2
fix for arm-pe linker testsuite failures - only define an entry symbol if one has been specified.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index b5ee2d1..1742961 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -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;