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

26 lines
278 B
Perl
Raw Normal View History

2017-04-10 11:32:00 +00:00
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");