aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-vax-elf/plt-local.ld
blob: 03c74a4f316a43fe3ca4769014e09651c12bd8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ENTRY (foo_global)
SECTIONS
{
  . = SIZEOF_HEADERS;
  .interp		: { *(.interp) }
  .hash			: { *(.hash) }
  .dynsym		: { *(.dynsym) }
  .dynstr		: { *(.dynstr) }
  .gnu.version		: { *(.gnu.version) }
  .gnu.version_d	: { *(.gnu.version_d) }
  .rela.plt		: { *(.rela.plt) }

  . = 0x1000;
  .plt			: { *(.plt) }

  . = 0x2000;
  .text			: { *(.text) }

  . = 0x3000;
  .dynamic		: { *(.dynamic) }
  .got			: { *(.got.plt) }
};
VERSION
{
  {
    global:
			foo_extern;
			foo_global;
			foo_hidden;
			foo_rehidden;
    local:
			foo_local;
  };
}