Skip to content

Commit

Permalink
Revert r335983.
Browse files Browse the repository at this point in the history
The bfd linker in tree doesn't support multiple names for the same
symbol (at least with current flags).
  • Loading branch information
brooksdavis committed Jul 5, 2018
1 parent 00c8d88 commit b11bbbe
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 56 deletions.
2 changes: 0 additions & 2 deletions lib/libc/sys/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ SRCS+= brk.c
SRCS+= pipe.c
SRCS+= vadvise.c

SRCS+= compat-stub.c

INTERPOSED = \
accept \
accept4 \
Expand Down
6 changes: 6 additions & 0 deletions lib/libc/sys/Symbol.map
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ FBSD_1.0 {
munlockall;
munmap;
nanosleep;
netbsd_lchown;
netbsd_msync;
nfssvc;
nmount;
ntp_adjtime;
Expand Down Expand Up @@ -775,6 +777,10 @@ FBSDprivate_1.0 {
__sys_munmap;
_nanosleep;
__sys_nanosleep;
_netbsd_lchown;
__sys_netbsd_lchown;
_netbsd_msync;
__sys_netbsd_msync;
_nfssvc;
__sys_nfssvc;
_nmount;
Expand Down
50 changes: 0 additions & 50 deletions lib/libc/sys/compat-stub.c

This file was deleted.

7 changes: 5 additions & 2 deletions sys/compat/freebsd32/syscalls.master
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,13 @@
int count); }
273 AUE_NULL UNIMPL nosys
274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); }
275 AUE_NULL OBSOL netbsd_lchown
275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \
gid_t gid); } netbsd_lchown \
lchown_args int
276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \
struct timeval32 *tptr); }
277 AUE_NULL OBSOL netbsd_msync
277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \
int flags); } netbsd_msync msync_args int
278 AUE_STAT COMPAT11|NOPROTO { int nstat(char *path, struct nstat *ub); }
279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); }
280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(char *path, struct nstat *ub); }
Expand Down
7 changes: 5 additions & 2 deletions sys/kern/syscalls.master
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,13 @@
size_t count); }
273 AUE_NULL UNIMPL nosys
274 AUE_LCHMOD STD { int lchmod(_In_z_ char *path, mode_t mode); }
275 AUE_NULL OBSOL netbsd_lchown
275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \
gid_t gid); } netbsd_lchown lchown_args \
int
276 AUE_LUTIMES STD { int lutimes(_In_z_ char *path, \
_In_ struct timeval *tptr); }
277 AUE_NULL OBSOL netbsd_msync
277 AUE_MSYNC NOPROTO { int msync(_In_ void *addr, size_t len, \
int flags); } netbsd_msync msync_args int
278 AUE_STAT COMPAT11 { int nstat(_In_z_ char *path, \
_Out_ struct nstat *ub); }
279 AUE_FSTAT COMPAT11 { int nfstat(int fd, _Out_ struct nstat *sb); }
Expand Down

0 comments on commit b11bbbe

Please sign in to comment.