aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2001-09-10 20:59:35 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2001-09-10 16:59:35 -0400
commit51d3e7d6119bd63639eabe9ea35842491c7aba7e (patch)
tree66d9694f7827ade688e119ce7c0d1a80507dc22b
parentbf06b5d8410b3feb3994ab15512a6de0fff9bdb0 (diff)
downloadgcc-51d3e7d6119bd63639eabe9ea35842491c7aba7e.zip
gcc-51d3e7d6119bd63639eabe9ea35842491c7aba7e.tar.gz
gcc-51d3e7d6119bd63639eabe9ea35842491c7aba7e.tar.bz2
* config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
From-SVN: r45522
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000.c2
-rw-r--r--gcc/config/rs6000/t-aix434
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e656e9b..a9c4bd2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-10 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
+
Mon Sep 10 16:26:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* 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 8448682..896842c 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 1327bca..7c0f7eb 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