linux_vdso.lds.s 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Linker script for 32-bit vDSO.
  3. * Copied from Linux kernel arch/x86/vdso/vdso-layout.lds.S
  4. * and arch/x86/vdso/vdso32/vdso32.lds.S
  5. *
  6. * $FreeBSD$
  7. */
  8. SECTIONS
  9. {
  10. . = . + SIZEOF_HEADERS;
  11. .hash : { *(.hash) } :text
  12. .gnu.hash : { *(.gnu.hash) }
  13. .dynsym : { *(.dynsym) }
  14. .dynstr : { *(.dynstr) }
  15. .gnu.version : { *(.gnu.version) }
  16. .gnu.version_d : { *(.gnu.version_d) }
  17. .gnu.version_r : { *(.gnu.version_r) }
  18. .note : { *(.note.*) } :text :note
  19. .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
  20. .eh_frame : { KEEP (*(.eh_frame)) } :text
  21. .dynamic : { *(.dynamic) } :text :dynamic
  22. .rodata : { *(.rodata*) } :text
  23. .data : {
  24. *(.data*)
  25. *(.sdata*)
  26. *(.got.plt) *(.got)
  27. *(.gnu.linkonce.d.*)
  28. *(.bss*)
  29. *(.dynbss*)
  30. *(.gnu.linkonce.b.*)
  31. }
  32. .altinstructions : { *(.altinstructions) }
  33. .altinstr_replacement : { *(.altinstr_replacement) }
  34. . = ALIGN(0x100);
  35. .text : { *(.text*) } :text =0x90909090
  36. }
  37. PHDRS
  38. {
  39. text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R|PF_X */
  40. dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
  41. note PT_NOTE FLAGS(4); /* PF_R */
  42. eh_frame_hdr PT_GNU_EH_FRAME;
  43. }
  44. ENTRY(linux_vsyscall);
  45. VERSION
  46. {
  47. LINUX_2.5 {
  48. global:
  49. linux_vsyscall;
  50. linux_sigcode;
  51. linux_rt_sigcode;
  52. local: *;
  53. };
  54. }