From f90e86cd003cdc54584fdeb5cef84af0e12634cb Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 11 Jun 2001 09:21:52 -0700 Subject: [PATCH] * config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols. From-SVN: r43194 --- gcc/ChangeLog | 4 ++++ gcc/config/alpha/osf.h | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1c52d0c09f..cac511cc39d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-06-11 Richard Henderson + + * config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols. + 2001-06-11 Rainer Orth * configure.in: Align --help messages. diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h index 7f49585f236..1aecf33ad39 100644 --- a/gcc/config/alpha/osf.h +++ b/gcc/config/alpha/osf.h @@ -57,11 +57,13 @@ Boston, MA 02111-1307, USA. */ /* Pass "-G 8" to ld because Alpha's CC does. Pass -O3 if we are optimizing, -O1 if we are not. Pass -shared, -non_shared or - -call_shared as appropriate. Also pass -pg. */ + -call_shared as appropriate. Pass -hidden_symbol so that our + constructor and call-frame data structures are not accidentally + overridden. */ #define LINK_SPEC \ "-G 8 %{O*:-O3} %{!O*:-O1} %{static:-non_shared} \ - %{!static:%{shared:-shared} %{!shared:-call_shared}} %{pg} %{taso} \ - %{rpath*}" + %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \ + %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}" #define STARTFILE_SPEC \ "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}" -- 2.30.2