binutils-gdb/ld/testsuite/ld-scripts/pr24008.t
H.J. Lu ad0f979c9d Add a testcase for PR ld/24008
PR ld/24008
	* testsuite/ld-scripts/defined.exp: Run pr24008.
	* testsuite/ld-scripts/pr24008.d: New file.
	* testsuite/ld-scripts/pr24008.map: Likewise.
	* testsuite/ld-scripts/pr24008.s: Likewise.
	* testsuite/ld-scripts/pr24008.t: Likewise.
2019-01-29 06:07:42 -08:00

9 lines
153 B
Raku

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