* config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 10 Sep 2001 20:59:35 +0000 (20:59 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 10 Sep 2001 20:59:35 +0000 (16:59 -0400)
From-SVN: r45522

gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/t-aix43

index e656e9b025acbaf8fd7ad837a44bbdbff0a3f6ac..a9c4bd2c46f455dedab671b8af77fea9440e6517 100644 (file)
@@ -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
index 8448682721dbd797a24f4caadc9990cc06ae297c..896842ce123a3a3f814ceed61ef34696a9891a4e 100644 (file)
@@ -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)
index 1327bca0414577992d5181ff2e608fa296bc0bd4..7c0f7eb6920f16216aa0cbfbfbd816f58ecd5487 100644 (file)
@@ -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