From f988f5c9513d17b17f1d240588d05abd29dd7d8d Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 28 Nov 2012 00:12:17 +0100 Subject: 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 --- utils/imxtools/sbtools/sbtoelf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'utils') 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 if(fd == NULL) return ; + elf_simplify(elf); elf_write_file(elf, elf_write, elf_printf, fd); fclose(fd); } -- cgit