Instead of using a PICGOT relocation for map, use just a pc-relative one
since it is guaranteed to be close enough. Fixes issue with binutils-2.21.1a (probably a bug).
This commit is contained in:
parent
605462e842
commit
41d70a0317
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: flt_rounds.S,v 1.2 2002/06/06 23:04:35 fvdl Exp $ */
|
/* $NetBSD: flt_rounds.S,v 1.3 2011/09/28 15:11:42 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Written by J.T. Conklin, Apr 4, 1995
|
* Written by J.T. Conklin, Apr 4, 1995
|
||||||
@ -21,7 +21,7 @@ ENTRY(__flt_rounds)
|
|||||||
shrl $10,%eax
|
shrl $10,%eax
|
||||||
andl $3,%eax
|
andl $3,%eax
|
||||||
#ifdef PIC
|
#ifdef PIC
|
||||||
leaq PIC_GOT(_map),%rcx
|
leaq _map(%rip),%rcx
|
||||||
movb (%rcx,%rax,1),%al
|
movb (%rcx,%rax,1),%al
|
||||||
#else
|
#else
|
||||||
movb _map(,%rax,1),%al
|
movb _map(,%rax,1),%al
|
||||||
|
Loading…
x
Reference in New Issue
Block a user