Define __ASSUME_AT_RANDOM.
[glibc/history.git] / elf / vismod1.c
blob6f9c1a59f9c659d4333310108864ed6b0efa170f
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 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.
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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #include "vismod.h"
21 int
22 protlocal (void)
24 return 0x4;
26 asm (".protected protlocal");
29 int
30 calllocal1 (void)
32 return protlocal () + 0x10;
35 int
36 (*getlocal1 (void)) (void)
38 return protlocal;
41 int
42 protinmod (void)
44 return 0x400;
46 asm (".protected protinmod");
48 int
49 callinmod1 (void)
51 return protinmod () + 0x1000;
54 int
55 (*getinmod1 (void)) (void)
57 return protinmod;
60 int
61 protitcpt (void)
63 return 0x40000;
65 asm (".protected protitcpt");
67 int
68 callitcpt1 (void)
70 return protitcpt () + 0x100000;
73 int
74 (*getitcpt1 (void)) (void)
76 return protitcpt;
79 const char *protvarlocal = __FILE__;
80 asm (".protected protvarlocal");
82 const char **
83 getvarlocal1 (void)
85 return &protvarlocal;
88 const char *protvarinmod = __FILE__;
89 asm (".protected protvarinmod");
91 const char **
92 getvarinmod1 (void)
94 return &protvarinmod;
97 const char *protvaritcpt = __FILE__;
98 asm (".protected protvaritcpt");
100 const char **
101 getvaritcpt1 (void)
103 return &protvaritcpt;