Make regtest work back again.
2 make[2]: *** [/gcc-3.3-glibc-2.3.2/build-glibc/elf/check-textrel.out] Error 1
3 in glibc's "make tests".
7 Message-Id: <200307300255.h6U2tB906928@r-rr.iij4u.or.jp>
10 Subject: Re: Writing PIC version of __udivsi3_i4? (was: Re: "make tests" fails
11 with "libc.so: text relocations used" in glibc-2.3.2 for sh4)
12 In-Reply-To: Your message of "Wed, 30 Jul 2003 11:20:49 +0900"
13 <200307300212.h6U2CH901209@r-rr.iij4u.or.jp>
14 References: <200307300212.h6U2CH901209@r-rr.iij4u.or.jp>
15 Date: Wed, 30 Jul 2003 12:03:01 +0900
16 From: kaz Kojima <kkojima@rr.iij4u.or.jp>
18 > I'll try to write the PIC version of it,
20 Dan, does the attached patch work for you?
22 [dank: original patch deleted; here's same thing rediffed against gcc-3.3 instead of HEAD]
24 --- gcc-3.3/gcc/config/sh/lib1funcs.asm.old Tue Jul 29 21:37:29 2003
25 +++ gcc-3.3/gcc/config/sh/lib1funcs.asm Tue Jul 29 21:40:58 2003
26 @@ -1792,7 +1792,17 @@
27 .global GLOBAL(set_fpscr)
32 + mova LOCAL(set_fpscr_L0),r0
33 + mov.l LOCAL(set_fpscr_L0),r12
35 + mov.l LOCAL(set_fpscr_L1),r0
39 mov.l LOCAL(set_fpscr_L1),r1
44 @@ -1820,8 +1830,16 @@
50 + .long _GLOBAL_OFFSET_TABLE_
52 + .long GLOBAL(fpscr_values@GOT)
55 .long GLOBAL(fpscr_values)
59 .comm GLOBAL(fpscr_values),8,4