scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 9b06386d77ef77bca4f3f02706449246bd81fc8d
parent 1c715e73cefa315a9ca50bd904ee38380f1ba4a5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  8 Jan 2019 15:08:50 +0000

Add dummy versions of addr2line and objcopy

Diffstat:
Msrc/cmd/Makefile | 8++++++++
Asrc/cmd/addr2line.c | 7+++++++
Asrc/cmd/objcopy.c | 6++++++
Msrc/cmd/objdump.c | 1+
4 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/cmd/Makefile b/src/cmd/Makefile @@ -9,6 +9,8 @@ TARGET = $(BINDIR)/nm \ $(BINDIR)/ar \ $(BINDIR)/ranlib \ $(BINDIR)/objdump \ + $(BINDIR)/objcopy \ + $(BINDIR)/addr2line \ LIBS = -lmach @@ -31,6 +33,12 @@ $(BINDIR)/ranlib: ranlib.o $(BINDIR)/objdump: objdump.o $(CC) $(SCC_LDFLAGS) objdump.o -lmach -o $@ +$(BINDIR)/objcopy: objcopy.o + $(CC) $(SCC_LDFLAGS) objcopy.o -lmach -o $@ + +$(BINDIR)/addr2line: addr2line.o + $(CC) $(SCC_LDFLAGS) addr2line.o -lmach -o $@ + $(BINDIR)/ar: ar.o ar-$(DRIVER).o $(CC) $(SCC_LDFLAGS) ar.o ar-$(DRIVER).o -o $@ diff --git a/src/cmd/addr2line.c b/src/cmd/addr2line.c @@ -0,0 +1,7 @@ +/* TODO */ + +int +main() +{ + return 0; +} diff --git a/src/cmd/objcopy.c b/src/cmd/objcopy.c @@ -0,0 +1,6 @@ +/* TODO */ +int +main() +{ + return 0; +} diff --git a/src/cmd/objdump.c b/src/cmd/objdump.c @@ -28,6 +28,7 @@ error(char *fmt, ...) static void dump(char *fname) { + /* TODO */ } static void