rs6000.c (rs6000_elf_section_type_flags): Don't set SECTION_WRITE on TARGET_RELOCATABLE.
authorAlan Modra <amodra@bigpond.net.au>
Sun, 30 Nov 2003 04:56:07 +0000 (04:56 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Sun, 30 Nov 2003 04:56:07 +0000 (15:26 +1030)
* config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
set SECTION_WRITE on TARGET_RELOCATABLE.

From-SVN: r74051

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

index f2a88ffcea97979e75d2e95c7c5bc064d146bad0..a236a6add9fe2bcb3b410754e88377f2a2f5d7fe 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
+       set SECTION_WRITE on TARGET_RELOCATABLE.
+
 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
index 24155f3dced04065e169e9afccfb707d79426557..8a7e0e64d95674f6cf12f8aa0f8f1c951a389dd9 100644 (file)
@@ -14991,14 +14991,8 @@ toc_section (void)
 static unsigned int
 rs6000_elf_section_type_flags (tree decl, const char *name, int reloc)
 {
-  unsigned int flags
-    = default_section_type_flags_1 (decl, name, reloc,
-                                   flag_pic || DEFAULT_ABI == ABI_AIX);
-
-  if (TARGET_RELOCATABLE)
-    flags |= SECTION_WRITE;
-
-  return flags;
+  return default_section_type_flags_1 (decl, name, reloc,
+                                      flag_pic || DEFAULT_ABI == ABI_AIX);
 }
 
 /* Record an element in the table of global constructors.  SYMBOL is