]> xenbits.xensource.com Git - xen.git/commit
x86/ELF: don't store function pointer in elf_core_save_regs()
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2020 08:51:54 +0000 (10:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2020 08:51:54 +0000 (10:51 +0200)
commit1e15dcfbaef6ef5b1cdba73408be6bd9dfc27fe9
tree9c390eed4f84d23b374b2ea59a1e71f1ce519bde
parent5be4ce01d0fe412230da6825f98cf08a6b4094fe
x86/ELF: don't store function pointer in elf_core_save_regs()

This keeps at least gcc 10 from generating a separate function instance
in common/kexec.o alongside the inlining of the function in its sole
caller. I also think putting the address of the actual code storing the
registers is a better indication to consumers than that of an otherwise
unreferenced function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/x86_64/elf.h