]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
xen/relocator: Use local symbol to ensure that code is relocation-free.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 31 Dec 2015 13:54:56 +0000 (14:54 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 31 Dec 2015 13:54:56 +0000 (14:54 +0100)
grub-core/lib/x86_64/xen/relocator.S

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