diff options
author | sos <sos@FreeBSD.org> | 1996-10-16 17:51:08 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1996-10-16 17:51:08 +0000 |
commit | a7dce0775e41a26320ae35eb227c1339ef490017 (patch) | |
tree | d72720304037f68df6726fde308a22bc5c01e935 /lkm | |
parent | 4f23e86b1a5a97ce2cbd515ba8d13c6a63a6e071 (diff) | |
download | FreeBSD-src-a7dce0775e41a26320ae35eb227c1339ef490017.zip FreeBSD-src-a7dce0775e41a26320ae35eb227c1339ef490017.tar.gz |
Prepare kernel to take advantage of "branded" ELF binaries.
Diffstat (limited to 'lkm')
-rw-r--r-- | lkm/linux/linux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lkm/linux/linux.c b/lkm/linux/linux.c index dc0d522..2378775 100644 --- a/lkm/linux/linux.c +++ b/lkm/linux/linux.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux.c,v 1.6 1996/03/10 22:43:37 peter Exp $ + * $Id: linux.c,v 1.7 1996/09/03 22:52:07 bde Exp $ */ #include <sys/param.h> @@ -41,12 +41,12 @@ extern const struct execsw linux_execsw; MOD_EXEC(linux, -1, &linux_execsw); -extern Elf32_Interp_info linux_interp; +extern Elf32_Brandinfo linux_brand; static int linux_load(struct lkm_table *lkmtp, int cmd) { - if (elf_insert_interp(&linux_interp)) + if (elf_insert_brand_entry(&linux_brand)) uprintf("Could not install ELF interpreter entry\n"); uprintf("Linux emulator installed\n"); return 0; @@ -55,7 +55,7 @@ linux_load(struct lkm_table *lkmtp, int cmd) static int linux_unload(struct lkm_table *lkmtp, int cmd) { - if (elf_remove_interp(&linux_interp)) + if (elf_remove_brand_entry(&linux_brand)) uprintf("Could not deinstall ELF interpreter entry\n"); uprintf("Linux emulator removed\n"); return 0; |