From: Richard Stallman Date: Tue, 14 Jul 1992 03:29:37 +0000 (+0000) Subject: (LINK_SPEC): Inhibit the default -e if -r or -nostdlib. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f31889abb324ef69138d2d1f9cc22715eb985d6;p=gcc.git (LINK_SPEC): Inhibit the default -e if -r or -nostdlib. From-SVN: r1585 --- diff --git a/gcc/config/m68k/sun2o4.h b/gcc/config/m68k/sun2o4.h index c30a1ccb779..0d53c33cbe8 100644 --- a/gcc/config/m68k/sun2o4.h +++ b/gcc/config/m68k/sun2o4.h @@ -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) \ diff --git a/gcc/config/m68k/sun3.h b/gcc/config/m68k/sun3.h index 2e78399ae33..802d68cdd06 100644 --- a/gcc/config/m68k/sun3.h +++ b/gcc/config/m68k/sun3.h @@ -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. */