Skip to content

Commit fe579c6

Browse files
Julia LawallKyle McMartin
authored andcommitted
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>
1 parent 4255f0d commit fe579c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/parisc/kernel/module.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ int module_finalize(const Elf_Ehdr *hdr,
893893
* ourselves */
894894
for (i = 1; i < hdr->e_shnum; i++) {
895895
if(sechdrs[i].sh_type == SHT_SYMTAB
896-
&& (sechdrs[i].sh_type & SHF_ALLOC)) {
896+
&& (sechdrs[i].sh_flags & SHF_ALLOC)) {
897897
int strindex = sechdrs[i].sh_link;
898898
/* FIXME: AWFUL HACK
899899
* The cast is to drop the const from

0 commit comments

Comments
 (0)