about summary refs log tree commit diff
path: root/sysdeps/x86/dl-prop.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86/dl-prop.h')
-rw-r--r--sysdeps/x86/dl-prop.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/x86/dl-prop.h b/sysdeps/x86/dl-prop.h
index a99eec11b9..fa5bd988ca 100644
--- a/sysdeps/x86/dl-prop.h
+++ b/sysdeps/x86/dl-prop.h
@@ -167,8 +167,7 @@ _dl_process_pt_note (struct link_map *l, const ElfW(Phdr) *ph,
 	  note_malloced = malloc (size);
 	  note = note_malloced;
 	}
-      __lseek (fd, ph->p_offset, SEEK_SET);
-      if (__read_nocancel (fd, (void *) note, size) != size)
+      if (__pread64_nocancel (fd, (void *) note, size, ph->p_offset) != size)
 	{
 	  if (note_malloced)
 	    free (note_malloced);