Commit abee6121 authored by Brian Gerst's avatar Brian Gerst Committed by Linus Torvalds

[PATCH] Fix hardcoded value in vsyscall.lds

The last attempt to clean this up still left a hardcoded constant (the
offset from __FIXADDR_TOP).  This patch moves VSYSCALL_BASE to
asm-offsets.c.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9411fcb2
......@@ -62,4 +62,5 @@ void foo(void)
sizeof(struct tss_struct));
DEFINE(PAGE_SIZE_asm, PAGE_SIZE);
DEFINE(VSYSCALL_BASE, __fix_to_virt(FIX_VSYSCALL));
}
......@@ -3,9 +3,7 @@
* object prelinked to its virtual address, and with only one read-only
* segment (that fits in one page). This script controls its layout.
*/
#include <asm/fixmap.h>
VSYSCALL_BASE = __FIXADDR_TOP - 0x1000;
#include <asm/asm_offsets.h>
SECTIONS
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment