about summary refs log tree commit diff
path: root/src/thread/i386
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-14 23:15:08 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-14 23:15:08 -0400
commitc7d19f9923c66a2ddb47272f1e8fec8b804f54c4 (patch)
treeb5eee6681995cd3f661ccfc36fc044ae0330e69f /src/thread/i386
parent836ba93d93f901d25e8ed4ac34209cf547d8e217 (diff)
downloadmusl-c7d19f9923c66a2ddb47272f1e8fec8b804f54c4.tar.gz
musl-c7d19f9923c66a2ddb47272f1e8fec8b804f54c4.tar.xz
musl-c7d19f9923c66a2ddb47272f1e8fec8b804f54c4.zip
restore use of .type in asm, but use modern @function (vs %function)
this seems to be necessary to make the linker accept the functions in
a shared library (perhaps to generate PLT entries?)

strictly speaking libc-internal asm should not need it. i might clean
that up later.
Diffstat (limited to 'src/thread/i386')
-rw-r--r--src/thread/i386/__set_thread_area.s1
-rw-r--r--src/thread/i386/__unmapself.s1
-rw-r--r--src/thread/i386/cancellation2.s2
-rw-r--r--src/thread/i386/cancellation3.s1
-rw-r--r--src/thread/i386/clone.s1
-rw-r--r--src/thread/i386/syscall_cp.s1
6 files changed, 7 insertions, 0 deletions
diff --git a/src/thread/i386/__set_thread_area.s b/src/thread/i386/__set_thread_area.s
index 2a2e31a4..a43525ec 100644
--- a/src/thread/i386/__set_thread_area.s
+++ b/src/thread/i386/__set_thread_area.s
@@ -1,5 +1,6 @@
 .text
 .global __set_thread_area
+.type   __set_thread_area,@function
 __set_thread_area:
 	pushl %ebx
 	movl 8(%esp),%ecx
diff --git a/src/thread/i386/__unmapself.s b/src/thread/i386/__unmapself.s
index b5e9c713..d6569594 100644
--- a/src/thread/i386/__unmapself.s
+++ b/src/thread/i386/__unmapself.s
@@ -1,5 +1,6 @@
 .text
 .global __unmapself
+.type   __unmapself,@function
 __unmapself:
 	movl $91,%eax
 	movl 4(%esp),%ebx
diff --git a/src/thread/i386/cancellation2.s b/src/thread/i386/cancellation2.s
index 6f3f6940..4e4438b5 100644
--- a/src/thread/i386/cancellation2.s
+++ b/src/thread/i386/cancellation2.s
@@ -1,5 +1,6 @@
 .text
 .global __pthread_register_cancel
+.type   __pthread_register_cancel,@function
 __pthread_register_cancel:
 	pushl %eax
 	call __pthread_register_cancel_3
@@ -7,6 +8,7 @@ __pthread_register_cancel:
 	ret
 
 .global __pthread_unregister_cancel
+.type   __pthread_unregister_cancel,@function
 __pthread_unregister_cancel:
 	pushl %eax
 	call __pthread_unregister_cancel_3
diff --git a/src/thread/i386/cancellation3.s b/src/thread/i386/cancellation3.s
index 6096b8ce..88340224 100644
--- a/src/thread/i386/cancellation3.s
+++ b/src/thread/i386/cancellation3.s
@@ -1,5 +1,6 @@
 .text
 .global __pthread_unwind_next
+.type   __pthread_unwind_next,@function
 __pthread_unwind_next:
 	pushl %eax
 	call __pthread_unwind_next_3
diff --git a/src/thread/i386/clone.s b/src/thread/i386/clone.s
index 4133915b..7af5f5db 100644
--- a/src/thread/i386/clone.s
+++ b/src/thread/i386/clone.s
@@ -1,5 +1,6 @@
 .text
 .global __uniclone
+.type   __uniclone,@function
 __uniclone:
 	movl	4(%esp),%ecx
 	subl	$24,%ecx
diff --git a/src/thread/i386/syscall_cp.s b/src/thread/i386/syscall_cp.s
index fa435f32..05e867a1 100644
--- a/src/thread/i386/syscall_cp.s
+++ b/src/thread/i386/syscall_cp.s
@@ -1,5 +1,6 @@
 .text
 .global __syscall_cp_asm
+.type   __syscall_cp_asm,@function
 __syscall_cp_asm:
 	pushl %ebx
 	pushl %esi