mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Implement ELF support
This commit is contained in:
9
tests/PowerAnalyse/add.cpp
Normal file
9
tests/PowerAnalyse/add.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
int add(int a, int b)
|
||||
{
|
||||
return a + b;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return add(1, 2);
|
||||
}
|
BIN
tests/PowerAnalyse/add.elf
Normal file
BIN
tests/PowerAnalyse/add.elf
Normal file
Binary file not shown.
3
tests/compile.bat
Normal file
3
tests/compile.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
clang -target powerpc-unknown-linux-gnu -fuse-ld=lld -nostdlib -m32 -o %1.elf %1
|
Reference in New Issue
Block a user