OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-elfvers/] [vers18.c] - Blame information for rev 450

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
int
2
bar ()
3
{
4
  return 3;
5
}
6
 
7
#pragma weak hide_original_foo
8
 
9
int
10
hide_original_foo ()
11
{
12
  return 1 + bar ();
13
}
14
 
15
#pragma weak hide_old_foo
16
 
17
int
18
hide_old_foo ()
19
{
20
  return 10 + bar();
21
}
22
 
23
#pragma weak hide_old_foo1
24
 
25
int
26
hide_old_foo1 ()
27
{
28
  return 100 + bar ();
29
}
30
 
31
#pragma weak hide_new_foo
32
 
33
int
34
hide_new_foo ()
35
{
36
  return 1000 + bar ();
37
}
38
 
39
__asm__(".symver hide_original_foo,show_foo@");
40
__asm__(".symver hide_old_foo,show_foo@VERS_1.1");
41
__asm__(".symver hide_old_foo1,show_foo@VERS_1.2");
42
__asm__(".symver hide_new_foo,show_foo@@VERS_2.0");

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.