elf_x86_64_fbsd_efi.lds 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Same as elf_x86_64_efi.lds, except for OUTPUT_FORMAT below - KEEP IN SYNC */
  2. OUTPUT_FORMAT("elf64-x86-64-freebsd", "elf64-x86-64-freebsd", "elf64-x86-64-freebsd")
  3. OUTPUT_ARCH(i386:x86-64)
  4. ENTRY(_start)
  5. SECTIONS
  6. {
  7. . = 0;
  8. ImageBase = .;
  9. /* .hash and/or .gnu.hash MUST come first! */
  10. .hash : { *(.hash) }
  11. .gnu.hash : { *(.gnu.hash) }
  12. . = ALIGN(4096);
  13. .eh_frame :
  14. {
  15. *(.eh_frame)
  16. }
  17. . = ALIGN(4096);
  18. .text :
  19. {
  20. _text = .;
  21. *(.text)
  22. . = ALIGN(16);
  23. }
  24. _etext = .;
  25. _text_size = . - _text;
  26. .reloc :
  27. {
  28. *(.reloc)
  29. }
  30. . = ALIGN(4096);
  31. .data :
  32. {
  33. _data = .;
  34. *(.rodata*)
  35. *(.got.plt)
  36. *(.got)
  37. *(.data*)
  38. *(.sdata)
  39. /* the EFI loader doesn't seem to like a .bss section, so we stick
  40. it all into .data: */
  41. *(.sbss)
  42. *(.scommon)
  43. *(.dynbss)
  44. *(.bss)
  45. *(COMMON)
  46. *(.rel.local)
  47. }
  48. .note.gnu.build-id : { *(.note.gnu.build-id) }
  49. . = ALIGN(4096);
  50. .dynamic : { *(.dynamic) }
  51. . = ALIGN(4096);
  52. .rela :
  53. {
  54. *(.rela.data*)
  55. *(.rela.got)
  56. *(.rela.stab)
  57. }
  58. _edata = .;
  59. _data_size = . - _etext;
  60. . = ALIGN(4096);
  61. .dynsym : { *(.dynsym) }
  62. . = ALIGN(4096);
  63. .dynstr : { *(.dynstr) }
  64. . = ALIGN(4096);
  65. .ignored.reloc :
  66. {
  67. *(.rela.reloc)
  68. }
  69. }