1 See http://gcc.gnu.org/PR11901
3 make[2]: *** [/gcc-3.3-glibc-2.3.2/build-glibc/elf/check-textrel.out] Error 1
4 in glibc's "make tests".
6 Note: this patch is named
7 sh-pic-set_fpscr-gcc-3.3.2.patch
8 and must be applied after
9 sh-lib1funcs_sizeAndType.patch
10 but that'll happen naturally if you apply them in alphabetical order.
14 Date: Wed, 30 Jul 2003 12:03:01 +0900
15 From: kaz Kojima <kkojima@rr.iij4u.or.jp>
16 Subject: [linux-sh:02916] Re: Writing PIC version of __udivsi3_i4? (was: Re: "make tests" fails
17 with "libc.so: text relocations used" in glibc-2.3.2 for sh4)
20 Message-Id: <200307300255.h6U2tB906928@r-rr.iij4u.or.jp>
22 > I'll try to write the PIC version of it,
24 Dan, does the attached patch work for you?
29 diff -u3prN ORIG/gcc/gcc/config/sh/lib1funcs.asm LOCAL/gcc/gcc/config/sh/lib1funcs.asm
30 --- ORIG/gcc/gcc/config/sh/lib1funcs.asm Thu Jun 19 07:38:59 2003
31 +++ gcc-3.3.2/gcc/config/sh/lib1funcs.asm Wed Jul 30 11:08:49 2003
32 @@ -1936,7 +1944,17 @@ GLOBAL(moddi3):
33 FUNC(GLOBAL(set_fpscr))
38 + mova LOCAL(set_fpscr_L0),r0
39 + mov.l LOCAL(set_fpscr_L0),r12
41 + mov.l LOCAL(set_fpscr_L1),r0
45 mov.l LOCAL(set_fpscr_L1),r1
50 @@ -1964,8 +1982,15 @@ GLOBAL(set_fpscr):
56 + .long _GLOBAL_OFFSET_TABLE_
58 + .long GLOBAL(fpscr_values@GOT)
61 .long GLOBAL(fpscr_values)
64 ENDFUNC(GLOBAL(set_fpscr))
65 #ifndef NO_FPSCR_VALUES