Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruction to ir statement #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e3d2733
x86_64 인스트럭션 변환 모듈 초안 작성
Eveheeero Jun 6, 2023
db2f1ea
IR Statement 일부 작성
Eveheeero Jun 6, 2023
129977b
Github Action 캐싱 설정
Eveheeero Jun 6, 2023
cd3cd58
Github Action 정적빌드 추가 작성
Eveheeero Jun 7, 2023
8646b87
x64 레지스터에 대해 매크로화
Eveheeero Jun 7, 2023
27bfeab
X64 레지스터 작성 완료
Eveheeero Jun 7, 2023
8ee52d8
x86_64 인스트럭션 열거문 작성
Eveheeero Jun 7, 2023
35275c9
사용 예정인 라이브러리 초안 작성
Eveheeero Jun 8, 2023
d41e345
Instruction 일부 분리
Eveheeero Jun 8, 2023
ee7da91
인스트럭션 주석 작성
Eveheeero Jul 11, 2023
cce1818
AAD 인스트럭션 추가
Eveheeero Jul 15, 2023
5d26add
aad 잘못 작성된 문서 수정
Eveheeero Jul 18, 2023
3caef87
Add x64's aam..aad instruction documentation (#18)
tejo1990 Jul 20, 2023
c534d6f
Add x64's Instruction(ADD, ADDPD, ADDPS, ADDSD, ADDSS, ADDSUBPD) docu…
tejo1990 Jul 25, 2023
9d9fda8
X64 instruction to ir 일부 작성 및 ir statement 인자타입 작성
Eveheeero Aug 1, 2023
8da12b8
Instruction 내부 데이터 수정 (byte 포함 및 mnemonic 수정)
Eveheeero Aug 1, 2023
844b3fc
split iceball substructure
Eveheeero Aug 1, 2023
922ae1f
iceball::instruction 내부 데이터 수정 =
Eveheeero Aug 1, 2023
c49018c
iceball x64 레지스터 작성
Eveheeero Aug 1, 2023
219b538
iceball 내부 레지스터 추가
Eveheeero Aug 2, 2023
94882a4
Add x64's addsubps, adox, aesdec, aesdec128kl instruction documentati…
tejo1990 Aug 2, 2023
cb8cad3
IR 내부 statements 추가구성
Eveheeero Aug 6, 2023
d02ead9
IR관련 상세 구현 =
Eveheeero Aug 7, 2023
0fd80d4
X64 레지스터 추가 및 Statement에 Operator 추가
Eveheeero Aug 7, 2023
8b26e6b
X64 레지스터 추가
Eveheeero Aug 7, 2023
223ca40
ir::statements 내부 박싱 제거
Eveheeero Aug 7, 2023
d3420d1
IR 내부 Statement 및 Data 변경, 주석 수정
Eveheeero Aug 7, 2023
834fc7d
Instruction analyze 일부 작성
Eveheeero Aug 7, 2023
c22ef95
aaa 인스트럭션 파싱 작성
Eveheeero Aug 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 88 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# https://docs.github.com/en/actions/using-workflows/about-workflows
# 라이브러리 별 캐시 활성화를 위해선 cache key 뒤에 -${{ hashFiles('**/Cargo.toml') }} 를 붙여 사용합니다.
name: Rust

on:
Expand Down Expand Up @@ -28,13 +29,93 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
target
~/.cargo
key: ${{ matrix.os }}-fireman-${{ hashFiles('**/Cargo.toml') }}
- name: Print Target
run: rustup show
- name: Build Debug
run: cargo build --verbose
- name: Build Release
run: cargo build --release --verbose

test:
build-static-windows:
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
target
~/.cargo
~/.rustup
key: windows-static-build-${{ hashFiles('**/Cargo.toml') }}
- name: Build Debug
run: |
set RUSTFLAGS='-C target-feature=+crt-static'
cargo build --target x86_64-pc-windows-msvc --verbose
- name: Build Release
run: |
set RUSTFLAGS='-C target-feature=+crt-static'
cargo build --target x86_64-pc-windows-msvc --release --verbose

build-static-ubuntu:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
target
~/.cargo
~/.rustup
key: ubuntu-static-build-${{ hashFiles('**/Cargo.toml') }}
- name: Setup dependency
run: |
sudo apt install -y musl-tools
rustup target add x86_64-unknown-linux-musl
- name: Build Debug
run: |
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-unknown-linux-gnu --verbose
cargo build --target x86_64-unknown-linux-musl --verbose
- name: Build Release
run: |
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-unknown-linux-gnu --release --verbose
cargo build --target x86_64-unknown-linux-musl --release --verbose

build-static-macos:
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
target
~/.cargo
~/.rustup
key: macos-static-build-${{ hashFiles('**/Cargo.toml') }}
- name: Setup dependency
run: rustup target add aarch64-apple-darwin
- name: Build Debug
run: |
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-apple-darwin --verbose
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target aarch64-apple-darwin --verbose
- name: Build Release
run: |
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-apple-darwin --release --verbose
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target aarch64-apple-darwin --release --verbose

test:
needs:
- build-static-windows
- build-static-ubuntu
- build-static-macos
strategy:
matrix:
os:
Expand All @@ -53,6 +134,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
target
~/.cargo
key: ${{ matrix.os }}-fireman-${{ hashFiles('**/Cargo.toml') }}
- name: Test Debug
run: cargo test --verbose
- name: Test Release
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ members = [
"fireman",
"fireball",
"firebat",
"iceball",
"dryice",
]
18 changes: 18 additions & 0 deletions dryice/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "dryice"
version = "0.0.1"
edition = "2021"
authors = ["Eveheeero <xhve00000@gmail.com>"]
repository = "https://github.com/Eveheeero/fireman"
license = "MIT"
description = "IR Pattern Matching Framework used in fireball. (Reserved)"
homepage = "https://crates.io/crates/dryice"

[[bin]]
name = "glacier"
path = "src/main.rs"

[lib]
crate-type = ["cdylib", "rlib", "staticlib"]

[dependencies]
1 change: 1 addition & 0 deletions dryice/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub fn empty() {}
3 changes: 3 additions & 0 deletions dryice/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
1 change: 1 addition & 0 deletions fireball/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ homepage = "https://crates.io/crates/fireball"
crate-type = ["cdylib", "rlib", "staticlib"]

[dependencies]
iceball = { path = "../iceball", version = "0.0.1" }
goblin = "0.6.1"
cpp_demangle = "0.4.0"
capstone = "0.11.0"
Expand Down
2 changes: 1 addition & 1 deletion fireball/src/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//! 여러 아키텍처 별 구현이 담겨있는 모듈

mod x86_64 {}
mod x86_64;
Loading