- int num_sections; /* number of sections contained in the image */
- image_section_t *sections; /* array of sections */
- int base_address_set; /* whether the image has a base address set (for relocation purposes) */
- int base_address; /* base address, if one is set */
- int start_address_set; /* whether the image has a start address (entry point) associated */
- u32 start_address; /* start address, if one is set */
-} image_t;
-
-typedef struct image_binary_s
-{
- fileio_t fileio;
-} image_binary_t;
-
-typedef struct image_ihex_s
-{
- fileio_t fileio;
- u8 *buffer;
-} image_ihex_t;
-
-typedef struct image_memory_s
-{
- target_t *target;
- u8 *cache;
- u32 cache_address;
-} image_memory_t;
-
-typedef struct fileio_elf_s
-{
- fileio_t fileio;
+ unsigned int num_sections; /* number of sections contained in the image */
+ struct imagesection *sections; /* array of sections */
+ bool base_address_set; /* whether the image has a base address set (for relocation purposes) */
+ long long base_address; /* base address, if one is set */
+ bool start_address_set; /* whether the image has a start address (entry point) associated */
+ uint32_t start_address; /* start address, if one is set */
+};
+
+struct image_binary {
+ struct fileio *fileio;
+};
+
+struct image_ihex {
+ struct fileio *fileio;
+ uint8_t *buffer;
+};
+
+struct image_memory {
+ struct target *target;
+ uint8_t *cache;
+ uint32_t cache_address;
+};
+
+struct image_elf {
+ struct fileio *fileio;