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

Skip to content
Commit f7c63176 authored by Prasad Sodagudi's avatar Prasad Sodagudi Committed by Gerrit - the friendly Code Review server
Browse files

Makefile: Disable constant merging/optimziations with clang



Clang optimizes static constant variables if both variables are
having same value. clang decided to merge the bpf_prog_iops and
bpf_map_iops into a single memory location, such that the two
i_ops could then not be distinguished anymore and leading to
kernel panic. So disable Snapdragon specific compiler optimizations
by adding -mllvm -disable-struct-const-merge flag to CFLAG.

Change-Id: I3a8d3829fd5102c916e74af4080a1b1d2d3257b9
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent 13a07ada
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