aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/extract-symbol-1.ld
blob: 53e95c6d09d5d5ec5367a5c316cc654214ac09b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ENTRY(_entry)
PHDRS
{
  data PT_LOAD AT (0);
}
SECTIONS
{
  . = 0x10000;
  .foo : { *(.foo) } :data

  . = 0x20000;
  .bar : { *(.bar) } :data

  /DISCARD/ : { *(*) }

  _entry = 0x30000;
  linker_symbol = 0x40000;
}