Skip to content

Commit

Permalink
Add emulateme binary for x86 (#136)
Browse files Browse the repository at this point in the history
* Add emulateme binary for x86
* Rename `ppc-rzil` directory to `rzil/ppc`, and move `emulateme.c`
* Update test build script for PPC RzIL tests
  • Loading branch information
DMaroo authored Jan 8, 2024
1 parent 903a213 commit 5d56d09
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 5 deletions.
Binary file added elf/emulateme.x86
Binary file not shown.
10 changes: 5 additions & 5 deletions elf/ppc/build_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: LGPL-3.0-only

CWD=$(pwd)
cd ../../src/ppc-rzil
cd ../../src/rzil/ppc

echo "* asm_tests"
powerpc64le-linux-gnu-as -a64 -mregnames asm_tests.S -o "$CWD"/asm_tests
Expand All @@ -21,13 +21,13 @@ echo "* ppc32be_uplifted"
powerpc-linux-gnu-gcc -Ttext 0x100000 -static -m32 -Wa,-mregnames ppc_main.c ppc32.S -o "$CWD"/ppc32be_uplifted

echo "* emulateme-ppc32le"
powerpcle-linux-musl-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/ppc-rzil/emulateme.c -o "$CWD"/emulateme-ppc32le
powerpcle-linux-musl-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/rzil/emulateme.c -o "$CWD"/emulateme-ppc32le

echo "* emulateme-ppc32be"
powerpc-linux-gnu-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/ppc-rzil/emulateme.c -o "$CWD"/emulateme-ppc32be
powerpc-linux-gnu-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/rzil/emulateme.c -o "$CWD"/emulateme-ppc32be

echo "* emulateme-ppc64le"
powerpc64le-linux-gnu-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/ppc-rzil/emulateme.c -o "$CWD"/emulateme-ppc64le
powerpc64le-linux-gnu-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/rzil/emulateme.c -o "$CWD"/emulateme-ppc64le

echo "* emulateme-ppc64be"
powerpc64-linux-musl-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/ppc-rzil/emulateme.c -o "$CWD"/emulateme-ppc64be
powerpc64-linux-musl-gcc -Ttext 0x100000 -Wl,-no-pie -static ../../src/rzil/emulateme.c -o "$CWD"/emulateme-ppc64be
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5d56d09

Please sign in to comment.