mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue