From: David Edelsohn <dje@watson.ibm.com>
To: Andrew Pinski <pinskia@physics.uc.edu>
Cc: binutils@sources.redhat.com, Gcc ML <gcc@gcc.gnu.org>,
Kris Warkentin <kewarken@qnx.com>
Subject: Re: ppc problem with .rodata.str1.4. binutils requirement for gcc 3.3.1?
Date: Sat, 29 Nov 2003 04:20:00 -0000 [thread overview]
Message-ID: <200311290420.hAT4K8T30938@makai.watson.ibm.com> (raw)
In-Reply-To: Message from Andrew Pinski <pinskia@physics.uc.edu> of "Fri, 28 Nov 2003 20:09:49 PST." <E0214C72-2221-11D8-AABA-000393A6D2F2@physics.uc.edu>
Corrected patch.
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:19:16 -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:19:17 -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,15005 ----
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, rw_relocs);
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:19:17 -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 ----
next prev parent reply other threads:[~2003-11-29 4:20 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-24 18:26 Release 2.12 Hans-Peter Nilsson
2001-10-24 18:38 ` Alan Modra
2001-10-24 18:43 ` David O'Brien
2001-10-24 19:30 ` Alan Modra
2001-10-24 19:35 ` MMIX (was: Re: Release 2.12) Hans-Peter Nilsson
2001-10-24 21:45 ` Release 2.12 Eric Christopher
2001-10-25 8:41 ` H . J . Lu
2001-10-25 8:47 ` H . J . Lu
2001-10-24 18:49 ` Daniel Jacobowitz
2001-10-24 19:43 ` Alan Modra
2001-10-24 20:10 ` Daniel Jacobowitz
2001-10-24 20:35 ` Alan Modra
2001-10-24 20:44 ` Daniel Jacobowitz
2001-10-25 5:09 ` Christopher C. Chimelis
2001-10-25 1:56 ` Philip Blundell
2001-10-25 8:30 ` H . J . Lu
2001-10-25 8:47 ` David O'Brien
[not found] ` <amodra@bigpond.net.au>
2002-01-04 17:42 ` [Linux-ia64] Compiling kernel 2.4.17 fails at link stage Grant Grundler
2002-01-04 17:59 ` H . J . Lu
2002-01-04 20:37 ` Grant Grundler
2002-01-04 22:39 ` H . J . Lu
2002-01-07 12:52 ` Grant Grundler
2002-01-04 19:21 ` Alan Modra
2003-11-29 2:33 ` ppc problem with .rodata.str1.4. binutils requirement for gcc 3.3.1? David Edelsohn
2003-11-29 3:05 ` Alan Modra
2003-11-29 4:06 ` David Edelsohn
2003-11-29 4:10 ` Andrew Pinski
2003-11-29 4:20 ` David Edelsohn [this message]
2003-11-29 6:47 ` Alan Modra
2003-11-29 19:40 ` David Edelsohn
2004-05-19 15:19 ` Powerpc Linux build fails David Edelsohn
2004-05-20 0:39 ` Alan Modra
2004-05-20 1:24 ` Alan Modra
2004-05-20 1:46 ` Alan Modra
2004-05-20 2:29 ` David Edelsohn
2004-05-20 3:10 ` Alan Modra
2006-08-04 1:49 ` Link problems with section anchors David Edelsohn
2006-08-04 2:04 ` Alan Modra
2001-10-24 19:37 ` Release 2.12 Russ Allbery
2001-10-24 19:52 ` Alan Modra
2001-10-25 0:46 ` H . J . Lu
2001-10-25 8:57 ` David O'Brien
2001-10-25 9:38 ` H . J . Lu
2001-10-25 9:44 ` H . J . Lu
2001-12-31 19:09 Compiling kernel 2.4.17 fails at link stage Krishnakumar B
2002-01-04 3:50 ` Alan Modra
2002-01-04 12:39 ` [Linux-ia64] " Alan Modra
2003-11-28 18:21 ppc problem with .rodata.str1.4. binutils requirement for gcc 3.3.1? Kris Warkentin
[not found] <087e01c3b5da$77d658e0$0202040a@catdog>
2003-11-29 1:42 ` Alan Modra
2003-11-29 18:14 ` Kris Warkentin
[not found] <3A3FC75F7C72D711A7DC009027AC9C4B1788D9@jupiter>
2004-05-19 3:30 ` Powerpc Linux build fails Alan Modra
2004-05-19 4:27 ` Geoff Keating
2004-05-19 5:10 ` Alan Modra
2004-05-19 16:24 ` Kumar Gala
2004-05-20 0:44 ` Alan Modra
[not found] <44D2755E.9020600@us.ibm.com>
2006-08-04 1:30 ` Link problems with section anchors Alan Modra
2006-08-04 9:04 ` Richard Sandiford
2006-08-04 13:53 ` Steven Munroe
2006-08-04 13:54 ` David Edelsohn
2006-08-04 14:01 ` Richard Sandiford
2006-08-04 14:12 ` David Edelsohn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200311290420.hAT4K8T30938@makai.watson.ibm.com \
--to=dje@watson.ibm.com \
--cc=binutils@sources.redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=kewarken@qnx.com \
--cc=pinskia@physics.uc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).