From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,b5ad11d30838cb1a,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-12-14 07:31:36 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!sgigate.sgi.com!enews.sgi.com!lll-winken.llnl.gov!uwm.edu!news.moneng.mei.com!howland.reston.ans.net!news.sprintlink.net!pipex!sunic!news.funet.fi!news.csc.fi!news.helsinki.fi!not-for-mail From: biro@yggdrasil.com (Ross Biro) Newsgroups: comp.os.linux.announce Subject: Diffs to compile kernel under elf Followup-To: comp.os.linux.misc Date: 14 Dec 1994 17:31:36 +0200 Organization: ? Sender: wirzeniu@cc.Helsinki.FI Message-ID: <3cn34o$5r1@klaava.Helsinki.FI> NNTP-Posting-Host: klaava.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Keywords: kernel, gcc, elf I've uploaded diffs that allow the kernel to be compiled with an elf kernel to sunsite.unc.edu and made them available on ftp.yggdrasil.com. Here is the readme file I've included. Please note that you need a modified objdump, insmod, and a program called encaps, all except insmod are available from sunsite and ftp.yggdrasil.com. Insmod is only available at ftp.yggdrasil.com until I get it to work with both coff and elf (mostly just problems with _'s.) These diffs allow the kernel to be compiled with an elf compiler or an a.out compiler by changing only one define in the main makefile (__ELF__ for elf code.) There are some side effects of these diffs with modules however. insmod needed to be completely rewritten to support elf code, so I changed it to use a module version number which is independent of the kernel version number. The only change which should be required is to recompile the module (which is required anyway.) I also added magic numbers to many of the module structures for additional consistancy checks. A new insmod which supports elf is available from ftp.yggdrasil.com, and will be uploaded to sunsite once it can transparently suport elf/a.out. The new insmod uses the standard binutils and temporary files, so it is much SLOWER than the old version. The advantage is that it should support any binary format which ld and co (bfd) can support. To use these diffs, you will need a patched version of objdump and a program called encaps, both of which should be available from sunsite.unc.edu or ftp.yggdrasil.com. Send fixes/bug reports to biro@yggdrasil.com (not bir7@leland.stanford.edu since that email address is no longer vaild.) -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu PLEASE remember Keywords: and a short description of the software.