Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77943
b: refs/heads/master
c: 58b7a68
h: refs/heads/master
i:
  77941: 66bc425
  77939: 2497ff6
  77935: 628c7cb
v: v3
  • Loading branch information
Andi Kleen authored and Sam Ravnborg committed Jan 28, 2008
1 parent 49b796b commit 48387d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d9a89ea4b06146d29e1ffb4d6fded286fa07d29
refs/heads/master: 58b7a68de37face98afe7c705391145795a982b5
7 changes: 4 additions & 3 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static int parse_elf(struct elf_info *info, const char *filename)

/* Check if file offset is correct */
if (hdr->e_shoff > info->size) {
fatal("section header offset=%u in file '%s' is bigger then filesize=%lu\n", hdr->e_shoff, filename, info->size);
fatal("section header offset=%lu in file '%s' is bigger then filesize=%lu\n", (unsigned long)hdr->e_shoff, filename, info->size);
return 0;
}

Expand All @@ -409,7 +409,7 @@ static int parse_elf(struct elf_info *info, const char *filename)
const char *secname;

if (sechdrs[i].sh_offset > info->size) {
fatal("%s is truncated. sechdrs[i].sh_offset=%u > sizeof(*hrd)=%ul\n", filename, (unsigned int)sechdrs[i].sh_offset, sizeof(*hdr));
fatal("%s is truncated. sechdrs[i].sh_offset=%lu > sizeof(*hrd)=%lu\n", filename, (unsigned long)sechdrs[i].sh_offset, sizeof(*hdr));
return 0;
}
secname = secstrings + sechdrs[i].sh_name;
Expand Down Expand Up @@ -907,7 +907,8 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
"before '%s' (at offset -0x%llx)\n",
modname, fromsec, (unsigned long long)r.r_offset,
secname, refsymname,
elf->strtab + after->st_name);
elf->strtab + after->st_name,
(unsigned long long)r.r_offset);
} else {
warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s\n",
modname, fromsec, (unsigned long long)r.r_offset,
Expand Down

0 comments on commit 48387d8

Please sign in to comment.