diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-09-10 00:34:51 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-09-10 00:34:51 +0000 |
commit | 6e1034c3ea69fd7b2b2e1c4d50be5c0fe5e48730 (patch) | |
tree | 2c4bad8b8b3785ea0c07e10b18727e4f0e9f5368 /gcc/config/alpha | |
parent | 56b9ffefa6dc22542f09f7ef67479a64a206a69b (diff) | |
download | gcc-6e1034c3ea69fd7b2b2e1c4d50be5c0fe5e48730.tar.gz |
(HAS_INIT_SECTION): Define.
(LINK_SPEC): Add '-init __main'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8066 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r-- | gcc/config/alpha/alpha.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 0c294417329..cca703a8951 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -51,7 +51,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Pass "-G 8" to ld because Alpha's CC does. Pass -O3 if we are optimizing, -O1 if we are not. Pass -non_shared or -call_shared as appropriate. */ #define LINK_SPEC \ - "-G 8 %{O*:-O3} %{!O*:-O1} %{static:-non_shared} %{!static:-call_shared}" + "-G 8 %{O*:-O3} %{!O*:-O1} %{static:-non_shared} %{!static:-call_shared} \ + -init __main" #define STARTFILE_SPEC \ "%{pg:mcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" @@ -2016,3 +2017,6 @@ do { \ /* The system headers under OSF/1 are C++-aware. */ #define NO_IMPLICIT_EXTERN_C + +/* The linker will stick __main into the .init section. */ +#define HAS_INIT_SECTION |