elf_ia32_fbsd_efi.lds 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", "elf32-i386-freebsd")
  2. OUTPUT_ARCH(i386)
  3. ENTRY(_start)
  4. SECTIONS
  5. {
  6. . = 0;
  7. ImageBase = .;
  8. .hash : { *(.hash) } /* this MUST come first! */
  9. . = ALIGN(4096);
  10. .text :
  11. {
  12. _text = .;
  13. *(.text)
  14. *(.text.*)
  15. *(.gnu.linkonce.t.*)
  16. . = ALIGN(16);
  17. }
  18. _etext = .;
  19. _text_size = . - _text;
  20. . = ALIGN(4096);
  21. .sdata :
  22. {
  23. _data = .;
  24. *(.got.plt)
  25. *(.got)
  26. *(.srodata)
  27. *(.sdata)
  28. *(.sbss)
  29. *(.scommon)
  30. }
  31. . = ALIGN(4096);
  32. .data :
  33. {
  34. *(.rodata*)
  35. *(.data)
  36. *(.data1)
  37. *(.data.*)
  38. *(.sdata)
  39. *(.got.plt)
  40. *(.got)
  41. /* the EFI loader doesn't seem to like a .bss section, so we stick
  42. it all into .data: */
  43. *(.sbss)
  44. *(.scommon)
  45. *(.dynbss)
  46. *(.bss)
  47. *(COMMON)
  48. }
  49. .note.gnu.build-id : { *(.note.gnu.build-id) }
  50. . = ALIGN(4096);
  51. .dynamic : { *(.dynamic) }
  52. . = ALIGN(4096);
  53. .rel :
  54. {
  55. *(.rel.data)
  56. *(.rel.data.*)
  57. *(.rel.got)
  58. *(.rel.stab)
  59. *(.data.rel.ro.local)
  60. *(.data.rel.local)
  61. *(.data.rel.ro)
  62. *(.data.rel*)
  63. }
  64. _edata = .;
  65. _data_size = . - _etext;
  66. . = ALIGN(4096);
  67. .reloc : /* This is the PECOFF .reloc section! */
  68. {
  69. *(.reloc)
  70. }
  71. . = ALIGN(4096);
  72. .dynsym : { *(.dynsym) }
  73. . = ALIGN(4096);
  74. .dynstr : { *(.dynstr) }
  75. . = ALIGN(4096);
  76. /DISCARD/ :
  77. {
  78. *(.rel.reloc)
  79. *(.eh_frame)
  80. *(.note.GNU-stack)
  81. }
  82. .comment 0 : { *(.comment) }
  83. }