vdso.lds.S 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #include <asm/page.h>
  3. OUTPUT_ARCH(csky)
  4. SECTIONS
  5. {
  6. PROVIDE(_vdso_data = . + PAGE_SIZE);
  7. . = SIZEOF_HEADERS;
  8. .hash : { *(.hash) } :text
  9. .gnu.hash : { *(.gnu.hash) }
  10. .dynsym : { *(.dynsym) }
  11. .dynstr : { *(.dynstr) }
  12. .gnu.version : { *(.gnu.version) }
  13. .gnu.version_d : { *(.gnu.version_d) }
  14. .gnu.version_r : { *(.gnu.version_r) }
  15. .note : { *(.note.*) } :text :note
  16. .dynamic : { *(.dynamic) } :text :dynamic
  17. .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
  18. .eh_frame : { KEEP (*(.eh_frame)) } :text
  19. .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  20. . = 0x800;
  21. .text : { *(.text .text.*) } :text
  22. .data : {
  23. *(.got.plt) *(.got)
  24. *(.data .data.* .gnu.linkonce.d.*)
  25. *(.dynbss)
  26. *(.bss .bss.* .gnu.linkonce.b.*)
  27. }
  28. }
  29. PHDRS
  30. {
  31. text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R|PF_X */
  32. dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
  33. note PT_NOTE FLAGS(4); /* PF_R */
  34. eh_frame_hdr PT_GNU_EH_FRAME;
  35. }
  36. VERSION
  37. {
  38. LINUX_5.10 {
  39. global:
  40. __vdso_rt_sigreturn;
  41. __vdso_clock_gettime;
  42. __vdso_clock_gettime64;
  43. __vdso_gettimeofday;
  44. __vdso_clock_getres;
  45. local: *;
  46. };
  47. }