Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205502
b: refs/heads/master
c: 22a57f5
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed Aug 2, 2010
1 parent fe6a5e2 commit 6be83e2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70b0d22d581a5deef7b2876b0c3774635b8d846c
refs/heads/master: 22a57f5896df218356bae6203dfaf04bcfd6c88c
13 changes: 13 additions & 0 deletions trunk/arch/x86/boot/compressed/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ relocated:
shrl $2, %ecx
rep stosl

/*
* Adjust our own GOT
*/
leal _got(%ebx), %edx
leal _egot(%ebx), %ecx
1:
cmpl %ecx, %edx
jae 2f
addl %ebx, (%edx)
addl $4, %edx
jmp 1b
2:

/*
* Do the decompression, and jump to the new kernel..
*/
Expand Down
13 changes: 13 additions & 0 deletions trunk/arch/x86/boot/compressed/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,19 @@ relocated:
shrq $3, %rcx
rep stosq

/*
* Adjust our own GOT
*/
leaq _got(%rip), %rdx
leaq _egot(%rip), %rcx
1:
cmpq %rcx, %rdx
jae 2f
addq %rbx, (%rdx)
addq $8, %rdx
jmp 1b
2:

/*
* Do the decompression, and jump to the new kernel..
*/
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/x86/boot/compressed/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ SECTIONS
*(.rodata.*)
_erodata = . ;
}
.got : {
_got = .;
KEEP(*(.got.plt))
KEEP(*(.got))
_egot = .;
}
.data : {
_data = . ;
*(.data)
Expand Down

0 comments on commit 6be83e2

Please sign in to comment.