shithub: scc

Download patch

ref: 45fe8c2a4b1cfa77ccdf7670dfc62a9928153aac
parent: c809e59d972aead305d59b23e4d1d156c1ebd2a6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jan 8 10:08:50 EST 2019

Add dummy versions of addr2line and objcopy

--- a/src/cmd/Makefile
+++ b/src/cmd/Makefile
@@ -9,6 +9,8 @@
          $(BINDIR)/ar \
          $(BINDIR)/ranlib \
          $(BINDIR)/objdump \
+         $(BINDIR)/objcopy \
+         $(BINDIR)/addr2line \
 
 LIBS   = -lmach
 
@@ -30,6 +32,12 @@
 
 $(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 $@
--- /dev/null
+++ b/src/cmd/addr2line.c
@@ -1,0 +1,7 @@
+/* TODO */
+
+int
+main()
+{
+	return 0;
+}
--- /dev/null
+++ b/src/cmd/objcopy.c
@@ -1,0 +1,6 @@
+/* TODO */
+int
+main()
+{
+	return 0;
+}
--- a/src/cmd/objdump.c
+++ b/src/cmd/objdump.c
@@ -28,6 +28,7 @@
 static void
 dump(char *fname)
 {
+	/* TODO */
 }
 
 static void