From 621b401de4d9fc38a6a63965768e600b6a1e0a5d Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Tue, 17 Apr 2007 04:19:45 +0000 Subject: [PATCH] set the function attribute on the asm memcpy. This should fix the loader problem some folks were seeing on beos binaries. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20732 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/string/arch/x86/arch_string.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/libroot/posix/string/arch/x86/arch_string.S b/src/system/libroot/posix/string/arch/x86/arch_string.S index c5bf8afec4..822cb9c8ed 100644 --- a/src/system/libroot/posix/string/arch/x86/arch_string.S +++ b/src/system/libroot/posix/string/arch/x86/arch_string.S @@ -3,10 +3,10 @@ ** Distributed under the terms of the NewOS License. */ -.globl memcpy +#define FUNCTION(x) .global x; .type x,@function; x .align 4 -memcpy: +FUNCTION(memcpy): pushl %esi pushl %edi movl 12(%esp),%edi /* dest */