From 715e7aadec737d21cb034713210909063429ceb2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 23 Nov 1998 22:38:48 +0000 Subject: [PATCH] fix for arm-pe linker testsuite failures - only define an entry symbol if one has been specified. --- ld/ChangeLog | 5 +++++ ld/emultempl/pe.em | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index e1fc6d6aa4..3339ec7e7e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 23 14:36:18 1998 Nick Clifton + + * emultempl/pe.em (after_parse): Only create an undefined entry + symbol if one has been specified. + 1998-11-23 DJ Delorie * emultempl/pe.em (gld_i386pe_after_open): call diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index b5ee2d1ca7..1742961fb3 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; -- 2.34.1