patches/binutils/2.14/binutils-sh-relocs.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/binutils/2.14/binutils-sh-relocs.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +Message-Id: <200307311239.h6VCdNe27056@r-rr.iij4u.or.jp>
     1.5 +To: dank@kegel.com
     1.6 +Cc: kkojima@rr.iij4u.or.jp
     1.7 +Subject: Re: Writing PIC version of __udivsi3_i4? (was: Re: "make tests" fails
     1.8 + with "libc.so: text relocations used" in glibc-2.3.2 for sh4)
     1.9 +In-Reply-To: Your message of "Wed, 30 Jul 2003 21:55:54 -0700"
    1.10 +	<3F28A15A.5010400@kegel.com>
    1.11 +References: <3F28A15A.5010400@kegel.com>
    1.12 +Date: Thu, 31 Jul 2003 21:47:38 +0900
    1.13 +From: kaz Kojima <kkojima@rr.iij4u.or.jp>
    1.14 +
    1.15 +Dan Kegel <dank@kegel.com> wrote:
    1.16 +>> I'll give binutils-2.14.90.0.5 a shot, then. 
    1.17 +> 
    1.18 +> No joy - same problem.  Guess I'll take this up on binutils and/or libc-alpha.
    1.19 +
    1.20 +Please try the patch below, though it's a diff against the current
    1.21 +binutils CVS.
    1.22 +
    1.23 +Regards,
    1.24 +	kaz
    1.25 +--
    1.26 +diff -u3p ORIG/src/bfd/elf32-sh.c LOCAL/src/bfd/elf32-sh.c
    1.27 +--- src/bfd/elf32-sh.c.old	Fri Jul 25 14:46:58 2003
    1.28 ++++ src/bfd/elf32-sh.c	Thu Jul 31 21:09:38 2003
    1.29 +@@ -6497,8 +6497,10 @@ sh_elf_check_relocs (bfd *abfd, struct b
    1.30 + 							  sreloc, 2))
    1.31 + 			return FALSE;
    1.32 + 		    }
    1.33 ++#if 0
    1.34 + 		  if (sec->flags & SEC_READONLY)
    1.35 + 		    info->flags |= DF_TEXTREL;
    1.36 ++#endif
    1.37 + 		  elf_section_data (sec)->sreloc = sreloc;
    1.38 + 		}
    1.39 + 
    1.40 +
    1.41 +