From ca3d5776711f2580f6a9a9bbea410af1a88dfce2 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 8 Aug 2007 07:43:02 +0000 Subject: [PATCH] add rule to generate init.sym --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index fd9d9cd..22bd1e8 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,7 @@ _cat : cat.o $(ULIB) _init : init.o $(ULIB) $(LD) -N -e main -Ttext 0 -o _init init.o $(ULIB) $(OBJDUMP) -S _init > init.asm + $(OBJDUMP) -t _init | awk '/SYMBOL TABLE/ { go=1; next } go {print $$1, $$NF}' >init.sym _sh : sh.o $(ULIB) $(LD) -N -e main -Ttext 0 -o _sh sh.o $(ULIB)