diff options
Diffstat (limited to 'tools/binman/test/embed_data.c')
-rw-r--r-- | tools/binman/test/embed_data.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/binman/test/embed_data.c b/tools/binman/test/embed_data.c new file mode 100644 index 00000000000..08b68c550f6 --- /dev/null +++ b/tools/binman/test/embed_data.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2021 Google LLC + * + * Simple program including some embedded data that can be accessed by binman. + * This is used by binman tests. + */ + +int first[10] = {1}; +int before[2] __attribute__((section(".embed"))) = {2, 3}; +int embed[3] __attribute__((section(".embed"))) = {0x1234, 0x5678}; +int second[10] = {1}; + +int main(void) +{ + return 0; +} |