From ed26b0f2c95215e231e440475523f2197e6c8e3b Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 11 Jul 2024 19:39:57 +0200 Subject: Add test lib --- .gitignore | 2 +- bxgen.c | 5 +++-- libtest.a | Bin 0 -> 1364 bytes 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 libtest.a 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 Binary files /dev/null and b/libtest.a differ -- cgit v1.2.3