summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/elftosb.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-08-06 15:46:09 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-06 21:24:38 +0200
commit8b13d2f5f100d088746a1f8dd94f8ab82acc9b5b (patch)
treea9308e2e5ff87a637b467cc95b839a616c178785 /utils/imxtools/sbtools/elftosb.c
parent48ccea96f25318b951607f192d1bfbe76b12eadf (diff)
downloadrockbox-8b13d2f5f100d088746a1f8dd94f8ab82acc9b5b.tar.gz
rockbox-8b13d2f5f100d088746a1f8dd94f8ab82acc9b5b.zip
elf: fix handling of virtual/physical addresses
Remove the hackish elf_translate_addresses which should not have existed in the first place, on write always compute the physical address of a section using elf_translate_virtual_address which makes it possible to specify any virtual to physical mapping and fail nicely if there is none. Change-Id: I4f436945e90280a6fd9430de6c642dbeb8e23d40
Diffstat (limited to 'utils/imxtools/sbtools/elftosb.c')
-rw-r--r--utils/imxtools/sbtools/elftosb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/imxtools/sbtools/elftosb.c b/utils/imxtools/sbtools/elftosb.c
index a18bad6437..e264337d11 100644
--- a/utils/imxtools/sbtools/elftosb.c
+++ b/utils/imxtools/sbtools/elftosb.c
@@ -88,7 +88,6 @@ static void load_elf_by_id(struct cmd_file_t *cmd_file, const char *id)
88 fclose(fd); 88 fclose(fd);
89 if(!src->loaded) 89 if(!src->loaded)
90 bug("error loading elf file '%s' (id '%s')\n", src->filename, id); 90 bug("error loading elf file '%s' (id '%s')\n", src->filename, id);
91 elf_translate_addresses(&src->elf);
92} 91}
93 92
94static void load_bin_by_id(struct cmd_file_t *cmd_file, const char *id) 93static void load_bin_by_id(struct cmd_file_t *cmd_file, const char *id)