Date: Fri, 6 Apr 2007 20:11:38 +0200 From: Roman Divacky <rdivacky@FreeBSD.org> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: freebsd-current@FreeBSD.org, Norikatsu Shigemura <nork@FreeBSD.org> Subject: Re: Cannot mount linprocfs by unresolving sysvs?m symbols Message-ID: <20070406181138.GA90738@freebsd.org> In-Reply-To: <200704061407.35340.jkim@FreeBSD.org> References: <20070407023855.ede13b76.nork@FreeBSD.org> <20070406174305.GA90217@freebsd.org> <200704061407.35340.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > is there a way to do this nicely? > > Probably we can improve kernel linker to do better job. ;-) I mean, > load all dependencies before look up symbols. thats not what I mean.. what I want is something like if (function_present(foo)) x = foo(); else x = SAFE_VALUE; use x somehow; so we don't have to have all modules loaded etc. the same could be done for some syscalls, imagine linux_foo(params) { if (function_present(foo)) return foo(params); else return ENOSYS; } I like this better then loading all possible modules.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070406181138.GA90738>