rs6000.c (rs6000_elf_section_type_flags): Fix thinko wrt TARGET_RELOCATABLE.
authorRichard Henderson <rth@redhat.com>
Sun, 12 Aug 2001 17:47:39 +0000 (10:47 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 12 Aug 2001 17:47:39 +0000 (10:47 -0700)
        * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
        thinko wrt TARGET_RELOCATABLE.

From-SVN: r44832

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 9ed2dfdb2b3358f9335337deaefe170ba0d70a1d..ccdd136c921abd9bbb98e00685d1221e730386c4 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-12  Richard Henderson  <rth@redhat.com>
+
+       * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
+       thinko wrt TARGET_RELOCATABLE.
+
 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * fix-header.c (cb_file_change): Update prototype.
index 783f8e16aad72eca344f05bcd885459d0069d090..924c2445ef097a5b62bf2dffef23c456d816a983 100644 (file)
@@ -8699,10 +8699,8 @@ rs6000_elf_section_type_flags (decl, name, reloc)
 {
   unsigned int flags = default_section_type_flags (decl, name, reloc);
 
-  /* ??? The flag_pic check appears redundant with the DECL_READONLY_SECTION
-     check in default_section_type_flags.  */
-  if (TARGET_RELOCATABLE || flag_pic)
-    flags &= ~SECTION_WRITE;
+  if (TARGET_RELOCATABLE)
+    flags |= SECTION_WRITE;
 
   /* Solaris doesn't like @nobits, and gas can handle .sbss without it.  */
   flags &= ~SECTION_BSS;