ldscripts/empty-address vs. xcoff
authorAlan Modra <amodra@gmail.com>
Fri, 28 Jul 2023 03:36:17 +0000 (13:06 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Jul 2023 04:41:40 +0000 (14:11 +0930)
The empty-address tests check that if a section is removed by ld due
to being empty then properties of that section don't affect following
addresses.  The xcoff backend doesn't remove the empty .data section
created by empty-address-2* and empty-address-3* for some reason, and
therefore fails the test.

* testsuite/ld-scripts/empty-address-1.d: Accept more symbols.
* testsuite/ld-scripts/empty-address-2a.d: xfail for xcoff.
* testsuite/ld-scripts/empty-address-2b.d: Likewise.
* testsuite/ld-scripts/empty-address-3a.d: Likewise.
* testsuite/ld-scripts/empty-address-3b.d: Likewise.

ld/testsuite/ld-scripts/empty-address-1.d
ld/testsuite/ld-scripts/empty-address-2a.d
ld/testsuite/ld-scripts/empty-address-2b.d
ld/testsuite/ld-scripts/empty-address-3a.d
ld/testsuite/ld-scripts/empty-address-3b.d

index dbaf778024e32d528f347c687eaf32dc55766f4c..210b70f7097f31eb41ff002741d5085492e1b99c 100644 (file)
@@ -5,5 +5,6 @@
 0+0 [AT] _start
 #...
 0+200 [ADT] __data_end
+#...
 0+200 [ADT] __data_start
 #pass
index 4471a1be6a31df8113b792f19aa92996fea9c95c..a619ea19a07e9074025f5e3fcbb3ed190f66bdac 100644 (file)
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t
 #nm: -n
-#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-*
+#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format]
 #...
 0+0 T _start
 #...
index 8dfe888b63dba56a535b0adce7f4fbb002e8a58e..c9b97b8b8090a8d4f26017c19b04211b24592363 100644 (file)
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t
 #nm: -n
-#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-*
+#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format]
 #...
 0+0 T _start
 #...
index b3135bf9231ad3fb211650830086c6e18d083450..fe87ebc34ac20daace90838a5b4f0e7b93745bb9 100644 (file)
@@ -1,6 +1,7 @@
 #source: empty-address-3.s
 #ld: -T empty-address-3a.t
 #nm: -n
+#xfail: [is_xcoff_format]
 
 #...
 0+0 T _start
index 1e68e29b4281837580b9b9c314a425335d4a49a0..0d9babef6f739b600eb7b1baa86f6af2b6f69387 100644 (file)
@@ -1,6 +1,7 @@
 #source: empty-address-3.s
 #ld: -T empty-address-3b.t
 #nm: -n
+#xfail: [is_xcoff_format]
 
 #...
 0+0 T _start