xen/relocator: Use local symbol to ensure that code is relocation-free.

This commit is contained in:
Vladimir Serbinenko 2015-12-31 14:54:56 +01:00
parent 60ae582142
commit 76588d1319

View file

@ -89,7 +89,7 @@ VARIABLE(grub_relocator_xen_mfn_list)
loop 1b loop 1b
leaq EXT_C(grub_relocator_xen_mmu_op) (%rip), %rdi leaq LOCAL(mmu_op) (%rip), %rdi
movq $3, %rsi movq $3, %rsi
movq $0, %rdx movq $0, %rdx
movq $0x7FF0, %r10 movq $0x7FF0, %r10
@ -104,6 +104,7 @@ VARIABLE(grub_relocator_xen_remap_continue)
jmp *%rax jmp *%rax
LOCAL(mmu_op):
VARIABLE(grub_relocator_xen_mmu_op) VARIABLE(grub_relocator_xen_mmu_op)
.space 256 .space 256