From: Richard Henderson Date: Sun, 12 Aug 2001 17:47:39 +0000 (-0700) Subject: rs6000.c (rs6000_elf_section_type_flags): Fix thinko wrt TARGET_RELOCATABLE. X-Git-Tag: prereleases/libstdc++-3.0.95~2702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270fc29ba6a5bf49b3bbc6b6d5d07937b5b0d254;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ed2dfdb2b33..ccdd136c921a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-12 Richard Henderson + + * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix + thinko wrt TARGET_RELOCATABLE. + 2001-08-12 Neil Booth * fix-header.c (cb_file_change): Update prototype. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 783f8e16aad7..924c2445ef09 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;