From: Richard Henderson Date: Mon, 11 Jun 2001 16:21:52 +0000 (-0700) Subject: * config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols. X-Git-Tag: prereleases/libstdc++-3.0.95~3848 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f90e86cd003cdc54584fdeb5cef84af0e12634cb;p=thirdparty%2Fgcc.git * config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols. From-SVN: r43194 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1c52d0c09f1..cac511cc39d5 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 7f49585f2364..1aecf33ad391 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}}}"