PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED]

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11901

           Summary: set_fpscr isn't PIC even when __PIC__ defined; bad for
                    prelinking, causes glibc-3.2.3 check-textrel test to
                    fail
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dank at kegel dot com
                CC: gcc-bugs at gcc dot gnu dot org,kkojima at rr dot iij4u
                    dot or dot jp
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-*-linux-gnu

set_fpscr contains the line "mov.l LOCAL(set_fpscr_L1),r1"
which generates non-PIC code.  This causes the glibc-2.3.2
check-textrel regression test to fail, and probably gets
in the way of prelinking.  
A patch by Kaz to fix this is at 
http://www.kegel.com/crosstool/current/gcc-3.3-patches/sh-pic-set_fpscr.patch
It seems to fix the problem for me.
Please include this patch in gcc-3.3.2.

Reply via email to