OSDN Git Service

crypto: talitos - HMAC SNOOP NO AFEU mode requires SW icv checking.
[android-x86/kernel.git] / scripts / recordmcount.h
index b9897e2..04151ed 100644 (file)
@@ -326,7 +326,8 @@ static uint_t *sift_rel_mcount(uint_t *mlocp,
                if (!mcountsym)
                        mcountsym = get_mcountsym(sym0, relp, str0);
 
-               if (mcountsym == Elf_r_sym(relp) && !is_fake_mcount(relp)) {
+               if (mcountsym && mcountsym == Elf_r_sym(relp) &&
+                               !is_fake_mcount(relp)) {
                        uint_t const addend =
                                _w(_w(relp->r_offset) - recval + mcount_adjust);
                        mrelp->r_offset = _w(offbase