CREAMPIE — Code RElocation And Memory PIE extractor
Find a file
2026-09-14 12:44:34 +03:00
.github/workflows Update and rename ci.yml to publish.yml 2025-10-06 00:34:06 +03:00
src fix 2025-04-07 04:57:40 +03:00
.editorconfig first release 2025-04-07 04:23:27 +03:00
.gitignore fix 2025-04-07 04:57:40 +03:00
CMakeLists.txt some fixes 2025-08-11 10:22:59 +03:00
LICENSE LICENSE 2025-04-07 04:24:39 +03:00
package.json 1.0.3 2025-08-11 10:23:04 +03:00
pnpm-lock.yaml first release 2025-04-07 04:23:27 +03:00
README.md Update README.md 2026-09-14 12:44:34 +03:00
tsconfig.json fix 2025-04-07 04:57:40 +03:00

NPM Version

Code RElocation And Memory PIE extractor

CREAMPIE is a WASM library for extracting runtime memory images and relocated entry points from ELF files compiled as PIE (Position Independent Executables). It allows you to convert an ELF into a binary memory blob and an actual entry address, suitable for direct execution on hardware.

ARM Little Endian only.

USAGE

import { loadELF } from "@sie-js/creampie";
import fs from "node:fs";

const elf = loadELF(0xA0000000, fs.readFileSync("app.elf"));
console.log("Base:", "0x" + elf.base.toString(16));
console.log("Entry point:", "0x" + elf.entry.toString(16));
console.log("Ram size:", "0x" + elf.ramSize.toString(16));
console.log("Image size:", "0x" + elf.image.length.toString(16));
console.log("Image data:", elf.image);

AI-assisted contributions

We are not against AI. We are against vibe coding, AI slop, and attempts to offload engineering work to a model. This project prioritizes quality, not development speed or results at any cost.

  1. Do not use AI-generated text in human-to-human communication.

    Write comments, discussions, PR descriptions, and responses to reviewers yourself.

  2. Do not let AI submit PRs or commits.

    The author must always be a human who has personally reviewed the changes and takes responsibility for them.

  3. Do not submit code primarily designed or written by AI.

    Architecture, algorithms, code organization, and the final implementation must be decided by a human. AI may only be used as an auxiliary tool.

  4. You must understand all the code you submit.

    You must be able to explain every change, justify your decisions, and fix any problems yourself. If you do not understand the code, open a feature request instead of a PR.

  5. Code must be simple, clear, and tested.

    Follow KISS, the project's coding style, and its existing architecture. Do not introduce unnecessary abstractions, dependencies, or untested changes.

AI slop PRs will be closed without review.