]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit0ad50bd3ff779028cba9ad802ccfb12068d77218
tree64b8e5bfe6f7ea30cb1a5f27118a17f3cd780a59
parente83f34f1d9889c35160ccf6c5c6c740c62d3cb29
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