thinko wrt TARGET_RELOCATABLE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44832
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
{
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;