exec: Factor out section_covers_addr
commit29cb533d8cbff1330717619780c2f1dfe764e003
authorFam Zheng <famz@redhat.com>
Tue, 1 Mar 2016 06:18:23 +0000 (1 14:18 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 Mar 2016 12:26:37 +0000 (7 13:26 +0100)
tree399599e548404bdc88af948dc1d229252af1b542
parentf1060c55bf1377b499affc8d022378d936f0bd99
exec: Factor out section_covers_addr

This will be shared by the next patch.

Also add a comment explaining the unobvious condition on "size.hi".

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1456813104-25902-7-git-send-email-famz@redhat.com>
[Small change to the comment. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c