Re: [PATCH] BaseTools X64: fold PLT relocations into simple relative references


Ard Biesheuvel
 

On 4 August 2016 at 10:54, Shi, Steven <steven.shi@intel.com> wrote:
Hi Ard,
I don't see you add below code for case R_X86_64_PLT32. Is it right?

*(UINT32 *)Targ = (UINT32) (*(UINT32 *)Targ
+ (mCoffSectionsOffset[Sym->st_shndx] - SymShdr->sh_addr)
- (SecOffset - SecShdr->sh_addr));
Isn't it identical to the code for R_X86_64_PC32?

Join devel@edk2.groups.io to automatically receive all group messages.