Update
[glibc.git] / elf / vismod2.c
blob3a7b1d97f3abbd7271848b012fbd60e9672e31c6
1 /* Copyright (C) 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
19 int
20 protlocal (void)
22 return 0x40;
24 asm (".protected protlocal");
27 int
28 calllocal2 (void)
30 return protlocal () + 0x100;
33 int
34 (*getlocal2 (void)) (void)
36 return protlocal;
39 int
40 protinmod (void)
42 return 0x4000;
44 asm (".protected protinmod");
46 int
47 callinmod2 (void)
49 return protinmod () + 0x10000;
52 int
53 (*getinmod2 (void)) (void)
55 return protinmod;
58 int
59 protitcpt (void)
61 return 0x400000;
63 asm (".protected protitcpt");
65 int
66 callitcpt2 (void)
68 return protitcpt () + 0x1000000;
71 int
72 (*getitcpt2 (void)) (void)
74 return protitcpt;
77 const char *protvarlocal = __FILE__;
78 asm (".protected protvarlocal");
80 const char *
81 getvarlocal2 (void)
83 return protvarlocal;
86 const char *protvarinmod = __FILE__;
87 asm (".protected protvarinmod");
89 const char *
90 getvarinmod2 (void)
92 return protvarinmod;
95 const char *protvaritcpt = __FILE__;
96 asm (".protected protvaritcpt");
98 const char *
99 getvaritcpt2 (void)
101 return protvaritcpt;
104 /* We must never call these functions. */
106 callitcpt3 (void)
108 abort ();
112 (*getitcpt3 (void)) (void)
114 abort ();
117 const char *
118 getvaritcpt3 (void)
120 abort ();