-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch changes the kernel's references to addresses in the vDSO image to be based on the symbols defined by vdso-syms.lds instead of the old vdso-syms.o symbols. This is all wrapped up in a macro defined by the new asm-x86/vdso.h header; that's the only place in the kernel source that has to know the details of the scheme for getting vDSO symbol values. Signed-off-by: Roland McGrath <roland@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
- Loading branch information
Roland McGrath
authored and
Ingo Molnar
committed
Jan 30, 2008
1 parent
5b93049
commit 7f3646a
Showing
4 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef _ASM_X86_VDSO_H | ||
#define _ASM_X86_VDSO_H 1 | ||
|
||
extern const char VDSO64_PRELINK[]; | ||
|
||
/* | ||
* Given a pointer to the vDSO image, find the pointer to VDSO64_name | ||
* as that symbol is defined in the vDSO sources or linker script. | ||
*/ | ||
#define VDSO64_SYMBOL(base, name) ({ \ | ||
extern const char VDSO64_##name[]; \ | ||
(void *) (VDSO64_##name - VDSO64_PRELINK + (unsigned long) (base)); }) | ||
|
||
#endif /* asm-x86/vdso.h */ |