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:
Victor Sun 2018-12-27 22:02:26 +08:00 committed by Eddie Dong
parent 5c278cc57b
commit 351828d34b

View File

@ -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)
{