Re: 1.3.5

Temptation (temp@temptation.interlog.com)
Fri, 30 Jun 1995 00:29:34 -0400 (EDT)


to get 1.3.5 t compile under an ELF system
I need to edit in.config, and I added this line.....
bool 'Kernel ELF' CONFIG_KERNEL_ELF y

and the rest was because of this

ifdef CONFIG_KERNEL_ELF

LD=ld -m elf_i386
CPP=$(CC) -E -D__ELF__
OBJDUMP =objdump
OBJDUMP_FLAGS=-k -q
LDFLAGS=-e startup_32
LDFLAGS=-e stext
ZIMAGE_OFFSET=0x1000
IMAGE_OFFSET=0x100000
ZLINKFLAGS =-Ttext $(ZIMAGE_OFFSET) $(LDFLAGS)
LINKFLAGS =-Ttext $(IMAGE_OFFSET) $(LDFLAGS)

else

#
# -qmagic (we need to remove the 32 byte header for bootup purposes)
#

in the Makefile

On Thu, 29 Jun 1995, Mathew G. Monroe wrote:

>
> >
> >
> > 1.3.5 seems to work fine with ELF setup, no more patchs.
> > this part of it needs to be fixed up tho.
> >
> > ld -m elf_i386 -Ttext 0x1000 -e stext -o vmlinux head.o inflate.o unzip.o
> > misc.o piggy.o
> > ld: warning: cannot find entry symbol stext; defaulting to 00001000
> >
> >
> > Chris
> >
>
> Also you don't/shouldn't need to define -D__ELF__ when doing a make depend,
> or any compile under ELF.
>
> Matt
>