Re: [PATCH] selftests/x86: Simplify the code of getting vdso base address in sgx

2021-01-20 Thread Jarkko Sakkinen
On Mon, Jan 18, 2021 at 09:33:21PM +0800, Tianjia Zhang wrote: > The base address of vDSO can be obtained through the library function > `getauxval()`, so use `getauxval(AT_SYSINFO_EHDR)` instead of a custom > implementation to simplify the code. > > Reported-by: Jia Zhang > Signed-off-by: Tianji

[PATCH] selftests/x86: Simplify the code of getting vdso base address in sgx

2021-01-18 Thread Tianjia Zhang
The base address of vDSO can be obtained through the library function `getauxval()`, so use `getauxval(AT_SYSINFO_EHDR)` instead of a custom implementation to simplify the code. Reported-by: Jia Zhang Signed-off-by: Tianjia Zhang --- tools/testing/selftests/sgx/main.c | 24 -