Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 16:31:17 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 50018 for review
Message-ID:  <200403310031.i2V0VH2X071322@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=50018

Change 50018 by peter@peter_daintree on 2004/03/30 16:31:10

	oops. the reason for this file's existence is to load relocatable
	files (.o) rather than dynamic linked files (.ko).

Affected files ...

.. //depot/projects/hammer/sys/kern/link_elf_obj.c#12 edit

Differences ...

==== //depot/projects/hammer/sys/kern/link_elf_obj.c#12 (text+ko) ====

@@ -217,7 +217,7 @@
 		return error;
 	NDFREE(&nd, NDF_ONLY_PNBUF);
 #ifdef MAC
-	error = mac_check_kld_load(curthread->td_ucred, nd.ni_vp);
+	error = mac_check_kld_load(td->td_ucred, nd.ni_vp);
 	if (error) {
 		goto out;
 	}
@@ -256,7 +256,7 @@
 		error = ENOEXEC;
 		goto out;
 	}
-	if (hdr->e_type != ET_EXEC && hdr->e_type != ET_DYN) {
+	if (hdr->e_type != ET_EXEC && hdr->e_type != ET_REL) {
 		link_elf_error("Unsupported file type");
 		error = ENOEXEC;
 		goto out;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403310031.i2V0VH2X071322>