From b8d35c042de327a7ac5b35496283cdc2ab22d991 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 31 Oct 2014 16:09:28 +0100 Subject: rknanotools: fix rknano stages processing Change-Id: Ia88f5aa2a6c56b312f80b31afab41d1dc68b871b --- utils/rknanoutils/rkboottool/elf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/rknanoutils/rkboottool/elf.h') diff --git a/utils/rknanoutils/rkboottool/elf.h b/utils/rknanoutils/rkboottool/elf.h index 2166833276..2408e0c588 100644 --- a/utils/rknanoutils/rkboottool/elf.h +++ b/utils/rknanoutils/rkboottool/elf.h @@ -42,6 +42,7 @@ struct elf_section_t uint32_t addr; /* virtual address */ uint32_t size; /* virtual size */ enum elf_section_type_t type; + char *name; /* */ void *section; /* data */ uint32_t pattern; /* fill pattern */ @@ -49,6 +50,7 @@ struct elf_section_t struct elf_section_t *next; /* Internal to elf_write_file */ uint32_t offset; + uint32_t name_offset; }; struct elf_segment_t @@ -68,6 +70,7 @@ struct elf_params_t struct elf_section_t *last_section; struct elf_segment_t *first_segment; struct elf_segment_t *last_segment; + int unique_index; }; typedef bool (*elf_read_fn_t)(void *user, uint32_t addr, void *buf, size_t count); @@ -77,7 +80,7 @@ typedef void (*elf_printf_fn_t)(void *user, bool error, const char *fmt, ...); void elf_init(struct elf_params_t *params); void elf_add_load_section(struct elf_params_t *params, - uint32_t load_addr, uint32_t size, const void *section); + uint32_t load_addr, uint32_t size, const void *section, const char *name); void elf_add_fill_section(struct elf_params_t *params, uint32_t fill_addr, uint32_t size, uint32_t pattern); uint32_t elf_translate_virtual_address(struct elf_params_t *params, uint32_t addr); -- cgit v1.2.3