commit | 17eae0d5ac7e85ecec2c52eec18395d08344e14d | [log] [tgz] |
---|---|---|
author | Tianyi Gou <tgou@codeaurora.org> | Thu Jun 28 17:19:37 2012 -0700 |
committer | Tianyi Gou <tgou@codeaurora.org> | Thu Jun 28 19:29:15 2012 -0700 |
tree | 1c26fad92f03c3ea9ce352ddb4ad34dbaa395103 | |
parent | 39c6c645e779aedc0268dd07013672c0884d3562 [diff] |
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: Tianyi Gou <tgou@codeaurora.org>