(LINK_SPEC): Inhibit the default -e if -r or -nostdlib.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 1992 03:29:37 +0000 (03:29 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 1992 03:29:37 +0000 (03:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1585 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/m68k/sun2o4.h
gcc/config/m68k/sun3.h

index c30a1cc..0d53c33 100644 (file)
@@ -92,7 +92,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #endif
 
 #undef LINK_SPEC
-#define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic}"
+#define LINK_SPEC \
+  "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic}"
 
 #undef ASM_OUTPUT_DOUBLE
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)                                  \
index 2e78399..802d68c 100644 (file)
@@ -148,7 +148,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Provide required defaults for linker -e and -d switches.  */
 
 #define LINK_SPEC \
- "%{!nostdlib:%{!e*:-e start}} -dc -dp %{static:-Bstatic} %{assert*}"
+ "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}"
 
 /* Every structure or union's size must be a multiple of 2 bytes.  */