diff options
author | Julia Lawall <julia@diku.dk> | 2009-08-04 20:27:07 (GMT) |
---|---|---|
committer | Kyle McMartin <kyle@ihatethathostname.lab.bos.redhat.com> | 2009-09-28 03:29:23 (GMT) |
commit | fe579c69c6d437009460feeb4d748c2f2020a5f2 (patch) | |
tree | d4aebfacae3868b9a492d808b66ffc0d54f53a9c /arch/parisc | |
parent | 4255f0d2a132fb38dbe5b5ad74e27ba472507415 (diff) | |
download | linux-fsl-qoriq-fe579c69c6d437009460feeb4d748c2f2020a5f2.tar.xz |
parisc: correct use of SHF_ALLOC
SHF_ALLOC is suitable for testing against the sh_flags field, not the
sh_type field.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/module.c b/arch/parisc/kernel/module.c index 61ee0ee..2120746 100644 --- a/arch/parisc/kernel/module.c +++ b/arch/parisc/kernel/module.c @@ -893,7 +893,7 @@ int module_finalize(const Elf_Ehdr *hdr, * ourselves */ for (i = 1; i < hdr->e_shnum; i++) { if(sechdrs[i].sh_type == SHT_SYMTAB - && (sechdrs[i].sh_type & SHF_ALLOC)) { + && (sechdrs[i].sh_flags & SHF_ALLOC)) { int strindex = sechdrs[i].sh_link; /* FIXME: AWFUL HACK * The cast is to drop the const from |