From: Michal Simek Date: Fri, 12 Apr 2019 09:37:02 +0000 (+0200) Subject: cmd: fru: Move fru_data to data section instead of bss section X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6a651bdcd1cef68be87e6ae3a150f52b62f9c34;p=thirdparty%2Fu-boot.git cmd: fru: Move fru_data to data section instead of bss section I didn't fully check it but I think that there is an issue to use FIT images with dtb again when bss section is cleared. U-Boot copy just origin DTB and if embedded_dtb_select() doesn't find new DTB then can't go back to origin DTB file. Move this structure to data section for now. It should be allocated by malloc anyway. Signed-off-by: Michal Simek --- diff --git a/common/fru_ops.c b/common/fru_ops.c index 75ae1151fe4..26cb888a96f 100644 --- a/common/fru_ops.c +++ b/common/fru_ops.c @@ -12,7 +12,7 @@ #include #include "linux/crc8.h" -struct fru_table fru_data; +struct fru_table fru_data __attribute__((section(".data"))); static u16 fru_cal_area_len(u8 len) {