diff options
author | Alex Shi <alex.shi@linaro.org> | 2014-07-07 10:48:56 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2014-07-07 10:48:56 +0800 |
commit | c30d344580ad053502cf5d81288dcd690791d162 (patch) | |
tree | be9c4093d65f386a07363d263418e87cb18550c7 /scripts | |
parent | 471dd6b43f72f8ee00d3d1a1281d5aed9d4991ca (diff) | |
parent | 49bcf50125c661f45a030edd1a241917f1c7a821 (diff) |
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/recordmcount.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index 9d1421e63ff8..49b582a225b0 100644 --- a/scripts/recordmcount.h +++ b/scripts/recordmcount.h @@ -163,11 +163,11 @@ static int mcount_adjust = 0; static int MIPS_is_fake_mcount(Elf_Rel const *rp) { - static Elf_Addr old_r_offset; + static Elf_Addr old_r_offset = ~(Elf_Addr)0; Elf_Addr current_r_offset = _w(rp->r_offset); int is_fake; - is_fake = old_r_offset && + is_fake = (old_r_offset != ~(Elf_Addr)0) && (current_r_offset - old_r_offset == MIPS_FAKEMCOUNT_OFFSET); old_r_offset = current_r_offset; |