mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
ad0f979c9d
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.
9 lines
153 B
Raku
9 lines
153 B
Raku
SECTIONS {
|
|
.text : { *(.text) }
|
|
.data : { *(.data) }
|
|
.bss : { *(.bss) *(COMMON) }
|
|
}
|
|
sym1 = 0x42;
|
|
sym2 = 0x43;
|
|
defined = DEFINED (sym1) ? sym1 : sym2;
|