mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
HV: code style change for reloc.c
move MACRO of R_X86_64_RELATIVE into #ifdef CONFIG_RELOC block; Tracked-On: #861 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
5c278cc57b
commit
351828d34b
@ -13,6 +13,8 @@
|
||||
#define DT_RELASZ 8 /* size of reloc table */
|
||||
#define DT_RELAENT 9 /* size of one entry */
|
||||
|
||||
#define R_X86_64_RELATIVE 8UL
|
||||
|
||||
struct Elf64_Dyn {
|
||||
uint64_t d_tag;
|
||||
uint64_t d_ptr;
|
||||
@ -30,8 +32,6 @@ static inline uint64_t elf64_r_type(uint64_t i)
|
||||
return (i & 0xffffffffUL);
|
||||
}
|
||||
|
||||
#define R_X86_64_RELATIVE 8UL
|
||||
|
||||
/* 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