summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2017-11-13 18:54:54 -0700
committerSimon Glass <[email protected]>2017-12-12 19:53:45 -0700
commitb50e5611a6b5dff4bc2ae47d332ba0d046e2a782 (patch)
treeec72ed0ab95983e04c4d4697d3af70aac64ff33b /tools/binman/test
parentcf71338ee7a1dc16f13a4f1b89f32c624210df45 (diff)
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 <[email protected]>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/bss_data.c2
-rw-r--r--tools/binman/test/u_boot_ucode_ptr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/test/bss_data.c b/tools/binman/test/bss_data.c
index f865a9d9f67..e0305c382c3 100644
--- a/tools/binman/test/bss_data.c
+++ b/tools/binman/test/bss_data.c
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-2.0+
*
* Simple program to create a _dt_ucode_base_size symbol which can be read
- * by 'nm'. This is used by binman tests.
+ * by binutils. This is used by binman tests.
*/
int bss_data[10];
diff --git a/tools/binman/test/u_boot_ucode_ptr.c b/tools/binman/test/u_boot_ucode_ptr.c
index 24f349fb9e4..734d54f0d41 100644
--- a/tools/binman/test/u_boot_ucode_ptr.c
+++ b/tools/binman/test/u_boot_ucode_ptr.c
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-2.0+
*
* Simple program to create a _dt_ucode_base_size symbol which can be read
- * by 'nm'. This is used by binman tests.
+ * by binutils. This is used by binman tests.
*/
static unsigned long _dt_ucode_base_size[2]