From: rth Date: Sun, 12 Aug 2001 17:47:39 +0000 (+0000) Subject: * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5d9353e41cd14f0e5fbb101ca48182433d7ed30;p=thirdparty%2Fgcc.git * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix thinko wrt TARGET_RELOCATABLE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44832 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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;