diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-02-03 23:22:53 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-02-03 23:22:53 +0000 |
commit | 9a1d92541ff2e864aab682d66fba7ea2555ef13b (patch) | |
tree | a5b3b673f66207a42c5f53618a328d934b08d8fc /nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S | |
parent | 65dc3b75044cc4847e8c523c22daec12fa51702f (diff) | |
download | glibc-9a1d92541ff2e864aab682d66fba7ea2555ef13b.tar glibc-9a1d92541ff2e864aab682d66fba7ea2555ef13b.tar.gz glibc-9a1d92541ff2e864aab682d66fba7ea2555ef13b.tar.bz2 glibc-9a1d92541ff2e864aab682d66fba7ea2555ef13b.zip |
Consistently use macros for x86 PIC thunks.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S b/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S index f31d968bc5..158633d4bb 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S +++ b/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2007, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -52,8 +52,7 @@ __pthread_once: Get the fork generation counter now. */ 6: movl (%ebx), %eax #ifdef PIC - call __i686.get_pc_thunk.cx - addl $_GLOBAL_OFFSET_TABLE_, %ecx + LOAD_PIC_REG(cx) #endif 5: movl %eax, %edx @@ -181,15 +180,3 @@ __pthread_once_internal = __pthread_once .globl pthread_once pthread_once = __pthread_once - - -#ifdef PIC - .section .gnu.linkonce.t.__i686.get_pc_thunk.cx,"ax",@progbits - .globl __i686.get_pc_thunk.cx - .hidden __i686.get_pc_thunk.cx - .type __i686.get_pc_thunk.cx,@function -__i686.get_pc_thunk.cx: - movl (%esp), %ecx; - ret - .size __i686.get_pc_thunk.cx,.-__i686.get_pc_thunk.cx -#endif |