From 1ff8f81ab3d8242b575a2d2c533f357042c2e8d1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 30 Nov 2003 04:56:07 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2a88ffcea9..a236a6add9f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-30 Alan Modra + + * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't + set SECTION_WRITE on TARGET_RELOCATABLE. + 2003-11-29 Kazu Hirata * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 24155f3dced..8a7e0e64d95 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 -- 2.30.2