diff options
author | Alan Modra <amodra@bigpond.net.au> | 2003-11-30 04:56:07 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2003-11-30 15:26:07 +1030 |
commit | 1ff8f81ab3d8242b575a2d2c533f357042c2e8d1 (patch) | |
tree | 9ccf944f6f9a99ca6f45574ca8e49e1ff129a623 /gcc | |
parent | a1dce8d1ea700fd91a1d481bdaa0d1fb1c52af27 (diff) | |
download | gcc-1ff8f81ab3d8242b575a2d2c533f357042c2e8d1.zip gcc-1ff8f81ab3d8242b575a2d2c533f357042c2e8d1.tar.gz gcc-1ff8f81ab3d8242b575a2d2c533f357042c2e8d1.tar.bz2 |
rs6000.c (rs6000_elf_section_type_flags): Don't set SECTION_WRITE on TARGET_RELOCATABLE.
* config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
set SECTION_WRITE on TARGET_RELOCATABLE.
From-SVN: r74051
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2a88ff..a236a6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-30 Alan Modra <amodra@bigpond.net.au> + + * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't + set SECTION_WRITE on TARGET_RELOCATABLE. + 2003-11-29 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 24155f3..8a7e0e6 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -14991,14 +14991,8 @@ toc_section (void) static unsigned int rs6000_elf_section_type_flags (tree decl, const char *name, int reloc) { - unsigned int flags - = default_section_type_flags_1 (decl, name, reloc, - flag_pic || DEFAULT_ABI == ABI_AIX); - - if (TARGET_RELOCATABLE) - flags |= SECTION_WRITE; - - return flags; + return default_section_type_flags_1 (decl, name, reloc, + flag_pic || DEFAULT_ABI == ABI_AIX); } /* Record an element in the table of global constructors. SYMBOL is |