For R_386_RELATIVE and R_X86_64_RELATIVE, today's logic assumes that
the content pointed by the Rela->r_offset is 0 but it's not always
TRUE. We observed that linker may set the content to Rela->r_addend.
The patch removes the assertion.
There is no functionality impact for this patch.
Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
// Calculation: B + A\r
//\r
if (RelaType == SHT_RELA) {\r
- ASSERT (*Ptr == 0);\r
*Ptr = (UINT32) Delta + Rela->r_addend;\r
} else {\r
//\r
// Calculation: B + A\r
//\r
if (RelaType == SHT_RELA) {\r
- ASSERT (*Ptr == 0);\r
*Ptr = Delta + Rela->r_addend;\r
} else {\r
//\r