]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/C/GenFw/Elf64Convert.c
BaseTools/GenFw: Fixed R_AARCH64_CALL26/R_AARCH64_JUMP26 when referring to start...
authorOlivier Martin <olivier.martin@arm.com>
Wed, 5 Nov 2014 18:56:17 +0000 (18:56 +0000)
committeroliviermartin <oliviermartin@Edk2>
Wed, 5 Nov 2014 18:56:17 +0000 (18:56 +0000)
commitb85f57995e010db57dc46be445c444d42a8939f2
tree9fe84b1bb214eada52a260730cce01dccbfc3851
parentbe91c7706958e822885ebec36b48483b142755cd
BaseTools/GenFw: Fixed R_AARCH64_CALL26/R_AARCH64_JUMP26 when referring to start of a section

When R_AARCH64_CALL26/R_AARCH64_JUMP26 relocations referred to static
functions, they sometime refer to the start of the '.text' section + addend.
It means the addend is different of '0'.
The non-patched code (before applying the relocation) already contains
the correct offset.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16302 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Source/C/GenFw/Elf64Convert.c