From owner-freebsd-current Sat Jun 20 22:37:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA07209 for freebsd-current-outgoing; Sat, 20 Jun 1998 22:37:01 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from shire.domestic.de (kuebart.stuttgart.netsurf.de [194.233.216.182]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA07192 for ; Sat, 20 Jun 1998 22:36:55 -0700 (PDT) (envelope-from joki@kuebart.stuttgart.netsurf.de) Received: from yacht.domestic.de (yacht.domestic.de [192.168.1.4]) by shire.domestic.de (8.8.8/8.8.7) with ESMTP id SAA09112 for ; Sat, 20 Jun 1998 18:51:47 +0200 (CEST) (envelope-from joki@shire.domestic.de) From: Joachim Kuebart Received: (from joki@localhost) by yacht.domestic.de (8.8.8/8.8.7) id UAA00129 for freebsd-current@freebsd.org; Sat, 20 Jun 1998 20:53:15 +0200 (CEST) (envelope-from joki@shire.domestic.de) Message-Id: <199806201853.UAA00129@yacht.domestic.de> Subject: ELF and modload(8) To: freebsd-current@FreeBSD.ORG Date: Sat, 20 Jun 1998 20:53:15 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I think this needs to be changed. But how do I build LKMs that work under ELF? cvs diff: Diffing . Index: modload.c =================================================================== RCS file: /usr/CVS-Repository/src/sbin/modload/modload.c,v retrieving revision 1.20 diff -u -r1.20 modload.c --- modload.c 1997/08/21 22:33:59 1.20 +++ modload.c 1998/06/20 18:50:03 @@ -94,7 +94,7 @@ if(pid == 0) { execl(_PATH_LD, "ld", "-A", kernel, "-e", entrybuf, "-o", - outfile, "-T", addrbuf, object, (char *)0); + outfile, "-Ttext", addrbuf, object, (char *)0); exit(128 + errno); } cu Jo --------------------------------------------------------------------- FreeBSD: The Power to Serve Joachim Kuebart Tel: +49 711 653706 Replicants are like any other machine -- Germany they're either a benefit or a hazard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message