Commit 270fc29b by Richard Henderson Committed by Richard Henderson

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
parent fabafb41
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> 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
* fix-header.c (cb_file_change): Update prototype. * fix-header.c (cb_file_change): Update prototype.
......
...@@ -8699,10 +8699,8 @@ rs6000_elf_section_type_flags (decl, name, reloc) ...@@ -8699,10 +8699,8 @@ rs6000_elf_section_type_flags (decl, name, reloc)
{ {
unsigned int flags = default_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 if (TARGET_RELOCATABLE)
check in default_section_type_flags. */ flags |= SECTION_WRITE;
if (TARGET_RELOCATABLE || flag_pic)
flags &= ~SECTION_WRITE;
/* Solaris doesn't like @nobits, and gas can handle .sbss without it. */ /* Solaris doesn't like @nobits, and gas can handle .sbss without it. */
flags &= ~SECTION_BSS; flags &= ~SECTION_BSS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment