summaryrefslogtreecommitdiffstats
path: root/utils/imxtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-08-22 15:05:13 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-22 15:05:13 +0200
commitacaedfdb89dc73e64559791e91239942c27a86c6 (patch)
treed9971c14e1486a1d0d8c31132c2ec823ab8a3e24 /utils/imxtools
parent260399ee8c44970aaa1cc9fd27db20df96604c5d (diff)
downloadrockbox-acaedfdb89dc73e64559791e91239942c27a86c6.tar.gz
rockbox-acaedfdb89dc73e64559791e91239942c27a86c6.tar.bz2
rockbox-acaedfdb89dc73e64559791e91239942c27a86c6.zip
sbtools: fix elf section naming
Change-Id: I4500bf70028af26cc4b8136f111f527e1396d16e
Diffstat (limited to 'utils/imxtools')
-rw-r--r--utils/imxtools/sbtools/sbtoelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/imxtools/sbtools/sbtoelf.c b/utils/imxtools/sbtools/sbtoelf.c
index 04bde051ad..578135d7ca 100644
--- a/utils/imxtools/sbtools/sbtoelf.c
+++ b/utils/imxtools/sbtools/sbtoelf.c
@@ -134,7 +134,7 @@ static void extract_sb_section(struct sb_section_t *sec, struct cmd_file_t *cmd_
switch(inst->inst)
{
case SB_INST_LOAD:
- sprintf(secname, ".text%d", text_idx);
+ sprintf(secname, ".text%d", text_idx++);
elf_add_load_section(&elf, inst->addr, inst->size, inst->data, secname);
break;
case SB_INST_FILL: