binutils-gdb/ld/testsuite/ld-scripts/pr18963.t

26 lines
278 B
Perl
Raw Normal View History

SECTIONS
{
. = 0x80000;
A = .;
.text :
{
_start = .;
. = 0x10000;
}
B = .;
.data :
{
. = 0x10000;
}
C = .;
.bss :
{
. = 0x10000;
}
D = A - C + B;
E = A + B - C;
/DISCARD/ : {*(*)}
}
ASSERT(D == E, "Addition is not commutative");