mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
0203cad215
PR 18963 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in 16-bit address space. * testsuite/ld-scripts/pr18963.d: Likewise.
29 lines
308 B
Raku
29 lines
308 B
Raku
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");
|