Last change
on this file since 6359 was 5999, checked in by vboxsync, 17 years ago |
The Giant CDDL Dual-License Header Change.
|
-
Property svn:eol-style
set to
native
|
File size:
1.3 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | *
|
---|
3 | * supc++ -- VirtualBox Guest Additions for Linux:
|
---|
4 | * VirtualBox timesync daemon for Linux
|
---|
5 | *
|
---|
6 | * Support for linking a C++ static library into a C programme
|
---|
7 | *
|
---|
8 | */
|
---|
9 |
|
---|
10 | /*
|
---|
11 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
12 | *
|
---|
13 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
14 | * available from http://www.virtualbox.org. This file is free software;
|
---|
15 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
16 | * General Public License (GPL) as published by the Free Software
|
---|
17 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
18 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
19 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #include <stdio.h>
|
---|
23 |
|
---|
24 | /* C++ hack */
|
---|
25 | int __gxx_personality_v0 = 0xdeadbeef;
|
---|
26 |
|
---|
27 | /* long long hacks (as far as i can see, gcc emits the refs to those
|
---|
28 | symbols, notwithstanding the fact that those aren't referenced
|
---|
29 | anywhere) */
|
---|
30 | /* I will have to think of something better than that printf sometime. */
|
---|
31 | void __divdi3 (void);
|
---|
32 |
|
---|
33 | void __divdi3 (void)
|
---|
34 | {
|
---|
35 | printf ("__divdi3 called from %p\n", __builtin_return_address (0));
|
---|
36 | /* exit(1); */ /* Should we do this? */
|
---|
37 | }
|
---|
38 |
|
---|
39 | void __moddi3 (void);
|
---|
40 |
|
---|
41 | void __moddi3 (void)
|
---|
42 | {
|
---|
43 | printf ("__moddi3 called from %p\n", __builtin_return_address (0));
|
---|
44 | /* exit(1); */
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.