i386-cygwin-img-ld.sc 850 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Linker script to create grub .img files on Cygwin. */
  2. SECTIONS
  3. {
  4. .text :
  5. {
  6. start = . ;
  7. _start = . ;
  8. __start = . ;
  9. *(.text)
  10. etext = . ;
  11. }
  12. .data :
  13. {
  14. __data_start__ = . ;
  15. *(.data)
  16. /* Do not discard this section. */
  17. . = . ;
  18. __data_end__ = . ;
  19. __rdata_start__ = . ;
  20. *(.rdata)
  21. __rdata_end__ = . ;
  22. *(.pdata)
  23. edata = . ;
  24. _edata = . ;
  25. __edata = . ;
  26. }
  27. .bss :
  28. {
  29. __bss_start__ = . ;
  30. *(.bss)
  31. __common_start__ = . ;
  32. *(COMMON)
  33. __bss_end__ = . ;
  34. }
  35. .edata :
  36. {
  37. *(.edata)
  38. /* Do not discard this section. */
  39. . = . ;
  40. end = . ;
  41. _end = . ;
  42. __end = . ;
  43. }
  44. .stab :
  45. {
  46. *(.stab)
  47. }
  48. .stabstr :
  49. {
  50. *(.stabstr)
  51. }
  52. }
  53. ASSERT("__rdata_end__"=="edata", ".pdata not empty")
  54. ASSERT("__bss_end__" =="end" , ".edata not empty")