From 70c2b7512deab525a2711f4a896c39db855bae07 Mon Sep 17 00:00:00 2001 From: Steven James Date: Sat, 17 May 2003 13:22:12 +0000 Subject: [PATCH] hello updated to use new baremetal environment --- util/baremetal/hello/Makefile | 2 +- util/baremetal/hello/elfImage.lds | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/baremetal/hello/Makefile b/util/baremetal/hello/Makefile index d47505ce27..03adcecb29 100644 --- a/util/baremetal/hello/Makefile +++ b/util/baremetal/hello/Makefile @@ -1,7 +1,7 @@ CC = gcc CFLAGS = -I ../include -O2 -DEPS = hello.o ../lib/baremetal.a +DEPS = ../lib/_main.o hello.o ../lib/baremetal.a hello.elf: $(DEPS) ld -defsym HEAPSIZE=0x100 -T elfImage.lds $(DEPS) -o hello.elf diff --git a/util/baremetal/hello/elfImage.lds b/util/baremetal/hello/elfImage.lds index ed4cbc3792..f9d1c7e0c7 100644 --- a/util/baremetal/hello/elfImage.lds +++ b/util/baremetal/hello/elfImage.lds @@ -21,7 +21,7 @@ OUTPUT_ARCH(i386) HEAPSIZE = DEFINED(HEAPSIZE) ? HEAPSIZE : 0x8000; -ENTRY(main) +ENTRY(_main) SECTIONS { /* . = 0x10000 - (elf_note - elf_header); */