(root)/
binutils-2.41/
ld/
testsuite/
ld-elf/
pr23648.t
MEMORY { code : ORIGIN = 0, LENGTH = 8M }

SECTIONS
{
  ENTRY (entry)
  .text 1M : { *(.text*) } >code
  /DISCARD/ : { *(*) }
}

foo = LENGTH (code) != 8M ? test0 : test1;