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
>