]> Cypherpunks repositories - gostls13.git/commitdiff
debug/elf: add C source for testdata executables
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 31 Dec 2013 22:36:13 +0000 (14:36 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 Dec 2013 22:36:13 +0000 (14:36 -0800)
This source file, when compiled with gcc 4.4.3 on Ubuntu lucid,
corresponds instruction for instruction to the binaries in the same
directory.

Shipping this source code file resolves http://bugs.debian.org/716853

R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/46780043

src/pkg/debug/elf/testdata/hello.c [new file with mode: 0644]

diff --git a/src/pkg/debug/elf/testdata/hello.c b/src/pkg/debug/elf/testdata/hello.c
new file mode 100644 (file)
index 0000000..34d9ee7
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+void
+main(int argc, char *argv[])
+{
+       printf("hello, world\n");
+}