Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23714
b: refs/heads/master
c: fededcd
h: refs/heads/master
v: v3
  • Loading branch information
akpm@osdl.org authored and Sam Ravnborg committed Feb 22, 2006
1 parent f7a4e3e commit 43bcfaf
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0f558c333445a0181f33f9e6f996ce7cf008206a
refs/heads/master: fededcd2af6219de69b252b7d3ea4b4ec2f33c7a
6 changes: 3 additions & 3 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,14 +590,14 @@ static void check_sec_ref(struct module *mod, const char *modname,

/* Walk through all sections */
for (i = 0; i < hdr->e_shnum; i++) {
Elf_Rela *rela;
Elf_Rela *start = (void *)hdr + sechdrs[i].sh_offset;
Elf_Rela *stop = (void*)start + sechdrs[i].sh_size;
const char *name = secstrings + sechdrs[i].sh_name +
strlen(".rela");
/* We want to process only relocation sections and not .init */
if (section_ref_ok(name) || (sechdrs[i].sh_type != SHT_RELA))
continue;
Elf_Rela *rela;
Elf_Rela *start = (void *)hdr + sechdrs[i].sh_offset;
Elf_Rela *stop = (void*)start + sechdrs[i].sh_size;

for (rela = start; rela < stop; rela++) {
Elf_Rela r;
Expand Down

0 comments on commit 43bcfaf

Please sign in to comment.