summaryrefslogtreecommitdiff
path: root/util/mkelfImage/linux-ia64/mkelf-linux-ia64.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/mkelfImage/linux-ia64/mkelf-linux-ia64.c')
-rw-r--r--util/mkelfImage/linux-ia64/mkelf-linux-ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mkelfImage/linux-ia64/mkelf-linux-ia64.c b/util/mkelfImage/linux-ia64/mkelf-linux-ia64.c
index 82f57be79f..cfd79869ae 100644
--- a/util/mkelfImage/linux-ia64/mkelf-linux-ia64.c
+++ b/util/mkelfImage/linux-ia64/mkelf-linux-ia64.c
@@ -81,7 +81,7 @@ static void parse_kernel(struct kernel_info *info,
phdr = (Elf64_Phdr *)(kernel_buf + le64_to_cpu(ehdr->e_phoff));
phdrs = 0;
for(i = 0; i < le16_to_cpu(ehdr->e_phnum); i++) {
- if (le16_to_cpu(phdr[i].p_type) != PT_LOAD)
+ if (le32_to_cpu(phdr[i].p_type) != PT_LOAD)
continue;
phdrs++;
}