Implement ELF support

This commit is contained in:
Sajid
2024-09-07 22:56:20 +06:00
parent 1e24423ea7
commit 36fb31de3a
11 changed files with 735 additions and 27 deletions
+9
View File
@@ -0,0 +1,9 @@
int add(int a, int b)
{
return a + b;
}
extern "C" int _start()
{
return add(1, 2);
}
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
@echo off
clang -target powerpc-unknown-linux-gnu -fuse-ld=lld -nostdlib -m32 -o %1.elf %1