Commit a3df8278 by Richard Stallman

(STARTFILE_SPEC): Handle -p and -pg outermost.

(STARTFILE_SPEC): Handle -p and -pg
outermost.  Also add support for cross-linking.

From-SVN: r5692
parent efd57514
......@@ -73,7 +73,7 @@
*/
#define STARTFILE_SPEC \
"%{g*:crt0.o%s -static} %{!g*:%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}"
"%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{g*:-static} %{!static:%{nojump:-nojump}} %{static:-static}}} -L"TOOLDIR"/lib"
/*
*The cross-compile uses this.
......@@ -83,7 +83,7 @@
#else
#define STARTFILE_SPEC \
"%{g*:crt0.o%s -static} %{!g*:%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}"
"%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{g*:-static}%{!static:%{nojump:-nojump}} %{static:-static}}}"
/*
*The native Linux system uses this.
......
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