Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43095
b: refs/heads/master
c: 79929fd
h: refs/heads/master
i:
  43093: 4d61ea9
  43091: 647f97e
  43087: ec3b426
v: v3
  • Loading branch information
Vivek Goyal authored and Andi Kleen committed Dec 7, 2006
1 parent 514e4b9 commit 8a5e315
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 2c22d8baa98a92022acb85b0b7c6f4a60df55f47
refs/heads/master: 79929fd1c1887d2a057cbb80d487a2e2f1c01a02
14 changes: 10 additions & 4 deletions trunk/arch/i386/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
* put it inside the section definition.
*/

/* Don't define absolute symbols until and unless you know that symbol
* value is should remain constant even if kernel image is relocated
* at run time. Absolute symbols are not relocated. If symbol value should
* change if kernel is relocated, make the symbol section relative and
* put it inside the section definition.
*/
#define LOAD_OFFSET __PAGE_OFFSET

#include <asm-generic/vmlinux.lds.h>
Expand Down Expand Up @@ -65,11 +71,11 @@ SECTIONS
CONSTRUCTORS
} :data

__start_paravirtprobe = .;
.paravirtprobe : AT(ADDR(.paravirtprobe) - LOAD_OFFSET) {
__start_paravirtprobe = .;
*(.paravirtprobe)
__stop_paravirtprobe = .;
}
__stop_paravirtprobe = .;

. = ALIGN(4096);
.data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) {
Expand Down Expand Up @@ -172,11 +178,11 @@ SECTIONS
*(.altinstr_replacement)
}
. = ALIGN(4);
__start_parainstructions = .;
.parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {
__start_parainstructions = .;
*(.parainstructions)
__stop_parainstructions = .;
}
__stop_parainstructions = .;
/* .exit.text is discard at runtime, not link time, to deal with references
from .altinstructions and .eh_frame */
.exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { *(.exit.text) }
Expand Down

0 comments on commit 8a5e315

Please sign in to comment.