diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-08-31 02:56:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-31 04:42:22 -0400 |
commit | c7ec16da5adc1c1b341b2a83bde7add17dcf811a (patch) | |
tree | 4e11748671da5c83c894f1fe96ce999f33b52e7d /arch/um/kernel/uml.lds.S | |
parent | 641916881322a2dee5b120d509a3bdd05a502510 (diff) |
uml: fix linker script alignment bugs
Fix a class of bugs in the UML linker scripts which caused section boundary
variables to sometimes not line up with their sections.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel/uml.lds.S')
-rw-r--r-- | arch/um/kernel/uml.lds.S | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/um/kernel/uml.lds.S b/arch/um/kernel/uml.lds.S index 307b9373676b..81acdc24348e 100644 --- a/arch/um/kernel/uml.lds.S +++ b/arch/um/kernel/uml.lds.S | |||
@@ -44,12 +44,13 @@ SECTIONS | |||
44 | /* .gnu.warning sections are handled specially by elf32.em. */ | 44 | /* .gnu.warning sections are handled specially by elf32.em. */ |
45 | *(.gnu.warning) | 45 | *(.gnu.warning) |
46 | *(.gnu.linkonce.t*) | 46 | *(.gnu.linkonce.t*) |
47 | } | ||
47 | 48 | ||
48 | . = ALIGN(4096); | 49 | . = ALIGN(4096); |
49 | __syscall_stub_start = .; | 50 | .syscall_stub : { |
50 | *(.__syscall_stub*) | 51 | __syscall_stub_start = .; |
51 | __syscall_stub_end = .; | 52 | *(.__syscall_stub*) |
52 | . = ALIGN(4096); | 53 | __syscall_stub_end = .; |
53 | } | 54 | } |
54 | 55 | ||
55 | #include "asm/common.lds.S" | 56 | #include "asm/common.lds.S" |