vdso.lds.S 767 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Linker script for 64-bit vDSO.
  4. * We #include the file to define the layout details.
  5. * Here we only choose the prelinked virtual address.
  6. *
  7. * This file defines the version script giving the user-exported symbols in
  8. * the DSO. We can define local symbols here called VDSO* to make their
  9. * values visible using the asm-x86/vdso.h macros from the kernel proper.
  10. */
  11. #define VDSO_PRELINK 0xffffffffff700000
  12. #include "vdso-layout.lds.S"
  13. /*
  14. * This controls what userland symbols we export from the vDSO.
  15. */
  16. VERSION {
  17. LINUX_2.6 {
  18. global:
  19. clock_gettime;
  20. __vdso_clock_gettime;
  21. gettimeofday;
  22. __vdso_gettimeofday;
  23. getcpu;
  24. __vdso_getcpu;
  25. time;
  26. __vdso_time;
  27. local: *;
  28. };
  29. }
  30. VDSO64_PRELINK = VDSO_PRELINK;