forked from Imagelibrary/binutils-gdb
ldscripts/empty-address vs. xcoff
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.
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
0+0 [AT] _start
|
||||
#...
|
||||
0+200 [ADT] __data_end
|
||||
#...
|
||||
0+200 [ADT] __data_start
|
||||
#pass
|
||||
|
||||
@@ -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
|
||||
#...
|
||||
|
||||
@@ -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
|
||||
#...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user