GOT patcher: support API-by-pointer calls 91/92191/6
authorAlexander Aksenov <a.aksenov@samsung.com>
Thu, 13 Oct 2016 14:59:06 +0000 (17:59 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Wed, 26 Oct 2016 18:31:34 +0000 (21:31 +0300)
commit6d7903393f0210422e5cdc87fcc84e0d8975bb56
tree9f6547e93a23562cd97ced91620c17f179c5bba3
parentc5a4a1ebbb992e8b9e59b8c1ce2b6635949b622d
GOT patcher: support API-by-pointer calls

Issue:
When target API function is called via pointer, not directly,
it was not handled, because symbol was stored in variables section
and not in functions.

Solution:
Patch not only function, but also variable section when variable
name is the same as a target API.

Change-Id: I3178360ddf8d1099e63ec9119d7322e70fefc5f7
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
helper/get_got.c
helper/get_got.h
helper/got_patching.c