mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-29 04:04:05 +00:00
hv: reloc: enclose elf64_r_type()
with #ifdef CONFIG_RELOC
elf64_r_type() is only invoked when CONFIG_RELOC is defined. This patch encloses its definition with `#ifdef CONFIG_RELOC`, otherwise, it is dead code. Tracked-On: #861 Signed-off-by: Gao, Shiqing <shiqing.gao@intel.com>
This commit is contained in:
parent
f398b9c29e
commit
2aed0c7aa1
@ -26,12 +26,12 @@ struct Elf64_Rel {
|
||||
uint64_t r_info;
|
||||
uint64_t reserved;
|
||||
};
|
||||
#endif
|
||||
|
||||
static inline uint64_t elf64_r_type(uint64_t i)
|
||||
{
|
||||
return (i & 0xffffffffUL);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* get the delta between CONFIG_HV_RAM_START and the actual load address */
|
||||
uint64_t get_hv_image_delta(void)
|
||||
|
Loading…
Reference in New Issue
Block a user