aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr23648.t
blob: 5901fc73888239fe6f063527287fcbde3d5e108b (plain)
1
2
3
4
5
6
7
8
9
10
MEMORY { code : ORIGIN = 0, LENGTH = 8M }

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

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