When compiling with CONFIG_DEBUG_SECTION_MISMATCHES, compilation will still currently succeed even though there is still a mismatch. Fix this by putting the check in a different place. Change-Id: I631203803ab9d78e9d57afecbe602aaf37d05dc6 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> (cherry picked from commit 54cb83c041bc65d3501e4f5cd94d9cc7f68b950f)