Commit b67e2a2e by Doug Evans

(LINK_SPEC): Don't pass "-e start" if nostartfiles rather than nostdlib.

From-SVN: r9808
parent b796119f
...@@ -46,7 +46,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -46,7 +46,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Provide required defaults for linker -e. */ /* Provide required defaults for linker -e. */
#define LINK_SPEC "%{!nostdlib:%{!r*:%{!e*:-e start}}}" #define LINK_SPEC "%{!nostartfiles:%{!r*:%{!e*:-e start}}}"
/* VxWorks provides the functionality of crt0.o and friends itself. */ /* VxWorks provides the functionality of crt0.o and friends itself. */
......
...@@ -49,7 +49,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -49,7 +49,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC \ #define LINK_SPEC \
"%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \ "%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
%{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{static:-Bstatic} %{assert*}" %{!nostartfiles:%{!r*:%{!e*:-e __start}}} -dc -dp %{static:-Bstatic} %{assert*}"
/* We have atexit(3). */ /* We have atexit(3). */
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC \ #define LINK_SPEC \
"%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}" "%{!nostartfiles:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}"
/* We have atexit(3). */ /* We have atexit(3). */
......
...@@ -29,7 +29,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -29,7 +29,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Define different binder options for MACH. */ /* Define different binder options for MACH. */
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC \ #define LINK_SPEC \
"-T0x10000000 -D0x20000000 -K %{!nostdlib:%{!r*:%{!e*:-e __start}}} \ "-T0x10000000 -D0x20000000 -K %{!nostartfiles:%{!r*:%{!e*:-e __start}}} \
-bnoso -berrmsg -btextro -bhalt:4 -bnodelcsect" -bnoso -berrmsg -btextro -bhalt:4 -bnodelcsect"
/* MACH doesn't have atexit. */ /* MACH doesn't have atexit. */
......
...@@ -65,7 +65,7 @@ extern enum arch_type sparc_arch_type; ...@@ -65,7 +65,7 @@ extern enum arch_type sparc_arch_type;
/* Provide required defaults for linker -e and -d switches. */ /* Provide required defaults for linker -e and -d switches. */
#define LINK_SPEC \ #define LINK_SPEC \
"%{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp} %{static:-Bstatic} \ "%{!shared:%{!nostartfiles:%{!r*:%{!e*:-e start}}} -dc -dp} %{static:-Bstatic} \
%{assert*} %{shared:-assert pure-text}" %{assert*} %{shared:-assert pure-text}"
/* Special flags to the Sun-4 assembler when using pipe for input. */ /* Special flags to the Sun-4 assembler when using pipe for input. */
......
...@@ -28,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -28,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Provide required defaults for linker -e. */ /* Provide required defaults for linker -e. */
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC "%{!nostdlib:%{!r*:%{!e*:-e start}}}" #define LINK_SPEC "%{!nostartfiles:%{!r*:%{!e*:-e start}}}"
/* VxWorks provides the functionality of crt0.o and friends itself. */ /* VxWorks provides the functionality of crt0.o and friends itself. */
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment