Crate elfredo[][src]

Expand description

Elfredo - Dynamic Resource Section

This module allows you to embed a resource into an elf section and change its content after the binary has already been compiled. This is useful to change in-code configurations without compiling the whole binary again. Simply apply embeditor --raw new_data elf_file to

Examples

app.rs

/// app.rs
use elfredo::get_embedded_data;
print!(
       "{}",
       String::from_utf8(get_embedded_data::<Vec<u8>>().unwrap()).unwrap()
);

Roadmap

  • Make a simple binary patching ability.
  • Make binary patching possible for generic types.

Modules

data_entry

Handles dynamic resource section (DRS)

embeditor

Functions

get_embedded_data