summaryrefslogtreecommitdiffstats
path: root/tests/vdsosyms.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Mark an unused argument as suchPino Toscano2015-06-271-1/+1
| | | | Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
* tests: Make deleted and vdsosyms testcases work with "restricted ptrace".Mark Wielaard2015-01-161-2/+3
| | | | | | | | | | | Some systems might have "restricted ptrace" that doesn't allow process inspection of arbitrary processes. Change the deleted testcase to explicitly allow any other process to inspect it using the PR_SET_PTRACER prctl set to PR_SET_PTRACER_ANY. Change the vdsosyms testcase to inspect the process itself which should always be allowed. Reported-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Wielaard <mjw@redhat.com>
* tests: vdsosyms should not fail for architectures that don't have a vdso.Mark Wielaard2014-12-191-7/+8
| | | | | | | Not finding a vdso is not fatal. But there should be no errors trying. And if the vdso is found, then getting the symbol table shouldn't fail. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* tests: vdsosyms call dwfl_linux_proc_attach.Mark Wielaard2014-12-031-0/+7
| | | | | | Older kernels won't let us get at the vdso otherwise. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* libdwfl: find_dynsym don't assume dynamic linker has adjusted DYNAMIC entries.Mark Wielaard2014-11-131-0/+101
commit 037505 "Fix resolving ELF symbols for live PIDs with deleted files" changed find_dynsym to assume the PT_DYNAMIC entries had been adjusted by the dynamic linker. That is often a correct assumption when the ELF image comes from remote memory. But we cannot rely on that. In the case of the vdso image the DYNAMIC segment has not been adjusted for example. There is no good way to determine whether the DYNAMIC segment has or hasn't been adjusted already to the load address by the dynamic linker. So we just try twice. Once without and if the fails again with assuming adjustments being applied. Includes a new vdsosyms testcase that fails on i686 before and succeeds after the fix. Signed-off-by: Mark Wielaard <mjw@redhat.com>