summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/net/ntohs.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/i386/net/ntohs.S')
-rw-r--r--lib/libc/i386/net/ntohs.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/i386/net/ntohs.S b/lib/libc/i386/net/ntohs.S
index 110faf7..3f0a36a 100644
--- a/lib/libc/i386/net/ntohs.S
+++ b/lib/libc/i386/net/ntohs.S
@@ -43,7 +43,9 @@
#include <machine/asm.h>
-ENTRY(ntohs)
+ .weak CNAME(ntohs)
+ .set CNAME(ntohs),CNAME(__ntohs)
+ENTRY(__ntohs)
movzwl 4(%esp),%eax
xchgb %al,%ah
ret
OpenPOWER on IntegriCloud