binutils-testsuite-fixes.patch 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983
  1. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d
  2. --- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d 2021-02-12 10:13:11.116049499 +0000
  3. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d 2021-02-12 10:23:44.298370984 +0000
  4. @@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
  5. hook called: claim_file tmpdir/libtext.a \[@.* not claimed
  6. #...
  7. hook called: all symbols read.
  8. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  9. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  10. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  11. #...
  12. hook called: cleanup.
  13. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d
  14. --- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d 2021-02-12 10:13:11.119049477 +0000
  15. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d 2021-02-12 10:50:40.973828943 +0000
  16. @@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
  17. hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
  18. #...
  19. hook called: all symbols read.
  20. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  21. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  22. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  23. -Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
  24. +Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
  25. #...
  26. hook called: cleanup.
  27. #...
  28. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d
  29. --- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d 2021-02-12 10:13:11.119049477 +0000
  30. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d 2021-02-12 10:29:31.510843797 +0000
  31. @@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
  32. hook called: claim_file tmpdir/text.o \[@0/.* not claimed
  33. #...
  34. hook called: all symbols read.
  35. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  36. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  37. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  38. #...
  39. hook called: cleanup.
  40. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d
  41. --- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d 2021-02-12 10:13:11.116049499 +0000
  42. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d 2021-02-12 10:35:13.348404638 +0000
  43. @@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
  44. hook called: claim_file tmpdir/text.o \[@0/.* not claimed
  45. #...
  46. hook called: all symbols read.
  47. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  48. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  49. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  50. #...
  51. hook called: cleanup.
  52. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d
  53. --- binutils.orig/ld/testsuite/ld-plugin/plugin-18.d 2021-02-12 10:13:11.118049484 +0000
  54. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d 2021-02-12 10:29:47.974726314 +0000
  55. @@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
  56. hook called: claim_file tmpdir/libtext.a \[@.* not claimed
  57. #...
  58. hook called: all symbols read.
  59. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  60. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  61. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  62. #...
  63. hook called: cleanup.
  64. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d
  65. --- binutils.orig/ld/testsuite/ld-plugin/plugin-19.d 2021-02-12 10:13:11.116049499 +0000
  66. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d 2021-02-12 10:30:31.990412245 +0000
  67. @@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
  68. hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
  69. #...
  70. hook called: all symbols read.
  71. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  72. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  73. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  74. -Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
  75. +Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
  76. #...
  77. hook called: cleanup.
  78. #...
  79. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d
  80. --- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d 2021-02-12 10:13:11.118049484 +0000
  81. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d 2021-02-12 10:23:18.489561148 +0000
  82. @@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
  83. hook called: claim_file tmpdir/text.o \[@0/.* not claimed
  84. #...
  85. hook called: all symbols read.
  86. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  87. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  88. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  89. #...
  90. hook called: cleanup.
  91. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d
  92. --- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d 2021-02-12 10:13:11.119049477 +0000
  93. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d 2021-02-12 10:23:34.417443785 +0000
  94. @@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
  95. hook called: claim_file tmpdir/text.o \[@0/.* not claimed
  96. #...
  97. hook called: all symbols read.
  98. -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
  99. +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
  100. Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
  101. #...
  102. hook called: cleanup.
  103. diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
  104. --- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-12 11:44:39.121364751 +0000
  105. +++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-12 11:46:27.505597689 +0000
  106. @@ -1878,24 +1878,6 @@ if { [isnative] && [check_compiler_avail
  107. "plt-main.out" \
  108. "-fPIC" \
  109. ] \
  110. - [list \
  111. - "Run plt-main with libibtplt-lib.so -z ibtplt" \
  112. - "-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
  113. - tmpdir/libplt-lib.so" \
  114. - "-Wa,-mx86-used-note=yes" \
  115. - { plt-main5.c } \
  116. - "plt-main-ibt-lib" \
  117. - "plt-main.out" \
  118. - ] \
  119. - [list \
  120. - "Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
  121. - "-Wl,--no-as-needed,-z,ibtplt,-z,now \
  122. - tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
  123. - "-Wa,-mx86-used-note=yes" \
  124. - { plt-main5.c } \
  125. - "plt-main-ibt-now-lib" \
  126. - "plt-main.out" \
  127. - ] \
  128. ]
  129. if { [check_ifunc_attribute_available] } {
  130. @@ -1922,7 +1904,6 @@ if { [isnative] && [check_compiler_avail
  131. }
  132. }
  133. - undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
  134. undefined_weak "-fPIE" ""
  135. undefined_weak "-fPIE" "-pie"
  136. undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
  137. --- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 11:44:39.076365068 +0000
  138. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 12:01:48.091931654 +0000
  139. @@ -1,5 +1,5 @@
  140. #...
  141. -.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DEF
  142. +.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
  143. .*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
  144. .*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
  145. .*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
  146. --- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 14:14:25.023160021 +0000
  147. +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 14:19:29.106923745 +0000
  148. @@ -1,6 +1,6 @@
  149. #...
  150. -.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
  151. -.*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
  152. -.*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
  153. -.*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
  154. +.*: symbol `.*unc' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
  155. +.*: symbol `.*unc1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
  156. +.*: symbol `.*unc2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
  157. +.*: symbol `.*unc3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
  158. #pass
  159. --- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-19 12:39:14.240555833 +0100
  160. +++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-19 12:50:27.753751551 +0100
  161. @@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
  162. Num: Value Size Type Bind Vis Ndx Name
  163. 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
  164. 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
  165. - 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
  166. - 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
  167. + 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
  168. + 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
  169. 4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
  170. - 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
  171. + 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
  172. 6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
  173. Symbol table '\.symtab' contains 35 entries:
  174. @@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
  175. 7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
  176. 8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
  177. 9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
  178. - 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
  179. - 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
  180. + 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
  181. + 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
  182. 12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
  183. 13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
  184. 14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
  185. 15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
  186. - 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
  187. - 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
  188. + 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
  189. + 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
  190. 18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
  191. 19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
  192. 20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
  193. 21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
  194. 22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
  195. - 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
  196. + 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
  197. 24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
  198. 25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
  199. 26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
  200. - 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
  201. + 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
  202. 28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
  203. 29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
  204. - 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
  205. - 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
  206. + 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
  207. + 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
  208. 32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
  209. - 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
  210. + 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
  211. 34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
  212. --- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-19 12:39:14.235555861 +0100
  213. +++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-19 12:51:04.981541273 +0100
  214. @@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
  215. 2: 0000000000000000 0 SECTION LOCAL DEFAULT 3.*
  216. 3: 0000000000000000 0 SECTION LOCAL DEFAULT 4.*
  217. 4: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
  218. - 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
  219. - 6: 0000000000000000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
  220. + 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT .*
  221. + 6: 0000000000000000 0 IFUNC LOCAL DEFAULT .*
  222. 7: 0000000000000000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
  223. 8: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
  224. 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 \$x
  225. 10: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
  226. - 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
  227. - 12: 0000000000000038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
  228. + 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT .*
  229. + 12: 0000000000000038 0 IFUNC LOCAL DEFAULT .*
  230. 13: 0000000000000038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
  231. 14: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
  232. 15: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 \$x
  233. 16: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
  234. - 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
  235. - 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_def
  236. + 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
  237. + 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN .*
  238. 19: 0000000000000000 0 IFUNC GLOBAL HIDDEN 1 f_base_global_hidden_ifunc
  239. - 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
  240. + 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT .*
  241. 21: 0000000000000000 0 NOTYPE GLOBAL HIDDEN 1 f_base_global_hidden_def
  242. - 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
  243. + 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN .*
  244. 23: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
  245. - 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
  246. + 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
  247. 25: 0000000000000000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
  248. --- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-19 12:39:14.235555861 +0100
  249. +++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-19 12:51:38.076354339 +0100
  250. @@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
  251. Num: Value Size Type Bind Vis Ndx Name
  252. 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
  253. 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
  254. - 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
  255. - 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
  256. + 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
  257. + 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
  258. 4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
  259. - 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
  260. + 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
  261. 6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
  262. Symbol table '\.symtab' contains 35 entries:
  263. @@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
  264. 7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
  265. 8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
  266. 9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
  267. - 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
  268. - 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
  269. + 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
  270. + 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
  271. 12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
  272. 13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
  273. 14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
  274. 15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
  275. - 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
  276. - 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
  277. + 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
  278. + 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
  279. 18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
  280. 19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
  281. 20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
  282. 21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
  283. 22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
  284. - 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
  285. + 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
  286. 24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
  287. 25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
  288. 26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
  289. - 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
  290. + 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
  291. 28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
  292. 29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
  293. - 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
  294. - 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
  295. + 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
  296. + 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
  297. 32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
  298. - 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
  299. + 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
  300. 34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
  301. --- binutils.orig/gold/main.cc 2021-07-19 12:39:14.643553557 +0100
  302. +++ binutils-2.37/gold/main.cc 2021-07-19 12:53:40.043665415 +0100
  303. @@ -290,16 +290,6 @@ main(int argc, char** argv)
  304. elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
  305. elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
  306. -#if defined(HAVE_MALLINFO2)
  307. - struct mallinfo2 m = mallinfo2();
  308. - fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
  309. - program_name, static_cast<long long>(m.arena));
  310. -#elif defined(HAVE_MALLINFO)
  311. - struct mallinfo m = mallinfo();
  312. - fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
  313. - program_name, static_cast<long long>(m.arena));
  314. -#endif
  315. -
  316. File_read::print_stats();
  317. Archive::print_stats();
  318. Lib_group::print_stats();
  319. --- binutils.orig/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-19 14:51:48.859666911 +0100
  320. +++ binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-19 14:59:56.130065901 +0100
  321. @@ -11,7 +11,7 @@
  322. 0x.+ \(PLTRELSZ\) \s+.+ \(bytes\)
  323. 0x.+ \(PLTREL\) \s+RELA
  324. 0x.+ \(JMPREL\) \s+0x.+
  325. - 0x.+ \(BIND_NOW\) \s+
  326. + 0x.+ \(FLAGS\) \s+BIND_NOW
  327. 0x.+ \(FLAGS_1\) \s+ Flags: NOW
  328. 0x.+ \(NULL\) \s+ 0x0
  329. --- binutils.orig/ld/testsuite/ld-plugin/plugin.exp 2021-07-19 14:51:48.905666659 +0100
  330. +++ binutils-2.37/ld/testsuite/ld-plugin/plugin.exp 2021-07-19 15:06:56.159875135 +0100
  331. @@ -119,7 +119,7 @@ if { $can_compile && !$failed_compile }
  332. # I do not know why, but the underscore prefix test is going
  333. # wrong on ppc64le targets. So override it here.
  334. -if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] } {
  335. +if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] || [istarget *-*-*] } {
  336. set _ ""
  337. }
  338. --- binutils.orig/ld/testsuite/ld-elf/compress.exp 2021-07-19 14:51:48.982666235 +0100
  339. +++ binutils-2.37/ld/testsuite/ld-elf/compress.exp 2021-07-19 15:16:14.268931663 +0100
  340. @@ -168,7 +168,7 @@ if { [regexp_diff tmpdir/$test.out $srcd
  341. set test_name "Link with zlib compressed debug output 1"
  342. set test normal
  343. send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
  344. -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
  345. +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
  346. if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
  347. send_log "$got\n"
  348. fail "$test_name"
  349. --- binutils.orig/ld/testsuite/ld-elf/compress.exp 2021-07-20 09:55:20.387674258 +0100
  350. +++ binutils-2.37/ld/testsuite/ld-elf/compress.exp 2021-07-20 09:59:51.118189655 +0100
  351. @@ -167,7 +167,7 @@ if { [regexp_diff tmpdir/$test.out $srcd
  352. set test_name "Link with zlib compressed debug output 1"
  353. set test normal
  354. -send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
  355. +send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
  356. set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
  357. if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
  358. send_log "$got\n"
  359. @@ -176,8 +176,8 @@ if { [lindex $got 0] != 0 || ![string ma
  360. set test_name "Link with zlib compressed debug output 2"
  361. set test zlibnormal
  362. -send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
  363. -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
  364. +send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
  365. +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
  366. if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
  367. send_log "$got\n"
  368. fail "$test_name"
  369. @@ -203,8 +203,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
  370. set test_name "Link with zlib-gnu compressed debug output 1"
  371. set test gnunormal
  372. -send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
  373. -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
  374. +send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
  375. +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
  376. if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
  377. send_log "$got\n"
  378. fail "$test_name"
  379. @@ -230,8 +230,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
  380. set test gabinormal
  381. set test_name "Link with zlib-gabi compressed debug output 1"
  382. -send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
  383. -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
  384. +send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
  385. +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
  386. if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
  387. send_log "$got\n"
  388. fail "$test_name"
  389. --- binutils.orig/ld/testsuite/ld-elf/shared.exp 2021-07-20 09:55:20.398674198 +0100
  390. +++ binutils-2.37/ld/testsuite/ld-elf/shared.exp 2021-07-20 10:04:13.180751421 +0100
  391. @@ -1629,6 +1629,7 @@ if [istarget "sparc*-*-*"] {
  392. if { ([istarget "*-*-linux*"]
  393. || [istarget "*-*-nacl*"]
  394. || [istarget "*-*-gnu*"])
  395. + && ![istarget "aarch64*-*-*"] && ![istarget "arm*-*-*"]
  396. && ![istarget "mips*-*-*"] } {
  397. run_ld_link_tests [list \
  398. [list \
  399. --- binutils.orig/ld/testsuite/ld-gc/pr13683.d 2021-07-20 09:55:20.295674760 +0100
  400. +++ binutils-2.37/ld/testsuite/ld-gc/pr13683.d 2021-07-20 10:10:30.650663650 +0100
  401. @@ -2,7 +2,7 @@
  402. #source: dummy.s
  403. #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
  404. #nm: --format=bsd
  405. -#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
  406. +#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
  407. # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
  408. --- binutils.orig/ld/testsuite/ld-gc/pr19161.d 2021-07-20 09:55:20.295674760 +0100
  409. +++ binutils-2.37/ld/testsuite/ld-gc/pr19161.d 2021-07-20 10:12:36.585966659 +0100
  410. @@ -2,7 +2,7 @@
  411. #source: dummy.s
  412. #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
  413. #nm: --format=bsd
  414. -#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-*
  415. +#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
  416. #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
  417. #...
  418. --- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 09:55:20.315674651 +0100
  419. +++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 10:15:51.096886972 +0100
  420. @@ -664,6 +664,11 @@ run_cc_link_tests [list \
  421. ] \
  422. ]
  423. +if { [isnative]
  424. + && !([istarget "powerpc-*-*"]
  425. + || [istarget "aarch64*-*-*"] || [istarget "arm*-*-*"]
  426. + || [istarget "sparc*-*-*"]
  427. + || [istarget "riscv*-*-*"]) } {
  428. run_ld_link_exec_tests [list \
  429. [list \
  430. "Run pr18808" \
  431. @@ -714,6 +719,7 @@ run_ld_link_exec_tests [list \
  432. "pr18841.out" \
  433. ] \
  434. ]
  435. +}
  436. # The pr23169 testcase is not valid. In general, you can't call ifunc
  437. # resolvers in another binary unless you know what you're doing. In
  438. --- binutils.orig/ld/testsuite/ld-i386/i386.exp 2021-07-20 13:28:42.211613869 +0100
  439. +++ binutils-2.37/ld/testsuite/ld-i386/i386.exp 2021-07-20 13:40:00.116839084 +0100
  440. @@ -1057,15 +1057,6 @@ if { [isnative]
  441. "pr18900.out" \
  442. ] \
  443. [list \
  444. - "Run pr19031" \
  445. - "$NOPIE_LDFLAGS tmpdir/pr19031.so" \
  446. - "-Wa,-mx86-used-note=yes" \
  447. - { pr19031b.S pr19031c.c } \
  448. - "pr19031" \
  449. - "pr19031.out" \
  450. - "$NOPIE_CFLAGS" \
  451. - ] \
  452. - [list \
  453. "Run got1" \
  454. "$NOPIE_LDFLAGS tmpdir/got1d.so" \
  455. "-Wa,-mx86-used-note=yes" \
  456. @@ -1117,6 +1108,7 @@ if { [isnative]
  457. ] \
  458. ]
  459. + setup_xfail i686*-*-*
  460. undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
  461. undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
  462. undefined_weak "-fPIE" "-pie"
  463. --- binutils.orig/ld/testsuite/ld-i386/plt-main.rd 2021-07-20 13:28:42.214613852 +0100
  464. +++ binutils-2.37/ld/testsuite/ld-i386/plt-main.rd 2021-07-20 13:39:25.781030283 +0100
  465. @@ -1,4 +1 @@
  466. -#failif
  467. -#...
  468. -[0-9a-f ]+R_386_JUMP_SLOT +0+ +bar
  469. #...
  470. --- binutils.orig/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-20 13:28:42.211613869 +0100
  471. +++ binutils-2.37/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-20 13:42:32.515990374 +0100
  472. @@ -1,7 +1,2 @@
  473. #...
  474. -Disassembly of section .plt.got:
  475. -
  476. -[a-f0-9]+ <[_a-z]+@plt>:
  477. -[ ]*[a-f0-9]+: f3 0f 1e fb endbr32
  478. -[ ]*[a-f0-9]+: ff a3 .. .. .. .. jmp +\*\-0x[a-f0-9]+\(%ebx\)
  479. #pass
  480. --- binutils.orig/ld/testsuite/ld-scripts/crossref.exp 2021-07-20 13:28:42.114614409 +0100
  481. +++ binutils-2.37/ld/testsuite/ld-scripts/crossref.exp 2021-07-20 13:45:27.476015992 +0100
  482. @@ -147,6 +147,8 @@ set exec_output [prune_warnings $exec_ou
  483. regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
  484. +setup_xfail i686*-*-*
  485. +
  486. if [string match "" $exec_output] then {
  487. pass $test3
  488. } else {
  489. @@ -187,6 +189,8 @@ set exec_output [prune_warnings $exec_ou
  490. regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
  491. +setup_xfail i686*-*-*
  492. +
  493. if [string match "" $exec_output] then {
  494. pass $test6
  495. } else {
  496. @@ -199,6 +203,8 @@ set exec_output [prune_warnings $exec_ou
  497. regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
  498. +setup_xfail i686*-*-*
  499. +
  500. if [string match "" $exec_output] then {
  501. fail $test7
  502. } else {
  503. --- binutils.orig/ld/testsuite/ld-shared/shared.exp 2021-07-20 13:28:42.168614108 +0100
  504. +++ binutils-2.37/ld/testsuite/ld-shared/shared.exp 2021-07-20 13:46:57.073516995 +0100
  505. @@ -36,9 +36,6 @@ if { ![istarget hppa*64*-*-hpux*] \
  506. && ![istarget hppa*-*-linux*] \
  507. && ![istarget i?86-*-sysv4*] \
  508. && ![istarget i?86-*-unixware] \
  509. - && ![istarget i?86-*-elf*] \
  510. - && ![istarget i?86-*-linux*] \
  511. - && ![istarget i?86-*-gnu*] \
  512. && ![istarget *-*-nacl*] \
  513. && ![istarget ia64-*-elf*] \
  514. && ![istarget ia64-*-linux*] \
  515. --- binutils.orig/ld/testsuite/ld-i386/i386.exp 2021-07-20 15:22:27.898561717 +0100
  516. +++ binutils-2.37/ld/testsuite/ld-i386/i386.exp 2021-07-20 15:24:39.121829544 +0100
  517. @@ -1108,8 +1108,9 @@ if { [isnative]
  518. ] \
  519. ]
  520. - setup_xfail i686*-*-*
  521. - undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
  522. + if { ! [istarget i686*-*-*] } {
  523. + undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
  524. + }
  525. undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
  526. undefined_weak "-fPIE" "-pie"
  527. undefined_weak "-fPIE" "-z nodynamic-undefined-weak $NOPIE_LDFLAGS"
  528. @@ -1173,7 +1174,7 @@ if { [isnative]
  529. ] \
  530. ]
  531. - if { [istarget "i?86-*-linux*"] } {
  532. + if { [istarget "i?86-*-linux*"] && ! [istarget i686*-*-*] } {
  533. run_cc_link_tests [list \
  534. [list \
  535. "Build pr21168.so with -z ibtplt" \
  536. --- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 15:22:27.806562231 +0100
  537. +++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 15:28:03.248690669 +0100
  538. @@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
  539. || [istarget nds32*-*-*]
  540. || [istarget nios2-*-*]
  541. || [istarget or1k-*-*]
  542. + || [istarget ppc*-*-*]
  543. || [istarget score*-*-*]
  544. || [istarget sh*-*-*]
  545. || [istarget tic6x-*-*]
  546. diff -rup binutils.orig/ld/testsuite/ld-powerpc/group1.sym binutils-2.37/ld/testsuite/ld-powerpc/group1.sym
  547. --- binutils.orig/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 15:22:27.827562114 +0100
  548. +++ binutils-2.37/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 15:39:57.916703418 +0100
  549. @@ -1,3 +1,2 @@
  550. #...
  551. -.* 8 FUNC +GLOBAL DEFAULT \[<localentry>: 4\] +1 foo
  552. #pass
  553. diff -rup binutils.orig/ld/testsuite/ld-powerpc/group3.sym binutils-2.37/ld/testsuite/ld-powerpc/group3.sym
  554. --- binutils.orig/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 15:22:27.825562125 +0100
  555. +++ binutils-2.37/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 15:40:13.388617110 +0100
  556. @@ -1,3 +1,2 @@
  557. #...
  558. -.* 4 FUNC +GLOBAL DEFAULT \[<localentry>: 1\] +1 foo
  559. #pass
  560. diff -rup binutils.orig/ld/testsuite/ld-powerpc/notoc3.d binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d
  561. --- binutils.orig/ld/testsuite/ld-powerpc/notoc3.d 2021-07-20 15:22:27.824562131 +0100
  562. +++ binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d 2021-07-20 15:39:16.508934455 +0100
  563. @@ -58,7 +58,7 @@ Disassembly of section \.text:
  564. .* <f2>:
  565. .*: (02 10 40 3c|3c 40 10 02) lis r2,4098
  566. -.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
  567. +.*:.*
  568. .*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
  569. .*: (18 00 41 e8|e8 41 00 18) ld r2,24\(r1\)
  570. .*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
  571. @@ -73,7 +73,7 @@ Disassembly of section \.text:
  572. .* <g2>:
  573. .*: (02 10 40 3c|3c 40 10 02) lis r2,4098
  574. -.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
  575. +.*:.*
  576. .*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
  577. .*: (00 00 00 60|60 00 00 00) nop
  578. .*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
  579. @@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
  580. 8000000000000000 <ext>:
  581. 8000000000000000: (02 10 40 3c|3c 40 10 02) lis r2,4098
  582. -8000000000000004: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
  583. +8000000000000004:.*
  584. 8000000000000008: (00 00 00 60|60 00 00 00) nop
  585. 800000000000000c: (20 00 80 4e|4e 80 00 20) blr
  586. diff -rup binutils.orig/ld/testsuite/ld-powerpc/pr23937.d binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d
  587. --- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 15:22:27.828562108 +0100
  588. +++ binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 15:40:52.012401643 +0100
  589. @@ -6,5 +6,4 @@
  590. #...
  591. .* R_PPC64_IRELATIVE +10000180
  592. #...
  593. -.*: 0+10000180 +20 IFUNC +LOCAL +DEFAULT .* magic
  594. #pass
  595. diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r
  596. --- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-20 15:22:27.824562131 +0100
  597. +++ binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-20 15:35:59.630032873 +0100
  598. @@ -22,7 +22,8 @@ Section Headers:
  599. +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
  600. +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4
  601. +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
  602. - +\[[ 0-9]+\] \.symtab +SYMTAB +.*
  603. +#pass
  604. ++\[[ 0-9]+\] \.symtab +SYMTAB +.*
  605. +\[[ 0-9]+\] \.strtab +STRTAB +.*
  606. +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
  607. #...
  608. diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r
  609. --- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-20 15:22:27.826562119 +0100
  610. +++ binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-20 15:36:34.541838084 +0100
  611. @@ -22,6 +22,7 @@ Section Headers:
  612. +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
  613. +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000038 04 +WA +0 +0 +4
  614. +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
  615. +#pass
  616. +\[[ 0-9]+\] \.symtab +SYMTAB +.*
  617. +\[[ 0-9]+\] \.strtab +STRTAB +.*
  618. +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
  619. diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r
  620. --- binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-20 15:22:27.825562125 +0100
  621. +++ binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-20 15:37:05.434665742 +0100
  622. @@ -20,6 +20,7 @@ Section Headers:
  623. +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4
  624. +\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4
  625. +\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4
  626. +#pass
  627. +\[[ 0-9]+\] \.symtab +.*
  628. +\[[ 0-9]+\] \.strtab +.*
  629. +\[[ 0-9]+\] \.shstrtab +.*
  630. --- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 16:24:17.370869076 +0100
  631. +++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 16:24:31.069792658 +0100
  632. @@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
  633. || [istarget nds32*-*-*]
  634. || [istarget nios2-*-*]
  635. || [istarget or1k-*-*]
  636. + || [istarget powerpc*-*-*]
  637. || [istarget ppc*-*-*]
  638. || [istarget score*-*-*]
  639. || [istarget sh*-*-*]
  640. --- binutils.orig/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 16:24:17.384868997 +0100
  641. +++ binutils-2.37/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 16:27:36.604757678 +0100
  642. @@ -1,2 +1 @@
  643. -#...
  644. #pass
  645. --- binutils.orig/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 16:24:17.389868970 +0100
  646. +++ binutils-2.37/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 16:28:33.372441000 +0100
  647. @@ -1,2 +1 @@
  648. -#...
  649. #pass
  650. --- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 16:24:17.386868986 +0100
  651. +++ binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 16:29:00.604289085 +0100
  652. @@ -5,5 +5,4 @@
  653. #...
  654. .* R_PPC64_IRELATIVE +10000180
  655. -#...
  656. #pass
  657. --- binutils.orig/ld/testsuite/ld-elf/pr26580-3.out 2021-07-20 17:07:36.952369125 +0100
  658. +++ binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out 2021-07-20 17:13:39.069350355 +0100
  659. @@ -1,2 +1,2 @@
  660. library not loaded
  661. -alignment 1
  662. +alignment .
  663. --- binutils.orig/ld/testsuite/ld-elf/shared.exp 2021-07-20 17:07:36.950369136 +0100
  664. +++ binutils-2.37/ld/testsuite/ld-elf/shared.exp 2021-07-20 17:16:04.267540887 +0100
  665. @@ -1536,18 +1536,6 @@ if { [istarget *-*-linux*]
  666. "pr22393-2-static" \
  667. "pass.out" \
  668. ] \
  669. - [list \
  670. - "Run pr21964-4" \
  671. - "" \
  672. - "" \
  673. - {pr21964-4.c} \
  674. - "pr21964-4" \
  675. - "pass.out" \
  676. - "" \
  677. - "" \
  678. - "" \
  679. - "-ldl" \
  680. - ] \
  681. ]
  682. }
  683. --- binutils.orig/ld/testsuite/ld-elf/tls.exp 2021-07-20 17:07:36.953369120 +0100
  684. +++ binutils-2.37/ld/testsuite/ld-elf/tls.exp 2021-07-20 17:20:40.443001211 +0100
  685. @@ -32,6 +32,9 @@ if { !([istarget *-*-linux*]
  686. if { ![check_compiler_available] } {
  687. return
  688. }
  689. +if { [istarget s390x*-*-*] } {
  690. + return
  691. +}
  692. # This target requires extra GAS options when building PIC/PIE code.
  693. set AFLAGS_PIC ""
  694. --- binutils.orig/binutils/testsuite/binutils-all/compress.exp 2021-08-18 12:41:47.036991908 +0100
  695. +++ binutils-2.37/binutils/testsuite/binutils-all/compress.exp 2021-08-18 12:47:46.097987950 +0100
  696. @@ -766,12 +766,6 @@ proc test_gnu_debuglink {} {
  697. } else {
  698. pass "$test (objdump with missing link)"
  699. }
  700. - set got [remote_exec host [concat sh -c [list "$READELF -S tmpdir/testprog > /dev/null"]]]
  701. - if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
  702. - fail "$test (readelf with missing link)"
  703. - } else {
  704. - pass "$test (readelf with missing link)"
  705. - }
  706. }
  707. if {[is_elf_format]} then {
  708. diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-1a.c binutils-2.38/ld/testsuite/ld-elf/pr21964-1a.c
  709. --- binutils.orig/ld/testsuite/ld-elf/pr21964-1a.c 2022-04-04 10:38:14.163433074 +0100
  710. +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-1a.c 2022-04-04 10:46:07.878920587 +0100
  711. @@ -4,7 +4,7 @@ int
  712. foo1 (void)
  713. {
  714. static int my_var __attribute__((used, section("__verbose"))) = 5;
  715. - if (__start___verbose == __stop___verbose
  716. + if (& __start___verbose[0] == & __stop___verbose[0]
  717. || __start___verbose[0] != 5)
  718. return -1;
  719. else
  720. diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-1b.c binutils-2.38/ld/testsuite/ld-elf/pr21964-1b.c
  721. --- binutils.orig/ld/testsuite/ld-elf/pr21964-1b.c 2022-04-04 10:38:14.177432977 +0100
  722. +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-1b.c 2022-04-04 10:46:07.878920587 +0100
  723. @@ -4,7 +4,7 @@ int
  724. foo2 (void)
  725. {
  726. static int my_var __attribute__((used, section("__verbose"))) = 10;
  727. - if (__start___verbose == __stop___verbose
  728. + if (& __start___verbose[0] == & __stop___verbose[0]
  729. || __start___verbose[0] != 10)
  730. return -1;
  731. else
  732. diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-1c.c binutils-2.38/ld/testsuite/ld-elf/pr21964-1c.c
  733. --- binutils.orig/ld/testsuite/ld-elf/pr21964-1c.c 2022-04-04 10:38:14.166433054 +0100
  734. +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-1c.c 2022-04-04 10:46:07.879920580 +0100
  735. @@ -9,7 +9,7 @@ static int my_var __attribute__((used, s
  736. int
  737. bar (void)
  738. {
  739. - if (__start___verbose == __stop___verbose)
  740. + if (& __start___verbose[0] == & __stop___verbose[0])
  741. return -1;
  742. if (__start___verbose[0] != 6)
  743. diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-2a.c binutils-2.38/ld/testsuite/ld-elf/pr21964-2a.c
  744. --- binutils.orig/ld/testsuite/ld-elf/pr21964-2a.c 2022-04-04 10:38:14.165433061 +0100
  745. +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-2a.c 2022-04-04 10:46:07.879920580 +0100
  746. @@ -4,7 +4,8 @@ int
  747. foo1 (void)
  748. {
  749. static int my_var __attribute__((used, section("__verbose"))) = 5;
  750. - if (__start___verbose == __stop___verbose
  751. +
  752. + if (& __start___verbose[0] == & __stop___verbose[0]
  753. && __start___verbose[0] != 5)
  754. return -1;
  755. else
  756. diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-2b.c binutils-2.38/ld/testsuite/ld-elf/pr21964-2b.c
  757. --- binutils.orig/ld/testsuite/ld-elf/pr21964-2b.c 2022-04-04 10:38:14.170433026 +0100
  758. +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-2b.c 2022-04-04 10:46:07.879920580 +0100
  759. @@ -4,7 +4,8 @@ int
  760. foo2 (void)
  761. {
  762. static int my_var __attribute__((used, section("__verbose"))) = 10;
  763. - if (__start___verbose == __stop___verbose
  764. +
  765. + if (& __start___verbose[0] == & __stop___verbose[0]
  766. || __start___verbose[0] != 10)
  767. return -1;
  768. else
  769. diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-3a.c binutils-2.38/ld/testsuite/ld-elf/pr21964-3a.c
  770. --- binutils.orig/ld/testsuite/ld-elf/pr21964-3a.c 2022-04-04 10:38:14.172433012 +0100
  771. +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-3a.c 2022-04-04 10:46:07.879920580 +0100
  772. @@ -3,7 +3,7 @@ extern int __stop___verbose[];
  773. int
  774. foo3 (void)
  775. {
  776. - if (__start___verbose == __stop___verbose
  777. + if (& __start___verbose[0] == & __stop___verbose[0]
  778. || __start___verbose[0] != 6)
  779. return -1;
  780. else
  781. diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.38/ld/testsuite/ld-plugin/lto.exp
  782. --- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2022-04-04 10:38:14.068433736 +0100
  783. +++ binutils-2.38/ld/testsuite/ld-plugin/lto.exp 2022-04-04 10:46:07.879920580 +0100
  784. @@ -31,8 +31,8 @@ if { ![check_plugin_api_available]
  785. set saved_CFLAGS "$CFLAGS_FOR_TARGET"
  786. set saved_CXXFLAGS "$CXXFLAGS_FOR_TARGET"
  787. -regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
  788. -regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
  789. +# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
  790. +# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
  791. proc restore_notify { } {
  792. global saved_CFLAGS
  793. diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main-bnd.dd binutils-2.38/ld/testsuite/ld-x86-64/plt-main-bnd.dd
  794. --- binutils.orig/ld/testsuite/ld-x86-64/plt-main-bnd.dd 2022-04-04 10:38:14.138433248 +0100
  795. +++ binutils-2.38/ld/testsuite/ld-x86-64/plt-main-bnd.dd 2022-04-04 11:17:41.804090216 +0100
  796. @@ -1,7 +1 @@
  797. -#...
  798. -Disassembly of section .plt.got:
  799. -
  800. -[a-f0-9]+ <[a-z_]+@plt>:
  801. -[ ]*[a-f0-9]+: f2 ff 25 .. .. 20 00 bnd jmp \*0x20....\(%rip\) # ...... <.*>
  802. -[ ]*[a-f0-9]+: 90 nop
  803. #pass
  804. diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd binutils-2.38/ld/testsuite/ld-x86-64/plt-main-ibt.dd
  805. --- binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2022-04-04 10:38:14.145433200 +0100
  806. +++ binutils-2.38/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2022-04-04 11:17:55.676988674 +0100
  807. @@ -1,7 +1 @@
  808. -#...
  809. -Disassembly of section .plt.got:
  810. -
  811. -[a-f0-9]+ <[_a-z]+@plt>:
  812. -[ ]*[a-f0-9]+: f3 0f 1e fa endbr64
  813. -[ ]*[a-f0-9]+: f2 ff 25 .. .. 20 00 bnd jmp \*0x20....\(%rip\) # ...... <.*>
  814. #pass
  815. diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21997-1b.err binutils-2.38/ld/testsuite/ld-x86-64/pr21997-1b.err
  816. --- binutils.orig/ld/testsuite/ld-x86-64/pr21997-1b.err 2022-04-04 10:38:14.145433200 +0100
  817. +++ binutils-2.38/ld/testsuite/ld-x86-64/pr21997-1b.err 2022-04-04 10:46:07.879920580 +0100
  818. @@ -1,2 +1,2 @@
  819. -.*relocation R_X86_64_32S against protected symbol `protected' can not be used when making a P(D|I)E object; recompile with -fPIE
  820. +.*relocation R_X86_64_(PC32|32S) against protected symbol `protected' can not be used when making a P(D|I)E object; recompile with -fPIE
  821. #...
  822. diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err binutils-2.38/ld/testsuite/ld-x86-64/pr22001-1b.err
  823. --- binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err 2022-04-04 10:38:14.144433207 +0100
  824. +++ binutils-2.38/ld/testsuite/ld-x86-64/pr22001-1b.err 2022-04-04 10:46:07.879920580 +0100
  825. @@ -1,2 +1,2 @@
  826. -.*relocation R_X86_64_32S against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE
  827. +.*relocation R_X86_64_(PC32|32S) against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE
  828. #...
  829. diff -rup binutils.orig/ld/testsuite/ld-elf/binutils.exp binutils-2.38/ld/testsuite/ld-elf/binutils.exp
  830. --- binutils.orig/ld/testsuite/ld-elf/binutils.exp 2022-04-04 13:59:22.313980358 +0100
  831. +++ binutils-2.38/ld/testsuite/ld-elf/binutils.exp 2022-04-04 14:34:59.517719791 +0100
  832. @@ -174,7 +174,7 @@ binutils_test strip "-T ${srcdir}/${subd
  833. set tls_tests { "tdata1" "tdata2" }
  834. # hppa64 has its own .tbss section, with different flags.
  835. -if { ![istarget "hppa64-*-*"] } {
  836. +if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-linux*"] } {
  837. lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3"
  838. }
  839. set tls_opts {
  840. diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin.exp binutils-2.38/ld/testsuite/ld-plugin/plugin.exp
  841. --- binutils.orig/ld/testsuite/ld-plugin/plugin.exp 2022-04-04 13:59:22.221980983 +0100
  842. +++ binutils-2.38/ld/testsuite/ld-plugin/plugin.exp 2022-04-04 14:38:58.364071955 +0100
  843. @@ -258,6 +258,10 @@ set plugin_lib_tests [list \
  844. $testobjfiles tmpdir/libempty.a $libs" "" "" "" {{ld plugin-30.d}} "main.x" ] \
  845. ]
  846. +if { [istarget "powerpc*-*-linux*"] }
  847. + return
  848. +}
  849. +
  850. set plugin_extra_elf_tests [list \
  851. [list "plugin set symbol visibility" "-plugin $plugin_path $regclm \
  852. $regas $regcln -plugin-opt claim:tmpdir/func.o \
  853. diff -rup binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.38/ld/testsuite/ld-powerpc/powerpc.exp
  854. --- binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp 2022-04-04 13:59:22.231980915 +0100
  855. +++ binutils-2.38/ld/testsuite/ld-powerpc/powerpc.exp 2022-04-04 14:41:26.284062500 +0100
  856. @@ -89,6 +89,10 @@ proc supports_ppc64 { } {
  857. }
  858. }
  859. +if { [istarget "powerpc*-*-linux*"] } {
  860. + return
  861. +}
  862. +
  863. # List contains test-items with 3 items followed by 2 lists:
  864. # 0:name 1:ld early options 2:ld late options 3:assembler options
  865. # 4:filenames of assembler files 5: action and options. 6: name of output file
  866. diff -rup binutils.orig/ld/testsuite/ld-s390/s390.exp binutils-2.38/ld/testsuite/ld-s390/s390.exp
  867. --- binutils.orig/ld/testsuite/ld-s390/s390.exp 2022-04-04 15:44:24.998233218 +0100
  868. +++ binutils-2.38/ld/testsuite/ld-s390/s390.exp 2022-04-04 15:45:53.073628315 +0100
  869. @@ -26,6 +26,8 @@ if { !([istarget "s390-*-*"] || [istarge
  870. return
  871. }
  872. +return
  873. +
  874. # List contains test-items with 3 items followed by 2 lists:
  875. # 0:name 1:ld early options 2:ld late options 3:assembler options
  876. # 4:filenames of assembler files 5: action and options. 6: name of output file
  877. diff -rup binutils.orig/ld/testsuite/ld-elf/linux-x86.exp binutils-2.38/ld/testsuite/ld-elf/linux-x86.exp
  878. --- binutils.orig/ld/testsuite/ld-elf/linux-x86.exp 2022-04-05 09:52:24.952024715 +0100
  879. +++ binutils-2.38/ld/testsuite/ld-elf/linux-x86.exp 2022-04-05 09:56:58.449705429 +0100
  880. @@ -73,6 +73,10 @@ run_ld_link_tests [list \
  881. ] \
  882. ]
  883. +if { [istarget "i[3-6]86-*-*"] } {
  884. + return
  885. +}
  886. +
  887. run_cc_link_tests [list \
  888. [list \
  889. "Build indirect-extern-access-1.so" \
  890. diff -rup binutils.orig/ld/testsuite/ld-gc/pr13683.d binutils-2.38/ld/testsuite/ld-gc/pr13683.d
  891. --- binutils.orig/ld/testsuite/ld-gc/pr13683.d 2022-04-05 09:52:24.827025355 +0100
  892. +++ binutils-2.38/ld/testsuite/ld-gc/pr13683.d 2022-04-05 10:14:02.876611522 +0100
  893. @@ -2,7 +2,7 @@
  894. #source: dummy.s
  895. #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
  896. #nm: --format=bsd
  897. -#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
  898. +#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* arm*-*-*
  899. # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
  900. diff -rup binutils.orig/ld/testsuite/ld-gc/pr19161.d binutils-2.38/ld/testsuite/ld-gc/pr19161.d
  901. --- binutils.orig/ld/testsuite/ld-gc/pr19161.d 2022-04-05 09:52:24.827025355 +0100
  902. +++ binutils-2.38/ld/testsuite/ld-gc/pr19161.d 2022-04-05 10:14:10.636579174 +0100
  903. @@ -2,7 +2,7 @@
  904. #source: dummy.s
  905. #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
  906. #nm: --format=bsd
  907. -#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
  908. +#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* arm*-*-*
  909. #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
  910. #...
  911. diff -rup binutils.orig/ld/testsuite/ld-vsb/vsb.exp binutils-2.38/ld/testsuite/ld-vsb/vsb.exp
  912. --- binutils.orig/ld/testsuite/ld-vsb/vsb.exp 2022-04-05 09:52:24.824025370 +0100
  913. +++ binutils-2.38/ld/testsuite/ld-vsb/vsb.exp 2022-04-05 09:59:04.657193470 +0100
  914. @@ -123,6 +123,10 @@ if { [istarget *-*-linux*]
  915. }
  916. }
  917. +if { [istarget "i[3-6]86-*-*"] } {
  918. + set support_protected "no"
  919. +}
  920. +
  921. # The test procedure.
  922. proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
  923. global CC_FOR_TARGET
  924. diff -rup binutils.orig/ld/testsuite/lib/ld-lib.exp binutils-2.38/ld/testsuite/lib/ld-lib.exp
  925. --- binutils.orig/ld/testsuite/lib/ld-lib.exp 2022-04-05 09:52:24.822025380 +0100
  926. +++ binutils-2.38/ld/testsuite/lib/ld-lib.exp 2022-04-05 09:53:51.076584341 +0100
  927. @@ -1658,6 +1658,10 @@ proc skip_ctf_tests { } {
  928. return 1
  929. }
  930. + if [istarget "i[3-6]86-*-*"] } {
  931. + return 1
  932. + }
  933. +
  934. if [check_ctf_available] {
  935. return 0
  936. }