From 41d70a03178a4e77c92879cd2f66ef96e1092dfb Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 28 Sep 2011 15:11:42 +0000 Subject: [PATCH] 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). --- lib/libc/arch/x86_64/gen/flt_rounds.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/arch/x86_64/gen/flt_rounds.S b/lib/libc/arch/x86_64/gen/flt_rounds.S index 1b23501cde14..e4caf8916860 100644 --- a/lib/libc/arch/x86_64/gen/flt_rounds.S +++ b/lib/libc/arch/x86_64/gen/flt_rounds.S @@ -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 @@ -21,7 +21,7 @@ ENTRY(__flt_rounds) shrl $10,%eax andl $3,%eax #ifdef PIC - leaq PIC_GOT(_map),%rcx + leaq _map(%rip),%rcx movb (%rcx,%rax,1),%al #else movb _map(,%rax,1),%al