From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22154 invoked by alias); 29 Nov 2003 04:06:56 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 22138 invoked from network); 29 Nov 2003 04:06:55 -0000 Received: from unknown (HELO igw2.watson.ibm.com) (129.34.20.6) by sources.redhat.com with SMTP; 29 Nov 2003 04:06:55 -0000 Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57]) by igw2.watson.ibm.com (8.11.7-20030924/8.11.4) with ESMTP id hAT46OC58902; Fri, 28 Nov 2003 23:06:24 -0500 Received: from makai.watson.ibm.com (localhost [127.0.0.1]) by sp1n293en1.watson.ibm.com (8.11.7-20030924/8.11.7) with ESMTP id hAT46Nq60614; Fri, 28 Nov 2003 23:06:23 -0500 Received: from makai.watson.ibm.com (localhost [127.0.0.1]) by makai.watson.ibm.com (AIX5.1/8.11.6p2/8.11.0/03-06-2002) with ESMTP id hAT46IT28816; Fri, 28 Nov 2003 23:06:18 -0500 Message-Id: <200311290406.hAT46IT28816@makai.watson.ibm.com> To: Kris Warkentin , Gcc ML , binutils@sources.redhat.com Subject: Re: ppc problem with .rodata.str1.4. binutils requirement for gcc 3.3.1? In-Reply-To: Message from Alan Modra of "Sat, 29 Nov 2003 13:35:41 +1030." <20031129030541.GV2508@bubble.sa.bigpond.net.au> References: <087e01c3b5da$77d658e0$0202040a@catdog> <20031129014255.GT2508@bubble.sa.bigpond.net.au> <200311290232.hAT2WPT28318@makai.watson.ibm.com> <20031129030541.GV2508@bubble.sa.bigpond.net.au> Date: Sat, 29 Nov 2003 04:06:00 -0000 From: David Edelsohn X-SW-Source: 2003-11/txt/msg00504.txt.bz2 >>>>> Alan Modra writes: Alan> See the thread starting with Alan> http://gcc.gnu.org/ml/gcc-patches/2003-10/msg01516.html Okay, how about the following patch. David Index: eabi.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/rs6000/eabi.h,v retrieving revision 1.11 diff -c -p -r1.11 eabi.h *** eabi.h 10 Jun 2003 16:01:39 -0000 1.11 --- eabi.h 29 Nov 2003 04:03:02 -0000 *************** *** 55,57 **** --- 55,60 ---- #define TARGET_E500 (rs6000_cpu == PROCESSOR_PPC8540) #define TARGET_ISEL rs6000_isel #define TARGET_FPRS (!rs6000_float_gprs) + + /* Generate entries in .fixup for relocatable addresses. */ + #define RELOCATABLE_NEEDS_FIXUP Index: rs6000.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v retrieving revision 1.550 diff -c -p -r1.550 rs6000.c *** rs6000.c 14 Nov 2003 20:05:34 -0000 1.550 --- rs6000.c 29 Nov 2003 04:03:02 -0000 *************** toc_section (void) *** 14991,15002 **** 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; } --- 14991,15006 ---- static unsigned int rs6000_elf_section_type_flags (tree decl, const char *name, int reloc) { ! int rw_relocs = flag_pic || DEFAULT_ABI == ABI_AIX; ! unsigned int flags; ! ! #ifdef RELOCATABLE_NEEDS_FIXUP if (TARGET_RELOCATABLE) ! rw_relocs = 1; ! #endif ! ! flags = default_section_type_flags_1 (decl, name, reloc, ! flag_pic || DEFAULT_ABI == ABI_AIX); return flags; } Index: sysv4.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v retrieving revision 1.142 diff -c -p -r1.142 sysv4.h *** sysv4.h 18 Nov 2003 12:56:44 -0000 1.142 --- sysv4.h 29 Nov 2003 04:03:02 -0000 *************** ncrtn.o%s" *** 1346,1351 **** #define TARGET_ASM_EXCEPTION_SECTION readonly_data_section #define DOUBLE_INT_ASM_OP "\t.quad\t" - - /* Generate entries in .fixup for relocatable addresses. */ - #define RELOCATABLE_NEEDS_FIXUP --- 1346,1348 ----