From 51d3e7d6119bd63639eabe9ea35842491c7aba7e Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 10 Sep 2001 20:59:35 +0000 Subject: [PATCH] * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o). From-SVN: r45522 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.c | 2 +- gcc/config/rs6000/t-aix43 | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e656e9b025a..a9c4bd2c46f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-09-10 David Edelsohn + + * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o). + Mon Sep 10 16:26:44 2001 Richard Kenner * builtins.c (c_getstr): Correct thinko in last change and further diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 8448682721d..896842ce123 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -807,7 +807,7 @@ reg_or_logical_cint_operand (op, mode) return gpc_reg_operand (op, mode); } -/* Return 1 if the operand is an operand that can be loaded via the GOT */ +/* Return 1 if the operand is an operand that can be loaded via the GOT. */ int got_operand (op, mode) diff --git a/gcc/config/rs6000/t-aix43 b/gcc/config/rs6000/t-aix43 index 1327bca0414..7c0f7eb6920 100644 --- a/gcc/config/rs6000/t-aix43 +++ b/gcc/config/rs6000/t-aix43 @@ -58,7 +58,9 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ rm -f @multilib_dir@/shr.o # $(slibdir) double quoted to protect it from expansion while building # libgcc.mk. We want this delayed until actual install time. -SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(slibdir)/ +# Install the shared library without read-other permission so that it +# is loaded into the process private segment. +SHLIB_INSTALL = $(INSTALL) -m 751 @shlib_base_name@.a $$(slibdir)/ SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac` SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver