summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/elf.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-11-27 22:38:48 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-11-27 22:38:48 +0100
commit8189732e52080353dbf38933a8c71c6dc6811f2a (patch)
tree299a1b0ac3b40db750f45bc5d790cc9c8f80b63a /utils/imxtools/sbtools/elf.h
parent7dc3e939d2cd0a39035587f211587167eb6671de (diff)
downloadrockbox-8189732e52080353dbf38933a8c71c6dc6811f2a.tar.gz
rockbox-8189732e52080353dbf38933a8c71c6dc6811f2a.zip
sbtoelf: implement sb extraction for sb1
Load, fill and call/jump instructions are extracted as elf files like for sb2. Because of the size limitations of the sb1 instructions, the resulting elf files can easily have hundreds of sections. The (currently) implemented elf simplification method will hopefully reduce this to a few sections only Change-Id: I8fd6ed935ac3128f244bbd71c782e2a0a1c6d44a
Diffstat (limited to 'utils/imxtools/sbtools/elf.h')
-rw-r--r--utils/imxtools/sbtools/elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/elf.h b/utils/imxtools/sbtools/elf.h
index 2166833276..ae4e3b4225 100644
--- a/utils/imxtools/sbtools/elf.h
+++ b/utils/imxtools/sbtools/elf.h
@@ -82,6 +82,7 @@ void elf_add_fill_section(struct elf_params_t *params,
82 uint32_t fill_addr, uint32_t size, uint32_t pattern); 82 uint32_t fill_addr, uint32_t size, uint32_t pattern);
83uint32_t elf_translate_virtual_address(struct elf_params_t *params, uint32_t addr); 83uint32_t elf_translate_virtual_address(struct elf_params_t *params, uint32_t addr);
84void elf_translate_addresses(struct elf_params_t *params); 84void elf_translate_addresses(struct elf_params_t *params);
85void elf_simplify(struct elf_params_t *params);
85void elf_write_file(struct elf_params_t *params, elf_write_fn_t write, elf_printf_fn_t printf, void *user); 86void elf_write_file(struct elf_params_t *params, elf_write_fn_t write, elf_printf_fn_t printf, void *user);
86bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read, elf_printf_fn_t printf, 87bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read, elf_printf_fn_t printf,
87 void *user); 88 void *user);