binutils-gdb/ld/testsuite/ld-scripts/pr24008.t

9 lines
153 B
Raku

SECTIONS {
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss) *(COMMON) }
}
sym1 = 0x42;
sym2 = 0x43;
defined = DEFINED (sym1) ? sym1 : sym2;