m4b / m4b/goblin

pe: Support exception data for ARM64

Open
#512 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.5k
Forks
202
PR merge metrics
No merged PRs in 30d

Description

Currently `goblin` supports exception data only for x86_64 PE files: https://github.com/m4b/goblin/blob/c029a2c8a4eb79a2f62397b16e9fa00c05e622bc/src/pe/mod.rs#L265-L267

`llvm-objdump` also only supports PE unwind info for AMD64:
```
❯ llvm-objdump -u App_arm64.exe

App_arm64.exe_: file format coff-arm64
Unwind info:

llvm-objdump: error: unsupported image machine type (currently only AMD64 is supported).
```

How difficult would it be to extend this support to ARM64? Is it a question of documentation?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/pe/mod.rs around the linked x86_64 exception-data handling, then investigate the PE ARM64 unwind-information documentation and the coff-arm64 behavior shown from llvm-objdump. Done means goblin supports ARM64 PE exception data rather than limiting this path to x86_64.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.