binutils-gdb/ld/testsuite/ld-scripts/empty-address-4.t
Alan Modra 1cba418d26 ASSERT in empty output section with address
* ldlang.c (lang_do_assignments_1): Correct "dot" inside ignored
	sections.
	* testsuite/ld-scripts/empty-address-4.d,
	* testsuite/ld-scripts/empty-address-4.s,
	* testsuite/ld-scripts/empty-address-4.t: New test.
	* testsuite/ld-scripts/empty-address.exp: Run it.
2021-10-28 10:51:03 +10:30

12 lines
152 B
Raku

SECTIONS
{
.text 0: { *(.text .pr) }
.data 0x200:
{
*(.data)
ASSERT (. < 0x400, oops);
}
.bss : { *(.bss) }
/DISCARD/ : { *(.*) }
}