Commit fe579c69 authored by Julia Lawall's avatar Julia Lawall Committed by Kyle McMartin

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: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 4255f0d2
...@@ -893,7 +893,7 @@ int module_finalize(const Elf_Ehdr *hdr, ...@@ -893,7 +893,7 @@ int module_finalize(const Elf_Ehdr *hdr,
* ourselves */ * ourselves */
for (i = 1; i < hdr->e_shnum; i++) { for (i = 1; i < hdr->e_shnum; i++) {
if(sechdrs[i].sh_type == SHT_SYMTAB 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; int strindex = sechdrs[i].sh_link;
/* FIXME: AWFUL HACK /* FIXME: AWFUL HACK
* The cast is to drop the const from * The cast is to drop the const from
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment