From 161e497b88568532b94151c2f6b2e0a2fcebc5b4 Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Fri, 12 Mar 1999 04:37:21 +0000 Subject: Fixes to the currently unused PIC support in the powerpc asm files. contact rahnds@openbsd.org before attempting to use this funcationality. --- lib/libc/arch/powerpc/SYS.h | 4 ++-- lib/libc/arch/powerpc/gen/setjmp.S | 4 ++-- lib/libc/arch/powerpc/sys/sbrk.S | 2 +- lib/libc/arch/powerpc/sys/sigprocmask.S | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/arch/powerpc/SYS.h b/lib/libc/arch/powerpc/SYS.h index 135452a60f1..38a6de5321d 100644 --- a/lib/libc/arch/powerpc/SYS.h +++ b/lib/libc/arch/powerpc/SYS.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)SYS.h 8.1 (Berkeley) 6/4/93 - * $Id: SYS.h,v 1.4 1999/02/01 07:56:14 d Exp $ + * $Id: SYS.h,v 1.5 1999/03/12 04:37:20 rahnds Exp $ */ #include @@ -59,7 +59,7 @@ #endif /* !__STDC__ */ #define PSEUDO_SUFFIX cmpwi 0, 0 ; \ beqlr+ ; \ - b cerror + b PIC_PLT(_ASM_LABEL(cerror)) #define SUFFIX PSEUDO_SUFFIX diff --git a/lib/libc/arch/powerpc/gen/setjmp.S b/lib/libc/arch/powerpc/gen/setjmp.S index 9632d3fabbf..7023b1468c0 100644 --- a/lib/libc/arch/powerpc/gen/setjmp.S +++ b/lib/libc/arch/powerpc/gen/setjmp.S @@ -38,7 +38,7 @@ ENTRY(setjmp) stw 0, JMP_lr(3) mr 31, 3 li 3, 0 - bl sigblock + bl PIC_PLT(sigblock) stw 3, JMP_sig(31) /* should sigstack be checked and saved */ mr 3, 31 @@ -86,7 +86,7 @@ ENTRY(longjmp) mr 30, 3 mr 31, 4 lwz 3, JMP_sig(3) - bl sigsetmask + bl PIC_PLT(sigsetmask) /* should we deal with sigonstack here ?? */ mr 4, 31 mr 3, 30 diff --git a/lib/libc/arch/powerpc/sys/sbrk.S b/lib/libc/arch/powerpc/sys/sbrk.S index 0cf807a5d6a..9a990d8fc8b 100644 --- a/lib/libc/arch/powerpc/sys/sbrk.S +++ b/lib/libc/arch/powerpc/sys/sbrk.S @@ -20,7 +20,7 @@ PREFIX2(sbrk,break) #else mflr 10 bl _GLOBAL_OFFSET_TABLE_@local-4 - mflr 4 + mflr 9 mtlr 10 lwz 6,_ASM_LABEL(curbrk)@got(9) #endif diff --git a/lib/libc/arch/powerpc/sys/sigprocmask.S b/lib/libc/arch/powerpc/sys/sigprocmask.S index 6b2cd018874..8398b932842 100644 --- a/lib/libc/arch/powerpc/sys/sigprocmask.S +++ b/lib/libc/arch/powerpc/sys/sigprocmask.S @@ -22,7 +22,7 @@ PREFIX(sigprocmask) /* didnt work? */ cmpwi 0, 0 beq+ .L_sigprocmask_ok - b cerror + b PIC_PLT(_ASM_LABEL(cerror)) .L_sigprocmask_ok: lwz 5, 12(1) -- cgit v1.2.3