From owner-freebsd-ports Tue Feb 23 5:30: 5 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 64B0E10EA7 for ; Tue, 23 Feb 1999 05:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id FAA73020; Tue, 23 Feb 1999 05:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Tue, 23 Feb 1999 05:30:02 -0800 (PST) Message-Id: <199902231330.FAA73020@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Juergen Peter Subject: Re: ports/9949 (SKIP LKM not working in 3.1 also) Reply-To: Juergen Peter Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/9949; it has been noted by GNATS. From: Juergen Peter To: freebsd-gnats-submit@freebsd.org, mike@sentex.net Cc: Subject: Re: ports/9949 (SKIP LKM not working in 3.1 also) Date: Tue, 23 Feb 1999 14:13:11 +0100 The error message when trying to load SKIP at startup (using /usr/local/etc/rc.d/skip.sh) is somewhat misleading.. When trying to modload(1) the lkm by hand, you get a much more diagnostic message: ld: /kernel: malformed input file (not rel or archive) modload: /usr/bin/ld: return code 1 Well, when using modload -d you can see that modload tries to execute something like /usr/bin/ld -A /kernel -e _skip -o /tmp/skip.out \ -T 0 /usr/local/lkm/skip.o which when executed by hand gives the same error. After digging in the source for modload(1), I found that modload *really* executes /usr/bin/ld -aout ... ... but the kernel is elf and even skip.o is elf... I tried loading the module with /usr/bin/ld -elf -A /kernel -e _skip -o /tmp/skip.out /usr/local/lkm/skip.o but that gives a lot of undefined references, so I gave up... -- Juergen Kleer | #include Lehrstuhl fuer Mikroelektronik | #include Univ. Geb. 13, Postfach 151150, | 66041 Saarbruecken | mailto:bluen@ee.uni-sb.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message