diff options
author | Tom Rini <trini@konsulko.com> | 2016-12-20 08:42:04 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-20 08:42:04 -0500 |
commit | 36737f22b78a475c6bbc8a0467b51e4d95b52a7d (patch) | |
tree | 0983212512bde84015bff16e1e0900c359e004fa /tools/binman/test/u_boot_ucode_ptr.c | |
parent | 23465119610f47b469a3929c077ece5859f77455 (diff) | |
parent | 68af10022442153f6f87958053fee030ad1cb57f (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/binman/test/u_boot_ucode_ptr.c')
-rw-r--r-- | tools/binman/test/u_boot_ucode_ptr.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/binman/test/u_boot_ucode_ptr.c b/tools/binman/test/u_boot_ucode_ptr.c new file mode 100644 index 0000000000..434c9f4400 --- /dev/null +++ b/tools/binman/test/u_boot_ucode_ptr.c @@ -0,0 +1,15 @@ +/* + * 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 'nm'. This is used by binman tests. + * + * Build with: + * cc -march=i386 -m32 -o u_boot_ucode_ptr -T u_boot_ucode_ptr.lds -nostdlib \ + u_boot_ucode_ptr.c + */ + +static unsigned long _dt_ucode_base_size[2] + __attribute__((section(".ucode"))) = {1, 2}; |