summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-07-11 19:39:57 +0200
committerMitya Selivanov <automainint@guattari.tech>2024-07-11 19:39:57 +0200
commited26b0f2c95215e231e440475523f2197e6c8e3b (patch)
treefbcddac34b6308876bb2e4e9290b693fa26aa33e
parent2d11cfdfcfc9c80de467200df517a706490cfd80 (diff)
downloadbxgen-ed26b0f2c95215e231e440475523f2197e6c8e3b.zip
Add test lib
-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