riscv: Add -fPIC option to CFLAGS_vgettimeofday.o

The time related vDSO functions use a variable, vdso_data, to access the
vDSO data page to get the system time information. Because the vdso_data
for CFLAGS_vgettimeofday.o is an external variable defined in vdso.o,
the CFLAGS_vgettimeofday.o should be compiled with -fPIC to ensure
that vdso_data is addressable.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
Vincent Chen 2020-06-23 09:13:22 +08:00 • committed by Palmer Dabbelt
commit a0fc3b3289
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889