mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
xen/relocator: Use local symbol to ensure that code is relocation-free.
This commit is contained in:
1 parent
60ae582142
commit
76588d1319
1 file changed
+2
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user