correct processing prelink libraries
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 15 Oct 2012 08:08:37 +0000 (12:08 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 15 Oct 2012 08:08:37 +0000 (12:08 +0400)
driver/us_proc_inst.c

index 46289d2..b1f9ca2 100644 (file)
@@ -644,8 +644,7 @@ static int install_mapped_ips (struct task_struct *task, inst_us_proc_t* task_in
                                                         * thumb here: if addr is greater than library base
                                                         * address than there is prelinking.
                                                         */
-                                                       if (addr < vma->vm_start)
-                                                               addr += vma->vm_start;
+                                                       addr += vma->vm_start;
                                                }
                                                if (page_present (mm, addr)) {
                                                        DPRINTF ("pid %d, %s sym is loaded at %lx/%lx.",