]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Use seek+read instead of pread to read from /dev/$$/mem files.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 9 Oct 2015 10:35:27 +0000 (12:35 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 9 Oct 2015 13:42:34 +0000 (15:42 +0200)
commitf17d101232d6d40e192e61441aa02a12ee8cf9b8
treee8eee39052fc32f43be1e94d9800d79f04c42d08
parent57fa86e08bdd901c0b42cc97947e620334f6ef68
Use seek+read instead of pread to read from /dev/$$/mem files.

pread[64] always returns EINVAL when negative offsets are used.
read+seek allows us to read in-memory vdso objects mapped high in the
address space.

Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
libdwfl/ChangeLog
libdwfl/linux-proc-maps.c