Adjust so that we don't use relocations which can't exist in a shared

library.
This commit is contained in:
Doug Rabson 2001-10-10 10:35:01 +00:00
parent d7ed89186f
commit d9ed7b41fe
4 changed files with 10 additions and 5 deletions

View File

@ -39,12 +39,14 @@ EXPORT(minbrk)
.text
ENTRY(brk, 1)
add r14=@gprel(minbrk),gp ;;
add r14=@ltoff(minbrk),gp ;;
ld8 r14=[r14] ;;
ld8 r14=[r14] ;;
cmp.ltu p6,p0=in0,r14 ;;
(p6) mov in0=r14
CALLSYS_ERROR(break)
add r14=@gprel(curbrk),gp ;;
add r14=@ltoff(curbrk),gp ;;
ld8 r14=[r14] ;;
st8 [r14]=in0
mov ret0=0
br.ret.sptk.few rp

View File

@ -31,7 +31,8 @@
#include "SYS.h"
ENTRY(ptrace, 4)
add r14=@gprel(errno),gp ;;
add r14=@ltoff(errno),gp ;;
ld8 r14=[r14] ;;
st4 [r14]=r0
CALLSYS_ERROR(ptrace)
br.ret.sptk.few rp

View File

@ -40,7 +40,8 @@ EXPORT(curbrk)
ENTRY(sbrk, 1)
alloc r14=ar.pfs,1,2,0,0
add loc0=@gprel(curbrk),gp ;;
add loc0=@ltoff(curbrk),gp ;;
ld8 loc0=[loc0] ;;
ld8 loc1=[loc0]
cmp.eq p6,p0=in0,r0
(p6) br.dpnt.few 1f

View File

@ -33,7 +33,8 @@
IMPORT(_logname_valid, 4) /* in getlogin() */
SYSCALL(setlogin)
add r14=@gprel(_logname_valid),gp ;;
add r14=@ltoff(_logname_valid),gp ;;
ld8 r14=[r14] ;;
st4 [r14]=r0 /* clear it */
br.ret.sptk.few rp
END(setlogin)