Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* Diffs to compile kernel under elf
@ 1994-12-14 15:31 Ross Biro
  1994-12-27 14:32 ` Missing Changes from patches to compile the kernel with elf Ross Biro
  0 siblings, 1 reply; 2+ messages in thread
From: Ross Biro @ 1994-12-14 15:31 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Missing Changes from patches to compile the kernel with elf.
  1994-12-14 15:31 Diffs to compile kernel under elf Ross Biro
@ 1994-12-27 14:32 ` Ross Biro
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Biro @ 1994-12-27 14:32 UTC (permalink / raw)


The following changes to linux/arch/i386/Makefile were inadvertantly left
out of the patches I posted ealier.  Please apply them and recompile the
kernel with the elf compiler.  I apologize for any inconvenience.

	Ross Biro biro@yggdrasil.com

*** Makefile.~1~	Thu Dec 15 11:02:40 1994
--- Makefile	Tue Dec 20 10:05:47 1994
***************
*** 39,49 ****
  
  zBoot/zSystem: zBoot/*.c zBoot/*.S tools/zSystem
  	$(MAKE) -C zBoot
  
  zImage: $(CONFIGURE) boot/bootsect boot/setup zBoot/zSystem tools/build
! 	tools/build boot/bootsect boot/setup zBoot/zSystem $(ROOT_DEV) > zImage
  	sync
  
  zdisk: zImage
  	dd bs=8192 if=zImage of=/dev/fd0
  
--- 39,50 ----
  
  zBoot/zSystem: zBoot/*.c zBoot/*.S tools/zSystem
  	$(MAKE) -C zBoot
  
  zImage: $(CONFIGURE) boot/bootsect boot/setup zBoot/zSystem tools/build
! 	objdump -k -q -o 4096 zBoot/zSystem >zBoot/zSystem.out
! 	tools/build boot/bootsect boot/setup zBoot/zSystem.out $(ROOT_DEV) > zImage
  	sync
  
  zdisk: zImage
  	dd bs=8192 if=zImage of=/dev/fd0
  


--
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember Keywords: and a short description of the software.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-12-27 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-14 15:31 Diffs to compile kernel under elf Ross Biro
1994-12-27 14:32 ` Missing Changes from patches to compile the kernel with elf Ross Biro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox