summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-11-28 00:12:17 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-11-28 00:12:17 +0100
commitf988f5c9513d17b17f1d240588d05abd29dd7d8d (patch)
tree5e589bbd33caec90b4418c0ec7568d2add3b3ef8
parent1c140410412ffc88d528689658410b2c97e9d677 (diff)
downloadrockbox-f988f5c9513d17b17f1d240588d05abd29dd7d8d.tar.gz
rockbox-f988f5c9513d17b17f1d240588d05abd29dd7d8d.zip
sbtoelf: also simplify elf files for sb2
This is less useful is most cases because sb2 doesn't have the size restritions but some elf are produced with one section per file and still yield dozens or hundreds of sections. And this free anyway so we can do it. Change-Id: Ia5ca83a8375063ecc7052d1ea73b2b21c00be730
-rw-r--r--utils/imxtools/sbtools/sbtoelf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/sbtoelf.c b/utils/imxtools/sbtools/sbtoelf.c
index f86200f184..c906eeb871 100644
--- a/utils/imxtools/sbtools/sbtoelf.c
+++ b/utils/imxtools/sbtools/sbtoelf.c
@@ -91,6 +91,7 @@ static void extract_elf_section(struct elf_params_t *elf, int count, uint32_t id
91 91
92 if(fd == NULL) 92 if(fd == NULL)
93 return ; 93 return ;
94 elf_simplify(elf);
94 elf_write_file(elf, elf_write, elf_printf, fd); 95 elf_write_file(elf, elf_write, elf_printf, fd);
95 fclose(fd); 96 fclose(fd);
96} 97}