mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 01:48:52 +09:00
![Simon Glass](/assets/img/avatar_default.png)
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>
19 lines
309 B
C
19 lines
309 B
C
/*
|
|
* Copyright (c) 2016 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*
|
|
* Simple program to create a _dt_ucode_base_size symbol which can be read
|
|
* by binutils. This is used by binman tests.
|
|
*/
|
|
|
|
int bss_data[10];
|
|
int __bss_size = sizeof(bss_data);
|
|
|
|
int main()
|
|
{
|
|
bss_data[2] = 2;
|
|
|
|
return 0;
|
|
}
|