summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/net/htonl.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/amd64/net/htonl.S')
-rw-r--r--lib/libc/amd64/net/htonl.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/amd64/net/htonl.S b/lib/libc/amd64/net/htonl.S
index af3354f..6658b69 100644
--- a/lib/libc/amd64/net/htonl.S
+++ b/lib/libc/amd64/net/htonl.S
@@ -43,7 +43,9 @@
#include <machine/asm.h>
-ENTRY(htonl)
+ .weak CNAME(htonl)
+ .set CNAME(htonl),CNAME(__htonl)
+ENTRY(__htonl)
movl 4(%esp),%eax
xchgb %al,%ah
roll $16,%eax
OpenPOWER on IntegriCloud