m4b / m4b/goblin

Implementing patchelf / install_name_tool with goblin

Open
#367 1 comment 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

Hi, thanks for the great library! We're currently using it in a new package manager to read linked libraries and rpaths from .so and .dylib files.

We need to rewrite the dylibs to use a relative rpath (using $ORIGIN or @loader_path). We currently use patchelf and install_name_tool respectively for that, but obviously would love to get rid of those dependencies.

I wanted to ask wether you think it's feasible to rewrite entire dylib/so files in this way with goblin, and if there are any examples out there?

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 by reviewing goblin's existing ELF and Mach-O support and the behavior of patchelf and install_name_tool described in the issue. Determine whether rewriting rpaths and dylib metadata is in scope, then define a concrete file or test target and acceptance criteria before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems, reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.