diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-06 15:46:09 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-06 21:24:38 +0200 |
commit | 8b13d2f5f100d088746a1f8dd94f8ab82acc9b5b (patch) | |
tree | a9308e2e5ff87a637b467cc95b839a616c178785 /utils/imxtools/sbtools/elftosb.c | |
parent | 48ccea96f25318b951607f192d1bfbe76b12eadf (diff) | |
download | rockbox-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.c | 1 |
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 | ||
94 | static void load_bin_by_id(struct cmd_file_t *cmd_file, const char *id) | 93 | static void load_bin_by_id(struct cmd_file_t *cmd_file, const char *id) |