[xen master] libelf: allow having HYPERCALL_PAGE entry before VIRT_BASE in __xen_guest section
Author: Gregory Herrero <[hidden email]>
AuthorDate: Mon Dec 4 11:01:48 2017 +0100
Commit: Jan Beulich <[hidden email]>
CommitDate: Mon Dec 4 11:01:48 2017 +0100
libelf: allow having HYPERCALL_PAGE entry before VIRT_BASE in __xen_guest section
When filling __xen_guest section of a guest, user may define
HYPERCALL_PAGE earlier than VIRT_BASE in the section leading to an
incorrect hypercall page address since an undefined virt_base could be
used to compute hypercall page address.
If there is no VIRT_BASE entry in __xen_guest section, default value of
0 is used for virt_base. Thus, setting hypercall page address to
HYPERCALL_PAGE value is correct in this case too.