aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2014-07-07 10:48:56 +0800
committerAlex Shi <alex.shi@linaro.org>2014-07-07 10:48:56 +0800
commitc30d344580ad053502cf5d81288dcd690791d162 (patch)
treebe9c4093d65f386a07363d263418e87cb18550c7 /scripts
parent471dd6b43f72f8ee00d3d1a1281d5aed9d4991ca (diff)
parent49bcf50125c661f45a030edd1a241917f1c7a821 (diff)
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android
Diffstat (limited to 'scripts')
-rw-r--r--scripts/recordmcount.h4
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;