From 351828d34be2065f72f5d35a96b2b980fb17a763 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Thu, 27 Dec 2018 22:02:26 +0800 Subject: [PATCH] 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 Acked-by: Eddie Dong --- hypervisor/boot/reloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hypervisor/boot/reloc.c b/hypervisor/boot/reloc.c index ff6fcb90a..a3c843b5a 100644 --- a/hypervisor/boot/reloc.c +++ b/hypervisor/boot/reloc.c @@ -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) {