From owner-freebsd-emulation Mon Feb 21 12:42:28 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id B155137B652 for ; Mon, 21 Feb 2000 12:42:12 -0800 (PST) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer goliath.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.9.3/8.9.3) with ESMTP id VAA06864 for ; Mon, 21 Feb 2000 21:42:07 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id VAA08999 for ; Mon, 21 Feb 2000 21:42:06 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.9.3/8.9.3) id VAA20173 for ; Mon, 21 Feb 2000 21:42:06 +0100 (CET) Date: Mon, 21 Feb 2000 21:42:03 +0100 From: Andre Albsmeier To: freebsd-emulation@freebsd.org Subject: How to link a Linux program under FreeBSD ? Message-ID: <20000221214203.A72944@internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have linux_base and linux_devel installed on STABLE-3.4 Now let's assume I have the following object files: main.o obj1.o obj2.o How can I link these together so that a Linux binary is produced? Of course, I also want the Linux statup code and the linux libc... Will I have to use /compat/linux/usr/bin/ld? What options do I have to specify so that no FreeBSD code gets linked? This is because I have to use the Absoft Fortran compiler to produce the object files. This works well; the problem is how to link these together to make a linux executable that can be run under Linux or FreeBSD. Thanks, -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message