* 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>.
This commit is contained in:
parent
789be9f7ca
commit
2a275620b1
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
1999-06-12 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
|
* 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>.
|
||||||
|
|
||||||
1999-06-12 David O'Brien <obrien@freebsd.org>
|
1999-06-12 David O'Brien <obrien@freebsd.org>
|
||||||
|
|
||||||
* configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
|
* configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-)
|
(echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-)
|
||||||
cat >>e${EMULATION_NAME}.c <<EOF
|
cat >>e${EMULATION_NAME}.c <<EOF
|
||||||
/* This file is part of GLD, the Gnu Linker.
|
/* 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
|
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
|
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
|
opened, so registering the symbol as undefined will make a
|
||||||
difference. */
|
difference. */
|
||||||
|
|
||||||
if (entry_symbol)
|
if (! link_info.relocateable && entry_symbol != NULL)
|
||||||
ldlang_add_undef (entry_symbol);
|
ldlang_add_undef (entry_symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue