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

10 lines
248 B
Perl
Raw Normal View History

2023-03-06 14:48:14 +01:00
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);