linux/arch/mips/vdso
Nathan Chancellor 971fe5095f MIPS: VDSO: Conditionally export __vdso_gettimeofday()
ld.lld 16.0.0 and newer defaults to '--no-undefined-version', which
causes the following error when CONFIG_MIPS_CLOCK_VSYSCALL is not set:

  ld.lld: error: version script assignment of 'LINUX_2.6' to symbol '__vdso_gettimeofday' failed: symbol not defined

Only export __vdso_gettimeofday() when it will be present in the final
object file, which clears up the error.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308170532.zxFFv25c-lkp@intel.com/
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2023-08-23 09:06:38 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config-n32-o32-env.c mips: compat: vdso: Use legacy syscalls as fallback 2019-09-03 15:35:23 +01:00
elf.S mips: Add support for generic vDSO 2019-07-25 21:45:05 -07:00
genvdso.c mm: forbid splitting special mappings 2020-12-15 12:13:41 -08:00
genvdso.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
Kconfig MIPS: remove CONFIG_MIPS_LD_CAN_LINK_VDSO 2023-01-27 17:14:48 +01:00
Makefile vdso: Improve cmd_vdso_check to check all dynamic relocations 2023-03-21 21:15:34 +01:00
sigreturn.S mips: Add support for generic vDSO 2019-07-25 21:45:05 -07:00
vdso.lds.S MIPS: VDSO: Conditionally export __vdso_gettimeofday() 2023-08-23 09:06:38 +02:00
vgettimeofday.c mips: Fix gettimeofday() in the vdso library 2019-12-02 10:50:37 -08:00