PERFORCE change 50018 for review
    Peter Wemm 
    peter at FreeBSD.org
       
    Tue Mar 30 16:31:19 PST 2004
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=50018
Change 50018 by peter at 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;
    
    
More information about the p4-projects
mailing list