Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: hjl@nynexst.com (H.J. Lu)
Subject: The kernel 1.2.8/ELF patch
Date: 1995/05/26	[thread overview]
Message-ID: <3q4m88$fs0@rose.uthscsa.edu> (raw)

Hi,

This is a new ELF patch, 1.28.elf, for Linux 1.2.8. It makes Linux
1.2.8 compatible with both ELF and a.out formats. I fixed a few bugs
in math emulator and driver/scsi/53c7,8xx.c. I added the ELF module
support. You need modules-1.1.87.4 or newer to use it.

You can edit arch/i386/Makefile to choose which binary format you want
to compile the Linux kernel in. I only tested it on my machine. 

I also added the kernel ELF core dump, which is taken from the
patch made by jeremy@sour.sw.oz.au (Jeremy Fitzhardinge). I think
there may be an ELF bug somewhere:

--foo.c--
#include <stdio.h>

main ()
{
  const char * const sd1 = "1.8976931348623157e+308";

  *sd1 = 1;
}
----

I cannot get it core dump under ELF if I use -static. This bug has been
fixed for the next kernel release.

You also need a gdb patch to read the ELF core dump.

I think if everything goes well, we should be able to totally move
to ELF real soon.

This patch needs the following packages from me:

1. binutils 2.5.2l.15 or newer.
2. libc 5.0.3.
3. gcc 2.6.3/ELF.

The primary ftp sites for the compiler/C library are tsx-11.mit.edu
under pub/linux/packages/GCC and sunsite.unc.edu under pub/Linux/GCC.

After applying the patch, you can compile the kernel in ELF:

# cd linux
# gzip -dc ...../linux-1.28.elf.diff.gz | patch -p2
# make zImage

The resulting arch/i386/boot/zImage is compiled in ELF.

After editing arch/i386/Makefile, you can compile the kernel in a.out.

H.J.
hjl@nynexst.com
05/20/95

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



                 reply	other threads:[~1995-05-26  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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