git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86/PCI: Mark Broadwell-EP Home Agent 1 as having non-compliant BARs
[pandora-kernel.git]
/
scripts
/
recordmcount.h
diff --git
a/scripts/recordmcount.h
b/scripts/recordmcount.h
index
f40a6af
..
799d734
100644
(file)
--- 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 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;
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;
(current_r_offset - old_r_offset == MIPS_FAKEMCOUNT_OFFSET);
old_r_offset = current_r_offset;
@@
-375,7
+375,7
@@
static void nop_mcount(Elf_Shdr const *const relhdr,
if (mcountsym == Elf_r_sym(relp) && !is_fake_mcount(relp)) {
if (make_nop)
if (mcountsym == Elf_r_sym(relp) && !is_fake_mcount(relp)) {
if (make_nop)
- ret = make_nop((void *)ehdr,
shdr->sh_offset + relp->r_offset
);
+ ret = make_nop((void *)ehdr,
_w(shdr->sh_offset) + _w(relp->r_offset)
);
if (warn_on_notrace_sect && !once) {
printf("Section %s has mcount callers being ignored\n",
txtname);
if (warn_on_notrace_sect && !once) {
printf("Section %s has mcount callers being ignored\n",
txtname);
@@
-462,7
+462,7
@@
__has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA */
succeed_file();
}
if (w(txthdr->sh_type) != SHT_PROGBITS ||
succeed_file();
}
if (w(txthdr->sh_type) != SHT_PROGBITS ||
- !(w(txthdr->sh_flags) & SHF_EXECINSTR))
+ !(
_
w(txthdr->sh_flags) & SHF_EXECINSTR))
return NULL;
return txtname;
}
return NULL;
return txtname;
}