Skip to content

Commit

Permalink
Don't build _lwp.o
Browse files Browse the repository at this point in the history
Main reason: it doesn't work or do anything useful here.
  • Loading branch information
anttikantee committed Sep 9, 2015
1 parent 0a5d62b commit c8562ed
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 300 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ rumpremote.sh: rumpremote.sh.in
rumpctrl.sh: rumpctrl.sh.in
sed 's,XXXPATHXXX,$(PWD),' $< > $@

_lwp.o: _lwp_pthread.c ${NBCC}
${NBCC} ${NBCFLAGS} -c $< -o $@

emul.o: emul.c
${CC} ${HOSTCFLAGS} -c $< -o $@

Expand All @@ -113,7 +110,7 @@ pthread_test.o: pthread_test.c ${MAPS} ${NBCC}

MAPS=rump.map namespace.map host.map netbsd.map readwrite.map emul.map weakasm.map

${BINDIR}/halt: halt.o _lwp.o emul.o rumpclient.o readwrite.o remoteinit.o ${MAPS}
${BINDIR}/halt: halt.o emul.o rumpclient.o readwrite.o remoteinit.o ${MAPS}
${NBCC} ${NBCFLAGS} -o ${BINDIR}/halt halt.o

rump.map: ${RUMPSRC}/sys/rump/rump.sysmap
Expand All @@ -134,7 +131,7 @@ rumpobj/${1}/${2}.ro:

NBLIBS.${2}:= $(shell cd ${RUMPSRC}/${1} && ${RUMPMAKE} -V '$${LDADD}' | sed 's/-L\S*//g')
LIBS.${2}=$${NBLIBS.${2}:-l%=rump/lib/lib%.a}
${BINDIR}/${2}: rumpobj/${1}/${2}.ro _lwp.o emul.o rumpclient.o readwrite.o remoteinit.o netbsd_init.o ${MAPS} $${LIBS.${2}}
${BINDIR}/${2}: rumpobj/${1}/${2}.ro emul.o rumpclient.o readwrite.o remoteinit.o netbsd_init.o ${MAPS} $${LIBS.${2}}
${NBCC} ${NBCFLAGS} -o ${BINDIR}/${2} rumpobj/${1}/${2}.ro $${LIBS.${2}}

${2}: ${BINDIR}/${2}
Expand Down
289 changes: 0 additions & 289 deletions _lwp_pthread.c

This file was deleted.

3 changes: 3 additions & 0 deletions emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ STUB(emul_uuidgen);

STUB(emul_minherit);

STUB(emul__lwp_self);
STUB(emul___libc_static_tls_setup);

STUB_ABORT(emul_undelete);
STUB_ABORT(emul_sigqueueinfo);
STUB_ABORT(emul__setcontext);
Expand Down
2 changes: 2 additions & 0 deletions emul.map
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ undelete emul_undelete
uuidgen emul_uuidgen
sigqueueinfo emul_sigqueueinfo
_lwp_kill emul__lwp_kill
_lwp_self emul__lwp_self
_setcontext emul__setcontext
__libc_static_tls_setup emul___libc_static_tls_setup
2 changes: 1 addition & 1 deletion ld.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ${OBJCOPY} --redefine-syms=@PATH@/weakasm.map ${TMPFILE3}
${OBJCOPY} --redefine-syms=@PATH@/readwrite.map ${TMPFILE3}
${OBJCOPY} --redefine-syms=@PATH@/emul.map ${TMPFILE3}
${OBJCOPY} --redefine-syms=@PATH@/netbsd.map ${TMPFILE3}
${CC} ${LDFLAGS} -Wl,-r -nostdlib -Wl,-dc ${TMPFILE3} @PATH@/_lwp.o @PATH@/readwrite.o -o ${TMPFILE4} 2>/dev/null
${CC} ${LDFLAGS} -Wl,-r -nostdlib -Wl,-dc ${TMPFILE3} @PATH@/readwrite.o -o ${TMPFILE4} 2>/dev/null
${OBJCOPY} --redefine-syms=@PATH@/errno.map ${TMPFILE4}
${OBJCOPY} -w --localize-symbol='*' ${TMPFILE4}
${OBJCOPY} -w --globalize-symbol='_netbsd_*' ${TMPFILE4}
Expand Down
2 changes: 1 addition & 1 deletion mkremote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ objcopy --redefine-syms=weakasm.map ${OBJDIR}/tmp1_${NAME}.o
objcopy --redefine-syms=readwrite.map ${OBJDIR}/tmp1_${NAME}.o
objcopy --redefine-syms=emul.map ${OBJDIR}/tmp1_${NAME}.o
objcopy --redefine-syms=netbsd.map ${OBJDIR}/tmp1_${NAME}.o
${CC} ${LDFLAGS} -Wl,-r -nostdlib -Wl,-dc ${OBJDIR}/tmp1_${NAME}.o _lwp.o readwrite.o -o ${OBJDIR}/tmp2_${NAME}.o 2>/dev/null
${CC} ${LDFLAGS} -Wl,-r -nostdlib -Wl,-dc ${OBJDIR}/tmp1_${NAME}.o readwrite.o -o ${OBJDIR}/tmp2_${NAME}.o 2>/dev/null
objcopy --redefine-syms=errno.map ${OBJDIR}/tmp2_${NAME}.o
objcopy -w --localize-symbol='*' ${OBJDIR}/tmp2_${NAME}.o
objcopy -w --globalize-symbol='_netbsd_*' ${OBJDIR}/tmp2_${NAME}.o
Expand Down
2 changes: 0 additions & 2 deletions netbsd_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ _netbsd_init(int stdouttty)

if (stdouttty)
setlinebuf(stdout);

_lwp_rumprun_scheduler_init();
}
2 changes: 0 additions & 2 deletions netbsd_init.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
void _netbsd_init(int);

void _lwp_rumprun_scheduler_init(void);

int rumprun_ucontext(void *, size_t, void (*)(void *), void *, void *, size_t);

0 comments on commit c8562ed

Please sign in to comment.