Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 569fde29 authored by Tianyi Gou's avatar Tianyi Gou Committed by Stephen Boyd
Browse files

msm: pil: Fix loadable segment type check



Currently, a segment's p_type value from program head is bitwise
AND with PT_LOAD type constant to determine if it's a loadable
segment. This might cause problem when the p_type value of a
non-LOAD segment has the PT_LOAD bit set. For example, the
GNU_STACK segment.

Fix this by comparing p_type value against PT_LOAD type constant.

Change-Id: Ie293dfd3ad744fc5dab3d9a6e7992f42d609b17c
Signed-off-by: default avatarTianyi Gou <tgou@codeaurora.org>
parent 419a608f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment