binutils-gdb/ld/testsuite/ld-elf/pr23648.t
Alan Modra 7e00df65a4 PR23648 testcase
PR 23648
	* testsuite/ld-elf/pr23648.d,
	* testsuite/ld-elf/pr23648.s,
	* testsuite/ld-elf/pr23648.t: New test.
2018-09-19 17:38:46 +09:30

11 lines
172 B
Perl

MEMORY { code : ORIGIN = 0, LENGTH = 8M }
SECTIONS
{
ENTRY (entry)
.text 1M : { *(.text*) } >code
/DISCARD/ : { *(*) }
}
foo = LENGTH (code) != 8M ? test0 : test1;