projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4255f0d
)
parisc: correct use of SHF_ALLOC
author
Julia Lawall
<julia@diku.dk>
Tue, 4 Aug 2009 20:27:07 +0000
(22:27 +0200)
committer
Kyle McMartin
<kyle@ihatethathostname.lab.bos.redhat.com>
Mon, 28 Sep 2009 03:29:23 +0000
(23:29 -0400)
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>
arch/parisc/kernel/module.c
patch
|
blob
|
history
diff --git
a/arch/parisc/kernel/module.c
b/arch/parisc/kernel/module.c
index 61ee0eec4e699b93f3555770c18bc2b221c8f0de..212074653df7fc5a109da9222137a13226cc7bff 100644
(file)
--- 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