summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/defined2.t
blob: 50ddad0bad056b8a206b1cbabf427d59a0856b56 (plain)
1
2
3
4
5
6
7
8
9
SECTIONS {
	.text : { *(.text) sym1 = 3 - DEFINED (x); }
	.data : { *(.data) }
	.bss : { *(.bss) *(COMMON) }
}
defined1 = !DEFINED (x);
defined2 = DEFINED (defined1) + 16;
defined3 = DEFINED (defined2) * 256;
defined4 = 0x200 - DEFINED (defined3);