diff options
author | Richard Henderson <rth@redhat.com> | 2001-06-11 09:21:52 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-06-11 09:21:52 -0700 |
commit | f90e86cd003cdc54584fdeb5cef84af0e12634cb (patch) | |
tree | d0149d9aa6aa6febb03ea58cf7784c0f00b671c6 /gcc | |
parent | e8bec1365a2f7540ff3d703d84a1ebddbf217487 (diff) | |
download | gcc-f90e86cd003cdc54584fdeb5cef84af0e12634cb.zip gcc-f90e86cd003cdc54584fdeb5cef84af0e12634cb.tar.gz gcc-f90e86cd003cdc54584fdeb5cef84af0e12634cb.tar.bz2 |
* config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols.
From-SVN: r43194
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/alpha/osf.h | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1c52d0..cac511c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-06-11 Richard Henderson <rth@redhat.com> + + * config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols. + 2001-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * configure.in: Align --help messages. diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h index 7f49585..1aecf33 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}}}" |