aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-08-12 10:47:39 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-08-12 10:47:39 -0700
commit270fc29ba6a5bf49b3bbc6b6d5d07937b5b0d254 (patch)
tree61fc06c4a3e331986b522a5c9e76491fc135ec60
parentfabafb4127cc14e1a6d0db1e382f32fb01679dc5 (diff)
downloadgcc-270fc29ba6a5bf49b3bbc6b6d5d07937b5b0d254.zip
gcc-270fc29ba6a5bf49b3bbc6b6d5d07937b5b0d254.tar.gz
gcc-270fc29ba6a5bf49b3bbc6b6d5d07937b5b0d254.tar.bz2
rs6000.c (rs6000_elf_section_type_flags): Fix thinko wrt TARGET_RELOCATABLE.
* config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix thinko wrt TARGET_RELOCATABLE. From-SVN: r44832
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9ed2dfd..ccdd136 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 783f8e1..924c244 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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;