Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-scripts/pr18963.t

29 lines
308 B
Perl
Raw Normal View History

2023-03-06 14:48:14 +01:00
SECTIONS
{
. = 0x800;
A = .;
.text :
{
_start = .;
*(.text)
. = 0x100;
}
B = .;
.data :
{
*(.data)
. = 0x100;
}
C = .;
.bss :
{
*(.bss)
. = 0x100;
}
D = A - C + B;
E = A + B - C;
/DISCARD/ : {*(*)}
}
ASSERT(D == E, "Addition is not commutative");