]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make versioned symbols only for shared library.
authorUlrich Drepper <drepper@redhat.com>
Thu, 26 Feb 1998 17:16:26 +0000 (17:16 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 26 Feb 1998 17:16:26 +0000 (17:16 +0000)
Fix ENOSYS branch.

sysdeps/unix/sysv/linux/alpha/getitimer.S
sysdeps/unix/sysv/linux/alpha/getrusage.S
sysdeps/unix/sysv/linux/alpha/gettimeofday.S
sysdeps/unix/sysv/linux/alpha/select.S
sysdeps/unix/sysv/linux/alpha/setitimer.S
sysdeps/unix/sysv/linux/alpha/settimeofday.S
sysdeps/unix/sysv/linux/alpha/syscalls.list
sysdeps/unix/sysv/linux/alpha/utimes.S
sysdeps/unix/sysv/linux/alpha/wait4.S

index 03ae6ea4910cf25e7410eab5f139f9b6ee11ee72..9ba849fcacd23a03ebf90d8bf2caecb6cce77eb0 100644 (file)
 
 .text
 
-LEAF(__getitimer_tv64, 16)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define GETITIMER      __getitimer_tv64
+#else
+#define GETITIMER      getitimer
+#endif
+
+LEAF(GETITIMER, 16)
        ldgp    gp, 0(pv)
        subq    sp, 16, sp
 #ifdef PROF
@@ -62,7 +68,7 @@ LEAF(__getitimer_tv64, 16)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -94,6 +100,8 @@ $error:
        addq    sp, 16, sp
        jmp     zero, (pv), __syscall_error
 
-END(__getitimer_tv64)
+END(GETITIMER)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__getitimer_tv64, getitimer, GLIBC_2.1)
+#endif
index d875c83771691f482c16929b04d834f05759ff9a..fbbe6f793138b0bbaa06bbb05bf07fa4add5a84c 100644 (file)
 
 .text
 
-LEAF(__getrusage_tv64, 16)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define GETRUSAGE      __getrusage_tv64
+#else
+#define GETRUSAGE      getrusage
+#endif
+
+LEAF(GETRUSAGE, 16)
        ldgp    gp, 0(pv)
        subq    sp, 16, sp
 #ifdef PROF
@@ -62,7 +68,7 @@ LEAF(__getrusage_tv64, 16)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -122,6 +128,8 @@ $error:
        addq    sp, 16, sp
        jmp     zero, (pv), __syscall_error
 
-END(__getrusage_tv64)
+END(GETRUSAGE)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__getrusage_tv64, getrusage, GLIBC_2.1)
+#endif
index bceeefc0a7c6fa5bb964e44de77ad1da558a62ba..6f7082f1b088d6feba77da3e049946f1a50e42da 100644 (file)
 
 .text
 
-LEAF(__gettimeofday_tv64, 16)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define GETTIMEOFDAY   __gettimeofday_tv64
+#else
+#define GETTIMEOFDAY   __gettimeofday
+#endif
+
+LEAF(GETTIMEOFDAY, 16)
        ldgp    gp, 0(pv)
        subq    sp, 16, sp
 #ifdef PROF
@@ -62,7 +68,7 @@ LEAF(__gettimeofday_tv64, 16)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -91,8 +97,9 @@ $error:
        addq    sp, 16, sp
        jmp     zero, (pv), __syscall_error
 
-END(__gettimeofday_tv64)
+END(GETTIMEOFDAY)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__gettimeofday_tv64, __gettimeofday, GLIBC_2.1)
 
 /* It seems to me to be a misfeature of the assembler that we can only
@@ -100,3 +107,6 @@ default_symbol_version (__gettimeofday_tv64, __gettimeofday, GLIBC_2.1)
    The 'p' is for 'public'.  *Shrug*  */
 strong_alias (__gettimeofday_tv64, __gettimeofday_tv64p)
 default_symbol_version (__gettimeofday_tv64p, gettimeofday, GLIBC_2.1)
+#else
+weak_alias (__gettimeofday, gettimeofday)
+#endif
index 73076b915846762439c0dc356857a4b7e3d6a584..c854f7fd3047a27f6cc1a3da628715b28213904e 100644 (file)
 
 .text
 
-LEAF(__select_tv64, 64)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define SELECT __select_tv64
+#else
+#define SELECT __select
+#endif
+
+LEAF(SELECT, 64)
        ldgp    gp, 0(pv)
        subq    sp, 64, sp
 #ifdef PROF
@@ -64,7 +70,7 @@ LEAF(__select_tv64, 64)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -105,8 +111,9 @@ $error:
        addq    sp, 64, sp
        jmp     zero, (pv), __syscall_error
 
-END(__select_tv64)
+END(SELECT)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__select_tv64, __select, GLIBC_2.1)
 
 /* It seems to me to be a misfeature of the assembler that we can only
@@ -114,3 +121,6 @@ default_symbol_version (__select_tv64, __select, GLIBC_2.1)
    The 'p' is for 'public'.  *Shrug*  */
 strong_alias (__select_tv64, __select_tv64p)
 default_symbol_version (__select_tv64p, select, GLIBC_2.1)
+#else
+weak_alias (__select, select)
+#endif
index a2085cc29e46c08811a6f6fdc670dd913073efdd..e57acc20207513ff831ea5fcd51af3e7fc4f144d 100644 (file)
 
 .text
 
-LEAF(__setitimer_tv64, 48)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define SETITIMER      __setitimer_tv64
+#else
+#define SETITIMER      __setitimer
+#endif
+
+LEAF(SETITIMER, 48)
        ldgp    gp, 0(pv)
        subq    sp, 48, sp
 #ifdef PROF
@@ -63,7 +69,7 @@ LEAF(__setitimer_tv64, 48)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -110,8 +116,9 @@ $error:
        addq    sp, 48, sp
        jmp     zero, (pv), __syscall_error
 
-END(__setitimer_tv64)
+END(SETITIMER)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__setitimer_tv64, __setitimer, GLIBC_2.1)
 
 /* It seems to me to be a misfeature of the assembler that we can only
@@ -119,3 +126,6 @@ default_symbol_version (__setitimer_tv64, __setitimer, GLIBC_2.1)
    The 'p' is for 'public'.  *Shrug*  */
 strong_alias (__setitimer_tv64, __setitimer_tv64p)
 default_symbol_version (__setitimer_tv64p, setitimer, GLIBC_2.1)
+#else
+weak_alias (__setitimer, setitimer)
+#endif
index b730df71369341134cb7c699198e4ef967373ac5..ae129ecc1c8f9823731cc26228e9ba24c98a320e 100644 (file)
 
 .text
 
-LEAF(__settimeofday_tv64, 16)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define SETTIMEOFDAY   __settimeofday_tv64
+#else
+#define SETTIMEOFDAY   __settimeofday
+#endif
+
+LEAF(SETTIMEOFDAY, 16)
        ldgp    gp, 0(pv)
        subq    sp, 16, sp
 #ifdef PROF
@@ -61,7 +67,7 @@ LEAF(__settimeofday_tv64, 16)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -91,8 +97,9 @@ $error:
        addq    sp, 16, sp
        jmp     zero, (pv), __syscall_error
 
-END(__settimeofday_tv64)
+END(SETTIMEOFDAY)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__settimeofday_tv64, __settimeofday, GLIBC_2.1)
 
 /* It seems to me to be a misfeature of the assembler that we can only
@@ -100,3 +107,6 @@ default_symbol_version (__settimeofday_tv64, __settimeofday, GLIBC_2.1)
    The 'p' is for 'public'.  *Shrug*  */
 strong_alias (__settimeofday_tv64, __settimeofday_tv64p)
 default_symbol_version (__settimeofday_tv64p, settimeofday, GLIBC_2.1)
+#else
+weak_alias (__settimeofday, settimeofday)
+#endif
index 59c0cb8a0987b9698100bf5a597f1f713623885b..26d4f1525828824c55cc0fdf69ad408e31c51caa 100644 (file)
@@ -64,9 +64,10 @@ pciconfig_write      EXTRA   pciconfig_write 5       pciconfig_write
 # support old timeval32 entry points
 osf_select     -       osf_select      5       __select_tv32  __select@GLIBC_2.0 select@GLIBC_2.0
 osf_gettimeofday -     osf_gettimeofday 2      __gettimeofday_tv32  __gettimeofday@GLIBC_2.0 gettimeofday@GLIBC_2.0
-osf_settimeofday -     osf_settimeofday 2      __settimeofday_tv32  settimeofday@GLIBC_2.0
-osf_getitimer  -       osf_getitimer   2       __getitimer_tv32  getitimer@GLIBC_2.0
-osf_setitimer  -       osf_setitimer   3       __setitimer_tv32  setitimer@GLIBC_2.0
-osf_utimes     -       osf_utimes      2       __utimes_tv32  utimes@GLIBC_2.0
-osf_getrusage  -       osf_getrusage   2       __getrusage_tv32  getrusage@GLIBC_2.0
-osf_wait4      -       osf_wait4       2       __wait4_tv32  wait4@GLIBC_2.0
+osf_settimeofday -     osf_settimeofday 2      __settimeofday_tv32  __settimeofday@GLIBC_2.0 settimeofday@GLIBC_2.0
+osf_getitimer  -       osf_getitimer   2       __getitimer_tv32  __getitimer@GLIBC_2.0 getitimer@GLIBC_2.0
+osf_setitimer  -       osf_setitimer   3       __setitimer_tv32  __setitimer@GLIBC_2.0 setitimer@GLIBC_2.0
+osf_utimes     -       osf_utimes      2       __utimes_tv32  __utimes@GLIBC_2.0 utimes@GLIBC_2.0
+osf_getrusage  -       osf_getrusage   2       __getrusage_tv32  __getrusage@GLIBC_2.0 getrusage@GLIBC_2.0
+osf_wait4      -       osf_wait4       2       __wait4_tv32  __wait4@GLIBC_2.0 wait4@GLIBC_2.0
+old_adjtimex   -       old_adjtimex    1       __adjtimex_tv32  __adjtimex@GLIBC_2.0 adjtimex@GLIBC_2.0
index 2b4c71e410b82441229cc4676cc2cebdba1a2d63..a1d2b1513c1c27bbb9c1b07658570a73f896bacb 100644 (file)
 
 .text
 
-LEAF(__utimes_tv64, 16)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define UTIMES __utimes_tv64
+#else
+#define UTIMES __utimes
+#endif
+
+LEAF(UTIMES, 16)
        ldgp    gp, 0(pv)
        subq    sp, 16, sp
 #ifdef PROF
@@ -62,7 +68,7 @@ LEAF(__utimes_tv64, 16)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -96,8 +102,9 @@ $error:
        addq    sp, 16, sp
        jmp     zero, (pv), __syscall_error
 
-END(__utimes_tv64)
+END(UTIMES)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__utimes_tv64, __utimes, GLIBC_2.1)
 
 /* It seems to me to be a misfeature of the assembler that we can only
@@ -105,3 +112,6 @@ default_symbol_version (__utimes_tv64, __utimes, GLIBC_2.1)
    The 'p' is for 'public'.  *Shrug*  */
 strong_alias (__utimes_tv64, __utimes_tv64p)
 default_symbol_version (__utimes_tv64p, utimes, GLIBC_2.1)
+#else
+weak_alias (__utimes, utimes)
+#endif
index 5ab86077c8f7541b65f5e6079ed09eb45c006a75..334836f5aaaf976b6225984cd3ec4539d4f0a0b3 100644 (file)
 
 .text
 
-LEAF(__wait4_tv64, 32)
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
+#define WAIT4  __wait4_tv64
+#else
+#define WAIT4  __wait4
+#endif
+
+LEAF(WAIT4, 32)
        ldgp    gp, 0(pv)
        subq    sp, 32, sp
 #ifdef PROF
@@ -64,7 +70,7 @@ LEAF(__wait4_tv64, 32)
        /* If we didn't get ENOSYS, it is a real error.  */
        .align 3
 $err64:        cmpeq   v0, ENOSYS, t0
-       bne     t0, $error
+       beq     t0, $error
        stl     t0, __libc_missing_axp_tv64
 
        /* Recover the saved arguments.  */
@@ -79,7 +85,7 @@ $do32:        ldi     v0, SYS_ify(osf_wait4)
        bne     a3, $error
 
        /* Copy back to proper format.  */
-       ldq     a3, 8(sp)
+       ldq     a3, 24(sp)
        beq     a3, 2f
        ldl     t0, 0(a3)               # ru_utime.tv_sec
        ldl     t1, 4(a3)               # ru_utime.tv_usec
@@ -98,6 +104,7 @@ $do32:       ldi     v0, SYS_ify(osf_wait4)
        ldt     $f25, 96(a3)            # ru_msgrcv
        ldt     $f26, 104(a3)           # ru_nsignals
        ldt     $f27, 112(a3)           # ru_nvcsw
+       .set noat
        ldt     $f28, 120(a3)           # ru_nivcsw
        stq     t0, 0(a3)
        stq     t1, 8(a3)
@@ -117,6 +124,7 @@ $do32:      ldi     v0, SYS_ify(osf_wait4)
        stt     $f26, 120(a3)
        stt     $f27, 128(a3)
        stt     $f28, 136(a3)
+       .set at
 
 2:     addq    sp, 32, sp
        ret
@@ -127,8 +135,9 @@ $error:
        addq    sp, 32, sp
        jmp     zero, (pv), __syscall_error
 
-END(__wait4_tv64)
+END(WAIT4)
 
+#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 default_symbol_version (__wait4_tv64, __wait4, GLIBC_2.1)
 
 /* It seems to me to be a misfeature of the assembler that we can only
@@ -136,3 +145,6 @@ default_symbol_version (__wait4_tv64, __wait4, GLIBC_2.1)
    The 'p' is for 'public'.  *Shrug*  */
 strong_alias (__wait4_tv64, __wait4_tv64p)
 default_symbol_version (__wait4_tv64p, wait4, GLIBC_2.1)
+#else
+weak_alias (__wait4, wait4)
+#endif