What's the Most Portable Way to Include Binary Blobs in an Executable?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • postject

    Easily inject arbitrary read-only resources into executable formats (Mach-O, PE, ELF) and use it at runtime.

  • My team is working on this problem in the context of creating Node.js single-executable applications. While the naive approach of just appending data at the end of the binary works, it is not friendly with code-signature in macOS and Windows given that signing operates on PE and Mach-O sections.

    We have recently open-sourced a small tool called Postject (https://github.com/postmanlabs/postject), which is able to inject arbitrary data as proper ELF/Mach-O/PE sections for all major operating systems (with AIX support coming). The tool also provides C/C++ cross-platform headers for easily traversing the final binary and introspect whether the segment is present or not.

    The tool is based on the LIEF (https://github.com/lief-project/LIEF) project.

    At Postman, we are making use of this on our custom Node.js single-executable applications and soon on our custom Electron.js builds too.

  • LIEF

    LIEF - Library to Instrument Executable Formats

  • My team is working on this problem in the context of creating Node.js single-executable applications. While the naive approach of just appending data at the end of the binary works, it is not friendly with code-signature in macOS and Windows given that signing operates on PE and Mach-O sections.

    We have recently open-sourced a small tool called Postject (https://github.com/postmanlabs/postject), which is able to inject arbitrary data as proper ELF/Mach-O/PE sections for all major operating systems (with AIX support coming). The tool also provides C/C++ cross-platform headers for easily traversing the final binary and introspect whether the segment is present or not.

    The tool is based on the LIEF (https://github.com/lief-project/LIEF) project.

    At Postman, we are making use of this on our custom Node.js single-executable applications and soon on our custom Electron.js builds too.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • ltools

    LTools are a set of free, open-source productivity command-line tools (drawing inspiration from Unix commands and philosophy).

  • https://github.com/jochenleidner/ltools/blob/main/src/bin/bi...

    What I found is that many compilers don't like to compile very large source files; so if the binaries you'd like to integrate are big, it might be better to integrate their constituent objects one by one (if applicable).

  • libear

    A C++11 library to render ADM content according to Recommendation ITU-R BS.2127

  • My colleague wrote this solution for C++ and cmake:

    https://github.com/ebu/libear/commit/40a4000296190c3f91eba79...

    This is a cmake function which generates C++ files using no external tools. It's probably not very fast, but if you don't need to handle big files and are already using cmake this is easy to integrate, adds no dependencies and works on all platforms.

  • shiv

    shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • 14 Awesome CLI Tools for Modern Software Developers

    13 projects | dev.to | 23 Mar 2022
  • Unfuck: A utility for deobfuscating Python 2.7 bytecode

    4 projects | news.ycombinator.com | 12 Aug 2021
  • Deep Dive into XZ Utils Backdoor – Columbia Engineering Guest Lecture [video]

    2 projects | news.ycombinator.com | 30 Apr 2024
  • Control Linux based distros using hand gestures using OpenCV, GTK, Mediapipe

    2 projects | news.ycombinator.com | 14 Apr 2024
  • Personas - an Ai Assistant

    3 projects | dev.to | 14 Apr 2024