Fix unresolved _libc_*() references in libc by creating weak aliases
to the respective system call entry points.
This commit is contained in:
parent
39fb813864
commit
ecf6d6cb6d
@ -47,6 +47,7 @@ LLABEL(name,1):
|
||||
|
||||
#define SYSCALL(name) \
|
||||
LEAF(name,0); /* XXX # of args? */ \
|
||||
WEAK_ALIAS(__CONCAT(_libc_,name), name); \
|
||||
CALLSYS_ERROR(name)
|
||||
|
||||
#define SYSCALL_NOERROR(name) \
|
||||
@ -67,6 +68,7 @@ END(name)
|
||||
|
||||
#define PSEUDO(label,name) \
|
||||
LEAF(label,0); /* XXX # of args? */ \
|
||||
WEAK_ALIAS(__CONCAT(_libc_,name), name); \
|
||||
CALLSYS_ERROR(name); \
|
||||
RET; \
|
||||
END(label);
|
||||
|
Loading…
Reference in New Issue
Block a user