From: Masahiro Yamada Date: Wed, 10 Dec 2014 16:39:39 +0900 Subject: [U-Boot] Use .data section in SPL ? Message-ID: <20141210163938.02D8.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi. I notice SPL is using .data section u32 *boot_params_ptr = NULL; struct spl_image_info spl_image; /* Define board data structure */ static bd_t bdata __attribute__ ((section(".data"))); If SPL is running on an execute-in-place device such NOR flash, .data section is not writable. common/spl/spl_nor.c does not work. Shall we ban global variables on SPL (and pre-relocation) ? or Shall we make .data section available? Best Regards Masahiro Yamada