diff options
author | Julia Lawall <julia@diku.dk> | 2009-08-04 22:27:07 +0200 |
---|---|---|
committer | Kyle McMartin <kyle@phobos.i.jkkm.org> | 2009-08-04 20:39:35 -0400 |
commit | 157eac058fb0b6c6b9d973428221666fa9be87c9 (patch) | |
tree | 0179b9cbce01a430eb2b0641349183cf0465e491 /arch/parisc | |
parent | 88d1e1f0c7c0c009cd4f57a4d0e16b3f8b1af401 (diff) |
parisc: arch/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 ef5caf2e6ed0..c90481751f85 100644 --- a/arch/parisc/kernel/module.c +++ b/arch/parisc/kernel/module.c @@ -853,7 +853,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 |