]> git.ipfire.org Git - thirdparty/glibc.git/blame - elf/vismod1.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / elf / vismod1.c
CommitLineData
b168057a 1/* Copyright (C) 2000-2015 Free Software Foundation, Inc.
eec8ef5a
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
eec8ef5a
UD
8
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
41bdb6e2 12 Lesser General Public License for more details.
eec8ef5a 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
eec8ef5a 17
715ed1e9
AJ
18#include "vismod.h"
19
eec8ef5a
UD
20int
21protlocal (void)
22{
23 return 0x4;
24}
25asm (".protected protlocal");
26
27
28int
29calllocal1 (void)
30{
31 return protlocal () + 0x10;
32}
33
34int
35(*getlocal1 (void)) (void)
36{
37 return protlocal;
38}
39
40int
41protinmod (void)
42{
43 return 0x400;
44}
45asm (".protected protinmod");
46
47int
48callinmod1 (void)
49{
50 return protinmod () + 0x1000;
51}
52
53int
54(*getinmod1 (void)) (void)
55{
56 return protinmod;
57}
58
59int
60protitcpt (void)
61{
62 return 0x40000;
63}
64asm (".protected protitcpt");
65
66int
67callitcpt1 (void)
68{
69 return protitcpt () + 0x100000;
70}
71
72int
73(*getitcpt1 (void)) (void)
74{
75 return protitcpt;
76}
77
78const char *protvarlocal = __FILE__;
79asm (".protected protvarlocal");
80
8a3e01b9 81const char **
eec8ef5a
UD
82getvarlocal1 (void)
83{
8a3e01b9 84 return &protvarlocal;
eec8ef5a
UD
85}
86
87const char *protvarinmod = __FILE__;
88asm (".protected protvarinmod");
89
8a3e01b9 90const char **
eec8ef5a
UD
91getvarinmod1 (void)
92{
8a3e01b9 93 return &protvarinmod;
eec8ef5a
UD
94}
95
96const char *protvaritcpt = __FILE__;
97asm (".protected protvaritcpt");
98
8a3e01b9 99const char **
eec8ef5a
UD
100getvaritcpt1 (void)
101{
8a3e01b9 102 return &protvaritcpt;
eec8ef5a 103}