dummy_misc.cpp
Go to the documentation of this file.
1 //
2 // Bareflank Hypervisor
3 //
4 // Copyright (C) 2015 Assured Information Security, Inc.
5 // Author: Rian Quinn <quinnr@ainfosec.com>
6 // Author: Brendan Kerrigan <kerriganb@ainfosec.com>
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 
22 #include <stddef.h>
23 #include <stdint.h>
24 #include <dummy_code.h>
25 #include <error_codes.h>
26 
28 
29 void func00() {}
30 void func01() {}
31 void func02() {}
32 void func03() {}
33 void func04() {}
34 void func05() {}
35 void func06() {}
36 void func07() {}
37 void func08() {}
38 void func09() {}
39 
40 void func10() {}
41 void func11() {}
42 void func12() {}
43 void func13() {}
44 void func14() {}
45 void func15() {}
46 void func16() {}
47 void func17() {}
48 void func18() {}
49 void func19() {}
50 
51 void func20() {}
52 void func21() {}
53 void func22() {}
54 void func23() {}
55 void func24() {}
56 void func25() {}
57 void func26() {}
58 void func27() {}
59 void func28() {}
60 void func29() {}
61 
62 static int g_something = 0;
63 
64 __attribute__((constructor))
65 static void ctor_func()
66 {
67  g_something++;
68 }
69 
70 __attribute__((destructor))
71 static void dtor_func()
72 {
73  g_something--;
74 }
75 
76 extern "C" int __attribute__((weak))
77 foo(int arg)
78 {
79  derived d;
80  return d.foo(arg);
81 }
82 
83 void *
84 operator new(size_t size)
85 {
86  (void) size;
87 
88  static int mem = 0;
89  return &mem;
90 }
91 
92 void
93 operator delete(void *ptr) throw()
94 {
95  (void) ptr;
96 }
97 
98 extern "C" int64_t
99 register_eh_frame(void *addr, uint64_t size)
100 {
101  (void) addr;
102  (void) size;
103 
105 }
106 
107 extern "C" void
109 { }
110 
111 extern "C" void
113 { }
114 
115 extern "C" void
117 { }
118 
119 extern "C" int
120 atexit(void (*function)(void))
121 {
122  (void) function;
123  return 0;
124 }
125 
126 extern "C" int64_t
128 {
129  (void) info;
130  return 0;
131 }
132 
133 extern "C" int64_t
135 {
136  (void) info;
137  return 0;
138 }
139 
140 uintptr_t __stack_chk_guard = 0x595e9fbd94fda766;
141 
142 extern "C" void
144 {
145 }
146 
147 void func30() {}
148 void func31() {}
149 void func32() {}
150 void func33() {}
151 void func34() {}
152 void func35() {}
153 void func36() {}
154 void func37() {}
155 void func38() {}
156 void func39() {}
157 
158 void func40() {}
159 void func41() {}
160 void func42() {}
161 void func43() {}
162 void func44() {}
163 void func45() {}
164 void func46() {}
165 void func47() {}
166 void func48() {}
167 void func49() {}
168 
169 void func50() {}
170 void func51() {}
171 void func52() {}
172 void func53() {}
173 void func54() {}
174 void func55() {}
175 void func56() {}
176 void func57() {}
177 void func58() {}
178 void func59() {}
void func37()
Definition: dummy_misc.cpp:154
void func06()
Definition: dummy_misc.cpp:35
void func57()
Definition: dummy_misc.cpp:176
void func55()
Definition: dummy_misc.cpp:174
void func03()
Definition: dummy_misc.cpp:32
void func53()
Definition: dummy_misc.cpp:172
uintptr_t __stack_chk_guard
Definition: dummy_misc.cpp:140
void func12()
Definition: dummy_misc.cpp:42
void func44()
Definition: dummy_misc.cpp:162
void func22()
Definition: dummy_misc.cpp:53
void func47()
Definition: dummy_misc.cpp:165
void func30()
Definition: dummy_misc.cpp:147
void func07()
Definition: dummy_misc.cpp:36
void func18()
Definition: dummy_misc.cpp:48
void func56()
Definition: dummy_misc.cpp:175
void func09()
Definition: dummy_misc.cpp:38
void func13()
Definition: dummy_misc.cpp:43
void func48()
Definition: dummy_misc.cpp:166
void func19()
Definition: dummy_misc.cpp:49
void func20()
Definition: dummy_misc.cpp:51
void func52()
Definition: dummy_misc.cpp:171
void func34()
Definition: dummy_misc.cpp:151
void func00()
Definition: dummy_misc.cpp:29
void func05()
Definition: dummy_misc.cpp:34
void func28()
Definition: dummy_misc.cpp:59
void __cxa_begin_catch(void)
Definition: dummy_misc.cpp:75
void func42()
Definition: dummy_misc.cpp:160
void func10()
Definition: dummy_misc.cpp:40
int64_t local_init(struct section_info_t *info)
Definition: dummy_misc.cpp:90
void func27()
Definition: dummy_misc.cpp:58
constexpr const auto size
void uint64_t uint64_t uint64_t *rdx noexcept
void __stack_chk_fail(void) noexcept
Definition: dummy_misc.cpp:143
void __gxx_personality_v0(void)
Definition: dummy_misc.cpp:79
constexpr const auto addr
Definition: cpuid_x64.h:80
void func25()
Definition: dummy_misc.cpp:56
void func11()
Definition: dummy_misc.cpp:41
void func26()
Definition: dummy_misc.cpp:57
void func29()
Definition: dummy_misc.cpp:60
void func40()
Definition: dummy_misc.cpp:158
void func51()
Definition: dummy_misc.cpp:170
void func08()
Definition: dummy_misc.cpp:37
void func16()
Definition: dummy_misc.cpp:46
void func35()
Definition: dummy_misc.cpp:152
void func31()
Definition: dummy_misc.cpp:148
void __cxa_end_catch(void)
Definition: dummy_misc.cpp:71
void func39()
Definition: dummy_misc.cpp:156
void func38()
Definition: dummy_misc.cpp:155
void func17()
Definition: dummy_misc.cpp:47
void func36()
Definition: dummy_misc.cpp:153
int atexit(void(*function)(void))
Definition: dummy_misc.cpp:83
int64_t register_eh_frame(void *addr, uint64_t size)
Definition: dummy_misc.cpp:62
void func49()
Definition: dummy_misc.cpp:167
derived g_derived
Definition: dummy_misc.cpp:27
__attribute__((constructor)) static void ctor_func()
Definition: dummy_misc.cpp:64
void func54()
Definition: dummy_misc.cpp:173
int foo(int arg) noexcept override
Definition: dummy_code.cpp:35
void func32()
Definition: dummy_misc.cpp:149
void func01()
Definition: dummy_misc.cpp:30
void func33()
Definition: dummy_misc.cpp:150
#define REGISTER_EH_FRAME_SUCCESS
Definition: error_codes.h:66
void func45()
Definition: dummy_misc.cpp:163
void func46()
Definition: dummy_misc.cpp:164
void func04()
Definition: dummy_misc.cpp:33
void func21()
Definition: dummy_misc.cpp:52
void func14()
Definition: dummy_misc.cpp:44
void func50()
Definition: dummy_misc.cpp:169
void func41()
Definition: dummy_misc.cpp:159
void func15()
Definition: dummy_misc.cpp:45
void func43()
Definition: dummy_misc.cpp:161
void func59()
Definition: dummy_misc.cpp:178
int64_t local_fini(struct section_info_t *info)
Definition: dummy_misc.cpp:97
void func58()
Definition: dummy_misc.cpp:177
void func02()
Definition: dummy_misc.cpp:31
void func23()
Definition: dummy_misc.cpp:54
void func24()
Definition: dummy_misc.cpp:55