This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11901] New: set_fpscr isn't PIC even when __PIC__ defined; bad for prelinking, causes glibc-3.2.3 check-textrel test to fail
- From: "dank at kegel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2003 03:26:46 -0000
- Subject: [Bug target/11901] New: set_fpscr isn't PIC even when __PIC__ defined; bad for prelinking, causes glibc-3.2.3 check-textrel test to fail
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
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.