Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262868
b: refs/heads/master
c: f670bb7
h: refs/heads/master
v: v3
  • Loading branch information
Andy Lutomirski authored and H. Peter Anvin committed Aug 4, 2011
1 parent 8964f06 commit adf04fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c40818da5b39fca236029059ab839857b1ef56c
refs/heads/master: f670bb760e7d32ec9c690e748a1d5d04921363ab
16 changes: 10 additions & 6 deletions trunk/arch/x86/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ SECTIONS
__vvar_page = .;

.vvar : AT(ADDR(.vvar) - LOAD_OFFSET) {
/* work around gold bug 13023 */
__vvar_beginning_hack = .;

/* Place all vvars at the offsets in asm/vvar.h. */
#define EMIT_VVAR(name, offset) \
. = offset; \
/* Place all vvars at the offsets in asm/vvar.h. */
#define EMIT_VVAR(name, offset) \
. = __vvar_beginning_hack + offset; \
*(.vvar_ ## name)
#define __VVAR_KERNEL_LDS
#include <asm/vvar.h>
Expand All @@ -184,15 +186,17 @@ SECTIONS

. = VSYSCALL_ADDR;
.vsyscall : AT(VLOAD(.vsyscall)) {
/* work around gold bug 13023 */
__vsyscall_beginning_hack = .;
*(.vsyscall_0)

. = 1024;
. = __vsyscall_beginning_hack + 1024;
*(.vsyscall_1)

. = 2048;
. = __vsyscall_beginning_hack + 2048;
*(.vsyscall_2)

. = 4096; /* Pad the whole page. */
. = __vsyscall_beginning_hack + 4096; /* Pad the whole page. */
} :user =0xcc
. = ALIGN(__vsyscall_0 + PAGE_SIZE, PAGE_SIZE);

Expand Down

0 comments on commit adf04fe

Please sign in to comment.