alphavms.sc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Linker script for Alpha VMS systems.
  2. # Tristan Gingold <gingold@adacore.com>.
  3. #
  4. # Copyright (C) 2014-2022 Free Software Foundation, Inc.
  5. #
  6. # Copying and distribution of this file, with or without modification,
  7. # are permitted in any medium without royalty provided the copyright
  8. # notice and this notice are preserved.
  9. PAGESIZE=0x10000
  10. cat <<EOF
  11. /* Copyright (C) 2014-2022 Free Software Foundation, Inc.
  12. Copying and distribution of this script, with or without modification,
  13. are permitted in any medium without royalty provided the copyright
  14. notice and this notice are preserved. */
  15. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  16. ${LIB_SEARCH_DIRS}
  17. SECTIONS
  18. {
  19. ${RELOCATING+. = ${PAGESIZE};}
  20. /* RW initialized data. */
  21. \$DATA\$ ALIGN (${PAGESIZE}) : {
  22. *(\$DATA\$)
  23. }
  24. /* RW data unmodified (zero-initialized). */
  25. \$BSS\$ ALIGN (${PAGESIZE}) : {
  26. *(\$BSS\$)
  27. }
  28. /* RO, executable code. */
  29. \$CODE\$ ALIGN (${PAGESIZE}) : {
  30. *(\$CODE\$${RELOCATING+ *\$CODE*})
  31. }
  32. /* RO initialized data. */
  33. \$LITERAL\$ ALIGN (${PAGESIZE}) : {
  34. ${RELOCATING+*(\$LINK\$)}
  35. *(\$LITERAL\$)
  36. ${RELOCATING+*(\$READONLY\$)
  37. *(\$READONLY_ADDR\$)
  38. *(eh_frame)
  39. *(jcr)
  40. *(ctors)
  41. *(dtors)
  42. *(gcc_except_table)
  43. /* LIB$INITIALIZE stuff. */
  44. *(LIB\$INITIALIZDZ) /* Start marker. */
  45. *(LIB\$INITIALIZD_) /* Hi priority. */
  46. *(LIB\$INITIALIZE) /* User. */
  47. *(LIB\$INITIALIZE$) /* End marker. */}
  48. }
  49. \$DWARF\$ ALIGN (${PAGESIZE}) : {
  50. ${RELOCATING+\$dwarf2.debug_pubtypes = .;
  51. *(debug_pubtypes)
  52. \$dwarf2.debug_ranges = .;
  53. *(debug_ranges)
  54. \$dwarf2.debug_abbrev = .;
  55. *(debug_abbrev)
  56. \$dwarf2.debug_aranges = .;
  57. *(debug_aranges)
  58. \$dwarf2.debug_frame = .;
  59. *(debug_frame)
  60. \$dwarf2.debug_info = .;
  61. *(debug_info)
  62. \$dwarf2.debug_line = .;
  63. *(debug_line)
  64. \$dwarf2.debug_loc = .;
  65. *(debug_loc)
  66. \$dwarf2.debug_macinfo = .;
  67. *(debug_macinfo)
  68. \$dwarf2.debug_macro = .;
  69. *(debug_macro)
  70. \$dwarf2.debug_pubnames = .;
  71. *(debug_pubnames)
  72. \$dwarf2.debug_str = .;
  73. *(debug_str)
  74. \$dwarf2.debug_zzzzzz = .;}
  75. }
  76. \$DST\$ 0 : {
  77. *(\$DST\$)
  78. }
  79. }
  80. EOF