Skip to content

Commit

Permalink
[PATCH] uml: fix static linking
Browse files Browse the repository at this point in the history
During a static link, ld has started putting a .note section in the
.uml.setup.init section.  This has the result that the UML setups begin
with 32 bytes of garbage and UML crashes immediately on boot.

This patch creates a specific .note section for ld to drop this stuff
into.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Mar 27, 2007
1 parent e9d5a46 commit 7632fc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-um/common.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
PROVIDE (_unprotected_end = .);

. = ALIGN(4096);
.note : { *(note.*) }
__start___ex_table = .;
__ex_table : { *(__ex_table) }
__stop___ex_table = .;
Expand Down

0 comments on commit 7632fc8

Please sign in to comment.