Add a test that we can pad the BSS with zero bytes. Signed-off-by: Simon Glass <sjg@chromium.org>master
parent
a25ebed36f
commit
5650984300
@ -0,0 +1,17 @@ |
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
binman { |
||||
u-boot-spl { |
||||
}; |
||||
|
||||
u-boot-spl-bss-pad { |
||||
}; |
||||
|
||||
u-boot { |
||||
}; |
||||
}; |
||||
}; |
Binary file not shown.
@ -0,0 +1,18 @@ |
||||
/*
|
||||
* 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. |
||||
*/ |
||||
|
||||
int bss_data[10]; |
||||
int __bss_size = sizeof(bss_data); |
||||
|
||||
int main() |
||||
{ |
||||
bss_data[2] = 2; |
||||
|
||||
return 0; |
||||
} |
@ -0,0 +1,16 @@ |
||||
/* |
||||
* Copyright (c) 2016 Google, Inc |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") |
||||
OUTPUT_ARCH(i386) |
||||
ENTRY(_start) |
||||
|
||||
SECTIONS |
||||
{ |
||||
. = 0xfffffdf0; |
||||
_start = .; |
||||
__bss_size = 10; |
||||
} |
Loading…
Reference in new issue