All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm64: Add NOLOAD attribute NOLOAD to .bss sections
@ 2017-05-29  8:26 Michal Simek
  2017-06-06  0:23 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2017-05-29  8:26 UTC (permalink / raw)
  To: u-boot

Mark explicitly bss sections to not be loaded at
run time.
The similar patch was done in past by:
"Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections"
(sha1: 64134f011254123618798ff77c42ba196b2ec485)

The problem is related to latest toolchain added to Xilinx
v2017.1 design tools where jtag loader is trying to access
ununitialized memory.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/arm/cpu/armv8/u-boot-spl.lds | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds
index cc427c3583fd..0d1b0c499304 100644
--- a/arch/arm/cpu/armv8/u-boot-spl.lds
+++ b/arch/arm/cpu/armv8/u-boot-spl.lds
@@ -56,17 +56,17 @@ SECTIONS
 
 	_image_binary_end = .;
 
-	.bss_start : {
+	.bss_start (NOLOAD) : {
 		. = ALIGN(8);
 		KEEP(*(.__bss_start));
 	} >.sdram
 
-	.bss : {
+	.bss (NOLOAD) : {
 		*(.bss*)
 		 . = ALIGN(8);
 	} >.sdram
 
-	.bss_end : {
+	.bss_end (NOLOAD) : {
 		KEEP(*(.__bss_end));
 	} >.sdram
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] arm64: Add NOLOAD attribute NOLOAD to .bss sections
  2017-05-29  8:26 [U-Boot] [PATCH] arm64: Add NOLOAD attribute NOLOAD to .bss sections Michal Simek
@ 2017-06-06  0:23 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2017-06-06  0:23 UTC (permalink / raw)
  To: u-boot

On Mon, May 29, 2017 at 10:26:53AM +0200, Michal Simek wrote:

> Mark explicitly bss sections to not be loaded at
> run time.
> The similar patch was done in past by:
> "Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections"
> (sha1: 64134f011254123618798ff77c42ba196b2ec485)
> 
> The problem is related to latest toolchain added to Xilinx
> v2017.1 design tools where jtag loader is trying to access
> ununitialized memory.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170605/c81ab473/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-06  0:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-29  8:26 [U-Boot] [PATCH] arm64: Add NOLOAD attribute NOLOAD to .bss sections Michal Simek
2017-06-06  0:23 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.