svn commit: r229693 - in head/lib/libc: powerpc powerpc64
Andreas Tobler
andreast at FreeBSD.org
Fri Jan 6 09:21:41 UTC 2012
Author: andreast
Date: Fri Jan 6 09:21:40 2012
New Revision: 229693
URL: http://svn.freebsd.org/changeset/base/229693
Log:
Use the macro WEAK_ALIAS. Tested on 32 and 64-bit.
Modified:
head/lib/libc/powerpc/SYS.h
head/lib/libc/powerpc64/SYS.h
Modified: head/lib/libc/powerpc/SYS.h
==============================================================================
--- head/lib/libc/powerpc/SYS.h Fri Jan 6 09:17:34 2012 (r229692)
+++ head/lib/libc/powerpc/SYS.h Fri Jan 6 09:21:40 2012 (r229693)
@@ -44,10 +44,8 @@
.align 2; \
2: b PIC_PLT(CNAME(HIDENAME(cerror))); \
ENTRY(__CONCAT(__sys_,x)); \
- .weak CNAME(x); \
- .set CNAME(x),CNAME(__CONCAT(__sys_,x)); \
- .weak CNAME(__CONCAT(_,x)); \
- .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(x,__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(__CONCAT(_,x),__CONCAT(__sys_,x)); \
_SYSCALL(x); \
bso 2b
@@ -55,8 +53,7 @@ ENTRY(__CONCAT(__sys_,x)); \
.text; \
.align 2; \
ENTRY(__CONCAT(__sys_,x)); \
- .weak CNAME(__CONCAT(_,x)); \
- .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(__CONCAT(_,x),__CONCAT(__sys_,x)); \
_SYSCALL(x); \
bnslr; \
b PIC_PLT(CNAME(HIDENAME(cerror)))
@@ -66,10 +63,8 @@ ENTRY(__CONCAT(__sys_,x)); \
.align 2; \
2: b PIC_PLT(CNAME(HIDENAME(cerror))); \
ENTRY(__CONCAT(__sys_,x)); \
- .weak CNAME(x); \
- .set CNAME(x),CNAME(__CONCAT(__sys_,x)); \
- .weak CNAME(__CONCAT(_,x)); \
- .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(x,__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(__CONCAT(_,x), __CONCAT(__sys_,x)); \
_SYSCALL(x); \
bnslr; \
b PIC_PLT(CNAME(HIDENAME(cerror)))
Modified: head/lib/libc/powerpc64/SYS.h
==============================================================================
--- head/lib/libc/powerpc64/SYS.h Fri Jan 6 09:17:34 2012 (r229692)
+++ head/lib/libc/powerpc64/SYS.h Fri Jan 6 09:21:40 2012 (r229693)
@@ -52,10 +52,8 @@
mtlr %r0; \
blr; \
ENTRY(__CONCAT(__sys_,x)); \
- .weak CNAME(x); \
- .set CNAME(x),CNAME(__CONCAT(__sys_,x)); \
- .weak CNAME(__CONCAT(_,x)); \
- .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(x,__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(__CONCAT(_,x),__CONCAT(__sys_,x)); \
_SYSCALL(x); \
bso 2b
@@ -63,8 +61,7 @@ ENTRY(__CONCAT(__sys_,x)); \
.text; \
.align 2; \
ENTRY(__CONCAT(__sys_,x)); \
- .weak CNAME(__CONCAT(_,x)); \
- .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(__CONCAT(_,x),__CONCAT(__sys_,x)); \
_SYSCALL(x); \
bnslr; \
mflr %r0; \
@@ -81,10 +78,8 @@ ENTRY(__CONCAT(__sys_,x)); \
.text; \
.align 2; \
ENTRY(__CONCAT(__sys_,x)); \
- .weak CNAME(x); \
- .set CNAME(x),CNAME(__CONCAT(__sys_,x)); \
- .weak CNAME(__CONCAT(_,x)); \
- .set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(x,__CONCAT(__sys_,x)); \
+ WEAK_ALIAS(__CONCAT(_,x), __CONCAT(__sys_,x)); \
_SYSCALL(x); \
bnslr; \
\
More information about the svn-src-head
mailing list