]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: avoid marking decompressor .stack section as having contents
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Nov 2010 12:00:59 +0000 (12:00 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Nov 2010 12:00:59 +0000 (12:00 +0000)
The .stack section doesn't contain any contents, and doesn't require
initialization either.  Rather than marking the output section with
'NOLOAD' but still having it exist in the object files, mark it with
%nobits which avoids the assembler marking the section with 'CONTENTS'.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S
arch/arm/boot/compressed/vmlinux.lds.in

index 6825c34646d4e02f24b0eefe7ab4e012bca05208..9be21ba648cd2ad8d00861a8796855fd9db0013e 100644 (file)
@@ -1084,6 +1084,6 @@ memdump:  mov     r12, r0
 reloc_end:
 
                .align
-               .section ".stack", "w"
+               .section ".stack", "aw", %nobits
 user_stack:    .space  4096
 user_stack_end:
index d08168941bd686b6f7a112f0668e96503c2ba667..366a924019ac6dcf1ccaad07b605f6c6ec1b74c6 100644 (file)
@@ -57,7 +57,7 @@ SECTIONS
   .bss                 : { *(.bss) }
   _end = .;
 
-  .stack (NOLOAD)      : { *(.stack) }
+  .stack               : { *(.stack) }
 
   .stab 0              : { *(.stab) }
   .stabstr 0           : { *(.stabstr) }