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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-elfvers/] [vers18.c] - Blame information for rev 60

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

Line No. Rev Author Line
1 58 khays
#include "vers.h"
2
 
3
int
4
bar ()
5
{
6
  return 3;
7
}
8
 
9
#pragma weak hide_original_foo
10
 
11
int
12
hide_original_foo ()
13
{
14
  return 1 + bar ();
15
}
16
 
17
#pragma weak hide_old_foo
18
 
19
int
20
hide_old_foo ()
21
{
22
  return 10 + bar();
23
}
24
 
25
#pragma weak hide_old_foo1
26
 
27
int
28
hide_old_foo1 ()
29
{
30
  return 100 + bar ();
31
}
32
 
33
#pragma weak hide_new_foo
34
 
35
int
36
hide_new_foo ()
37
{
38
  return 1000 + bar ();
39
}
40
 
41
SYMVER(hide_original_foo, show_foo@);
42
SYMVER(hide_old_foo, show_foo@VERS_1.1);
43
SYMVER(hide_old_foo1, show_foo@VERS_1.2);
44
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.