Use ENTRY/END in custom x86 assembler too.
Change-Id: Ic2e482e5daff29c65d3b2ab0b2111c996bbc6226
diff --git a/libc/arch-x86/bionic/vfork.S b/libc/arch-x86/bionic/vfork.S
index 53910ab..235be0c 100644
--- a/libc/arch-x86/bionic/vfork.S
+++ b/libc/arch-x86/bionic/vfork.S
@@ -1,3 +1,4 @@
+#include <machine/asm.h>
#include <sys/linux-syscalls.h>
#ifndef __NR_vfork
@@ -5,17 +6,12 @@
#endif
- .text
- .type vfork, @function
- .globl vfork
- .align 4
-
/* Get rid of the stack modifications (popl/ret) after vfork() success.
* vfork is VERY sneaky. One has to be very careful about what can be done
* between a successful vfork and a a subsequent execve()
*/
-vfork:
+ENTRY(vfork)
/* grab the return address */
popl %ecx
movl $__NR_vfork, %eax
@@ -28,3 +24,4 @@
orl $-1, %eax
1:
jmp *%ecx
+END(vfork)