summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rwxr-xr-xbxgen.c5
-rw-r--r--libtest.abin0 -> 1364 bytes
3 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 145f5d7..d5d3403 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-test_*
+test*
diff --git a/bxgen.c b/bxgen.c
index 4a1ba2c..aa51e9c 100755
--- a/bxgen.c
+++ b/bxgen.c
@@ -1662,8 +1662,9 @@ int main(int argc, char **argv) {
i64 u = u_new();
u_add(u, main);
u_entry_point(u, main);
- l_static(u, "/lib/x86_64-linux-gnu/libc.a");
-
+ // l_static(u, "/lib/x86_64-linux-gnu/libc.a");
+ l_static(u, "libtest.a");
+
printf("Writing ELF x86_64 executable...\n");
u_elf_x86_64(u, "test_foo");
diff --git a/libtest.a b/libtest.a
new file mode 100644
index 0000000..780fc3f
--- /dev/null
+++ b/libtest.a
Binary files differ