Add .type _sym,@foo for shared libraries

This commit is contained in:
matt 1998-10-31 02:06:01 +00:00
parent 945f042426
commit 93bbcb05b4
8 changed files with 38 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_argred.S,v 1.1 1995/10/10 23:40:21 ragge Exp $ */
/* $NetBSD: n_argred.S,v 1.2 1998/10/31 02:06:01 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -44,9 +44,11 @@
* method: true range reduction to [-pi/4,pi/4], P. Tang & B. Corbett
* S. McDonald, April 4, 1985
*/
.globl libm$argred
.globl libm$sincos
.text
.globl libm$argred
.type libm$argred,@label
.globl libm$sincos
.type libm$sincos,@label
.align 1
libm$argred:

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_atan2.S,v 1.1 1995/10/10 23:40:25 ragge Exp $ */
/* $NetBSD: n_atan2.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -77,6 +77,7 @@
.text
.align 1
.globl _atan2
.type _atan2,@function
_atan2 :
.word 0x0ff4
movq 4(ap),r2 # r2 = y

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_cabs.S,v 1.1 1995/10/10 23:40:26 ragge Exp $ */
/* $NetBSD: n_cabs.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -46,10 +46,15 @@
.text
.align 1
.globl _cabs
.type _cabs,@function
.globl _hypot
.type _hypot,@function
.globl _z_abs
.type _z_abs,@function
.globl libm$cdabs_r6
.type libm$cdabs_r6,@label
.globl libm$dsqrt_r5
.type libm$dsqrt_r5,@label
/* entry for c functions cabs and hypot */
_cabs:

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_cbrt.S,v 1.1 1995/10/10 23:40:26 ragge Exp $ */
/* $NetBSD: n_cbrt.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -43,8 +43,11 @@
*/
.globl _cbrt
.type _cbrt,@function
.globl _d_cbrt
.globl _dcbrt_
.type _d_cbrt,@function
.globl _dcbrt_
.type _dcbrt_,@function
.text
.align 1

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_infnan.S,v 1.1 1995/10/10 23:40:27 ragge Exp $ */
/* $NetBSD: n_infnan.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -46,11 +46,12 @@ _sccsid:
*
* The Reserved Operand Fault is generated inside of this routine.
*/
.globl _infnan
.set EDOM,33
.set ERANGE,34
.text
.align 1
.globl _infnan
.type _infnan,@function
_infnan:
.word 0x0
cmpl 4(ap),$ERANGE

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_sincos.S,v 1.1 1995/10/10 23:40:28 ragge Exp $ */
/* $NetBSD: n_sincos.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -48,12 +48,13 @@
* method: true range reduction to [-pi/4,pi/4], P. Tang & B. Corbett
* S. McDonald, April 4, 1985
*/
.globl _sin
#include <machine/asm.h>
.text
.align 1
_sin: .word 0xffc # save r2-r11
.globl _sin
.type _sin@function
_sin:
.word 0xffc # save r2-r11
movq 4(ap),r0
bicw3 $0x807f,r0,r2
beql 1f # if x is zero or reserved operand then return x
@ -81,11 +82,12 @@ _sin: .word 0xffc # save r2-r11
* method: true range reduction to [-pi/4,pi/4], P. Tang & B. Corbett
* S. McDonald, April 4, 1985
*/
.globl _cos
.text
.align 1
_cos: .word 0xffc # save r2-r11
.globl _cos
.type _cos,@function
_cos:
.word 0xffc # save r2-r11
movq 4(ap),r0
bicw3 $0x7f,r0,r2
cmpw $0x8000,r2

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_sqrt.S,v 1.1 1995/10/10 23:40:29 ragge Exp $ */
/* $NetBSD: n_sqrt.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -48,8 +48,11 @@
.text
.align 1
.globl _sqrt
.type _sqrt,@function
.globl _d_sqrt
.type _d_sqrt,@function
.globl libm$dsqrt_r5
.type libm$dsqrt_r5,@label
.set EDOM,33
_d_sqrt:

View File

@ -1,4 +1,4 @@
/* $NetBSD: n_tan.S,v 1.1 1995/10/10 23:40:31 ragge Exp $ */
/* $NetBSD: n_tan.S,v 1.2 1998/10/31 02:06:02 matt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@ -46,9 +46,10 @@
* method: true range reduction to [-pi/4,pi/4], P. Tang & B. Corbett
* S. McDonald, April 4, 1985
*/
.globl _tan
.text
.align 1
.globl _tan
.type _tan,@function
_tan: .word 0xffc # save r2-r11
movq 4(ap),r0