binman: Don't depend on dict order in ELF testOutsideFile()
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jul 2018 19:25:24 +0000 (13:25 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 1 Aug 2018 22:27:28 +0000 (16:27 -0600)
commit46d61a2f2aeefcd622c9678716429e68a3a98811
tree64b8e5bfe6f7ea30cb1a5f27118a17f3cd780a59
parent61523dde17d1539b8ea361e25909acfdfc465155
binman: Don't depend on dict order in ELF testOutsideFile()

At present this test assumes that the symbols are returned in address
order. However, objdump can list symbols in any order and dictionaries do
not guarantee any particular order when iterating through item.

Update elf.GetSymbols() to return an OrderedDict, sorted by address, to
avoid any problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/elf.py