(LINK_SPEC): Inhibit the default -e if -r or -nostdlib.
authorRichard Stallman <rms@gnu.org>
Tue, 14 Jul 1992 03:29:37 +0000 (03:29 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 14 Jul 1992 03:29:37 +0000 (03:29 +0000)
From-SVN: r1585

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

index c30a1ccb7796315cb2bd06f81ca589f9118678d1..0d53c33cbe82616c63af322666eefe5e3c6f6fd4 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 2e78399ae330e2069363510a726d72a7105b7a15..802d68cdd061c3df9b7685eb7a3f9f5e2dcbfb45 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.  */