Browse Source

[PATCH] i386: clean up vDSO alignment padding

This makes the vDSO use nops for all its padding around instructions,
rather than sometimes zeros, and nop-pads the end of the area containing
instructions to a 32-byte cache line, to keep text and data in separate
lines.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Roland McGrath 19 years ago
parent
commit
2a0694d15d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      arch/i386/kernel/vsyscall-sigreturn.S

+ 2 - 1
arch/i386/kernel/vsyscall-sigreturn.S

@@ -15,7 +15,7 @@
 */
 */
 
 
 	.text
 	.text
-	.org	__kernel_vsyscall+32
+	.org __kernel_vsyscall+32,0x90
 	.globl __kernel_sigreturn
 	.globl __kernel_sigreturn
 	.type __kernel_sigreturn,@function
 	.type __kernel_sigreturn,@function
 __kernel_sigreturn:
 __kernel_sigreturn:
@@ -35,6 +35,7 @@ __kernel_rt_sigreturn:
 	int $0x80
 	int $0x80
 .LEND_rt_sigreturn:
 .LEND_rt_sigreturn:
 	.size __kernel_rt_sigreturn,.-.LSTART_rt_sigreturn
 	.size __kernel_rt_sigreturn,.-.LSTART_rt_sigreturn
+	.balign 32
 	.previous
 	.previous
 
 
 	.section .eh_frame,"a",@progbits
 	.section .eh_frame,"a",@progbits