hppalinux.xu 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /* Script for -Ur */
  2. /* Copyright (C) 2014-2020 Free Software Foundation, Inc.
  3. Copying and distribution of this script, with or without modification,
  4. are permitted in any medium without royalty provided the copyright
  5. notice and this notice are preserved. */
  6. OUTPUT_FORMAT("elf32-hppa-linux", "elf32-hppa-linux",
  7. "elf32-hppa-linux")
  8. OUTPUT_ARCH(hppa:hppa1.1)
  9. /* For some reason, the Solaris linker makes bad executables
  10. if gld -r is used and the intermediate file has sections starting
  11. at non-zero addresses. Could be a Solaris ld bug, could be a GNU ld
  12. bug. But for now assigning the zero vmas works. */
  13. SECTIONS
  14. {
  15. .interp 0 : { *(.interp) }
  16. .note.gnu.build-id 0: { *(.note.gnu.build-id) }
  17. .hash 0 : { *(.hash) }
  18. .gnu.hash 0 : { *(.gnu.hash) }
  19. .dynsym 0 : { *(.dynsym) }
  20. .dynstr 0 : { *(.dynstr) }
  21. .gnu.version 0 : { *(.gnu.version) }
  22. .gnu.version_d 0: { *(.gnu.version_d) }
  23. .gnu.version_r 0: { *(.gnu.version_r) }
  24. .rela.init 0 : { *(.rela.init) }
  25. .rela.text 0 : { *(.rela.text) }
  26. .rela.fini 0 : { *(.rela.fini) }
  27. .rela.rodata 0 : { *(.rela.rodata) }
  28. .rela.data.rel.ro 0 : { *(.rela.data.rel.ro) }
  29. .rela.data 0 : { *(.rela.data) }
  30. .rela.tdata 0 : { *(.rela.tdata) }
  31. .rela.tbss 0 : { *(.rela.tbss) }
  32. .rela.ctors 0 : { *(.rela.ctors) }
  33. .rela.dtors 0 : { *(.rela.dtors) }
  34. .rela.got 0 : { *(.rela.got) }
  35. .rela.sdata 0 : { *(.rela.sdata) }
  36. .rela.sbss 0 : { *(.rela.sbss) }
  37. .rela.sdata2 0 : { *(.rela.sdata2) }
  38. .rela.sbss2 0 : { *(.rela.sbss2) }
  39. .rela.bss 0 : { *(.rela.bss) }
  40. .rela.iplt 0 :
  41. {
  42. *(.rela.iplt)
  43. }
  44. .rela.plt 0 :
  45. {
  46. *(.rela.plt)
  47. }
  48. .init 0 :
  49. {
  50. KEEP (*(SORT_NONE(.init)))
  51. } =0x08000240
  52. .text 0 :
  53. {
  54. *(.text .stub)
  55. /* .gnu.warning sections are handled specially by elf.em. */
  56. *(.gnu.warning)
  57. } =0x08000240
  58. .fini 0 :
  59. {
  60. KEEP (*(SORT_NONE(.fini)))
  61. } =0x08000240
  62. .rodata 0 : { *(.rodata) }
  63. .rodata1 0 : { *(.rodata1) }
  64. .sdata2 0 :
  65. {
  66. *(.sdata2)
  67. }
  68. .sbss2 0 : { *(.sbss2) }
  69. .PARISC.unwind 0 : { *(.PARISC.unwind) }
  70. .eh_frame_hdr 0 : { *(.eh_frame_hdr) }
  71. .eh_frame 0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  72. .gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table) }
  73. .gnu_extab 0 : ONLY_IF_RO { *(.gnu_extab*) }
  74. /* These sections are generated by the Sun/Oracle C++ compiler. */
  75. .exception_ranges 0 : ONLY_IF_RO { *(.exception_ranges) }
  76. /* Exception handling */
  77. .eh_frame 0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
  78. .gnu_extab 0 : ONLY_IF_RW { *(.gnu_extab) }
  79. .gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table) }
  80. .exception_ranges 0 : ONLY_IF_RW { *(.exception_ranges) }
  81. /* Thread Local Storage sections */
  82. .tdata 0 :
  83. {
  84. *(.tdata)
  85. }
  86. .tbss 0 : { *(.tbss) }
  87. .jcr 0 : { KEEP (*(.jcr)) }
  88. .dynamic 0 : { *(.dynamic) }
  89. .data 0 :
  90. {
  91. *(.data)
  92. SORT(CONSTRUCTORS)
  93. }
  94. .data1 0 : { *(.data1) }
  95. .plt 0 : { *(.plt) }
  96. .iplt 0 : { *(.iplt) }
  97. .got 0 : { *(.got) }
  98. /* We want the small data sections together, so single-instruction offsets
  99. can access them all, and initialized data all before uninitialized, so
  100. we can shorten the on-disk segment size. */
  101. .sdata 0 :
  102. {
  103. *(.sdata)
  104. }
  105. .sbss 0 :
  106. {
  107. *(.sbss)
  108. }
  109. .bss 0 :
  110. {
  111. *(.bss)
  112. }
  113. /* Stabs debugging sections. */
  114. .stab 0 : { *(.stab) }
  115. .stabstr 0 : { *(.stabstr) }
  116. .stab.excl 0 : { *(.stab.excl) }
  117. .stab.exclstr 0 : { *(.stab.exclstr) }
  118. .stab.index 0 : { *(.stab.index) }
  119. .stab.indexstr 0 : { *(.stab.indexstr) }
  120. .comment 0 : { *(.comment) }
  121. .gnu.build.attributes : { *(.gnu.build.attributes) }
  122. /* DWARF debug sections.
  123. Symbols in the DWARF debugging sections are relative to the beginning
  124. of the section so we begin them at 0. */
  125. /* DWARF 1 */
  126. .debug 0 : { *(.debug) }
  127. .line 0 : { *(.line) }
  128. /* GNU DWARF 1 extensions */
  129. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  130. .debug_sfnames 0 : { *(.debug_sfnames) }
  131. /* DWARF 1.1 and DWARF 2 */
  132. .debug_aranges 0 : { *(.debug_aranges) }
  133. .debug_pubnames 0 : { *(.debug_pubnames) }
  134. /* DWARF 2 */
  135. .debug_info 0 : { *(.debug_info) }
  136. .debug_abbrev 0 : { *(.debug_abbrev) }
  137. .debug_line 0 : { *(.debug_line) }
  138. .debug_frame 0 : { *(.debug_frame) }
  139. .debug_str 0 : { *(.debug_str) }
  140. .debug_loc 0 : { *(.debug_loc) }
  141. .debug_macinfo 0 : { *(.debug_macinfo) }
  142. /* SGI/MIPS DWARF 2 extensions */
  143. .debug_weaknames 0 : { *(.debug_weaknames) }
  144. .debug_funcnames 0 : { *(.debug_funcnames) }
  145. .debug_typenames 0 : { *(.debug_typenames) }
  146. .debug_varnames 0 : { *(.debug_varnames) }
  147. /* DWARF 3 */
  148. .debug_pubtypes 0 : { *(.debug_pubtypes) }
  149. .debug_ranges 0 : { *(.debug_ranges) }
  150. /* DWARF Extension. */
  151. .debug_macro 0 : { *(.debug_macro) }
  152. .debug_addr 0 : { *(.debug_addr) }
  153. .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
  154. }