]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Add a function to read ELF symbols
authorSimon Glass <sjg@chromium.org>
Tue, 14 Nov 2017 01:54:54 +0000 (18:54 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 13 Dec 2017 02:53:45 +0000 (19:53 -0700)
commitb50e5611a6b5dff4bc2ae47d332ba0d046e2a782
treeec72ed0ab95983e04c4d4697d3af70aac64ff33b
parentcf71338ee7a1dc16f13a4f1b89f32c624210df45
binman: Add a function to read ELF symbols

In some cases we need to read symbols from U-Boot. At present we have a
a few cases which does this via 'nm' and 'grep'.

It is better to use objdump since that tells us the size of the symbols
and also whether it is weak or not.

Add a new module which reads ELF information from files. Update existing
uses of 'nm' to use this module.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/binman.py
tools/binman/elf.py [new file with mode: 0644]
tools/binman/elf_test.py [new file with mode: 0644]
tools/binman/etype/u_boot_spl_bss_pad.py
tools/binman/etype/u_boot_with_ucode_ptr.py
tools/binman/ftest.py
tools/binman/test/bss_data.c
tools/binman/test/u_boot_ucode_ptr.c