diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-12 14:00:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-12 14:00:03 +0000 |
commit | 2a275620b19294bde3a5c574f75b54aba222c76c (patch) | |
tree | 6002e242b9bbde96a6fb6af4989153951a382dd7 /ld/emultempl | |
parent | 789be9f7ca6ca68798072cce33e91ffb245a7f07 (diff) | |
download | gdb-2a275620b19294bde3a5c574f75b54aba222c76c.zip gdb-2a275620b19294bde3a5c574f75b54aba222c76c.tar.gz gdb-2a275620b19294bde3a5c574f75b54aba222c76c.tar.bz2 |
* emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
entry_symbol as an undefined symbol when doing a relocateable
link. From <jeffdb@goodnet.com>.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/pe.em | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 7b213b1..671f490 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -3,7 +3,7 @@ (echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-) cat >>e${EMULATION_NAME}.c <<EOF /* This file is part of GLD, the Gnu Linker. - Copyright 1995, 96, 97, 1998 Free Software Foundation, Inc. + Copyright 1995, 96, 97, 98, 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -534,7 +534,7 @@ gld_${EMULATION_NAME}_after_parse () opened, so registering the symbol as undefined will make a difference. */ - if (entry_symbol) + if (! link_info.relocateable && entry_symbol != NULL) ldlang_add_undef (entry_symbol); } |