[FIX] Flag VM_EXECUTABLE is not used in linux kernel since 3.7. I replace it by condi...
authorAnastasia Lyupa <a.lyupa@samsung.com>
Fri, 22 Mar 2013 10:50:39 +0000 (14:50 +0400)
committerAnastasia Lyupa <a.lyupa@samsung.com>
Fri, 22 Mar 2013 10:50:39 +0000 (14:50 +0400)
driver/us_proc_inst.c

index 6ca87b9..3f878bf 100644 (file)
@@ -1164,7 +1164,7 @@ static void send_plt(struct us_ip *ip)
        if (vma && check_vma(vma)) {
                char *name = NULL;
                unsigned long real_addr;
-               unsigned long real_got = vma->vm_flags & VM_EXECUTABLE ?
+               unsigned long real_got = current->mm->exe_file == vma->vm_file ?
                                ip->got_addr :
                                ip->got_addr + vma->vm_start;