Skip to content

Commit

Permalink
ARM: avoid marking decompressor .stack section as having contents
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Nov 22, 2010
1 parent 1142b71 commit b0c4d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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:
2 changes: 1 addition & 1 deletion arch/arm/boot/compressed/vmlinux.lds.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SECTIONS
.bss : { *(.bss) }
_end = .;

.stack (NOLOAD) : { *(.stack) }
.stack : { *(.stack) }

.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
Expand Down

0 comments on commit b0c4d4e

Please sign in to comment.