mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-25 02:03:37 +08:00
b8fe28d49f
* ld-scripts/defined.exp: Run defined2.
10 lines
248 B
Raku
10 lines
248 B
Raku
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);
|