x86/vdso: Fix building on big endian host
[deliverable/linux.git] / arch / x86 / entry / vdso / vdso2c.h
index 4f741192846d94cc15c7f1d89b362c453ffae15a..3dab75f2a6732f6ab7e5050152b364b289fd2ced 100644 (file)
@@ -22,7 +22,7 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
 
        ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff));
 
-       if (hdr->e_type != ET_DYN)
+       if (GET_LE(&hdr->e_type) != ET_DYN)
                fail("input is not a shared object\n");
 
        /* Walk the segment table. */
This page took 0.023934 seconds and 5 git commands to generate.