elf_ia64_efi.lds 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. OUTPUT_FORMAT("elf64-ia64-little")
  2. OUTPUT_ARCH(ia64)
  3. ENTRY(_start_plabel)
  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. __gp = ALIGN (8) + 0x200000;
  22. .sdata :
  23. {
  24. _data = .;
  25. *(.got.plt)
  26. *(.got)
  27. *(.srodata)
  28. *(.sdata)
  29. *(.sbss)
  30. *(.scommon)
  31. }
  32. . = ALIGN(4096);
  33. .data :
  34. {
  35. *(.rodata*)
  36. *(.ctors)
  37. *(.data*)
  38. *(.gnu.linkonce.d*)
  39. *(.plabel) /* data whose relocs we want to ignore */
  40. /* the EFI loader doesn't seem to like a .bss section, so we stick
  41. it all into .data: */
  42. *(.dynbss)
  43. *(.bss)
  44. *(COMMON)
  45. }
  46. .note.gnu.build-id : { *(.note.gnu.build-id) }
  47. . = ALIGN(4096);
  48. .dynamic : { *(.dynamic) }
  49. . = ALIGN(4096);
  50. .rela :
  51. {
  52. *(.rela.text)
  53. *(.rela.data*)
  54. *(.rela.sdata)
  55. *(.rela.got)
  56. *(.rela.gnu.linkonce.d*)
  57. *(.rela.stab)
  58. *(.rela.ctors)
  59. }
  60. _edata = .;
  61. _data_size = . - _etext;
  62. . = ALIGN(4096);
  63. .reloc : /* This is the PECOFF .reloc section! */
  64. {
  65. *(.reloc)
  66. }
  67. . = ALIGN(4096);
  68. .dynsym : { *(.dynsym) }
  69. . = ALIGN(4096);
  70. .dynstr : { *(.dynstr) }
  71. /DISCARD/ :
  72. {
  73. *(.rela.plabel)
  74. *(.rela.reloc)
  75. *(.IA_64.unwind*)
  76. *(.IA64.unwind*)
  77. }
  78. }