Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
42 | pj | 1 | /* Project: OSLib |
2 | * Description: The OS Construction Kit |
||
3 | * Date: 1.6.2000 |
||
4 | * Idea by: Luca Abeni & Gerardo Lamastra |
||
5 | * |
||
6 | * OSLib is an SO project aimed at developing a common, easy-to-use |
||
7 | * low-level infrastructure for developing OS kernels and Embedded |
||
8 | * Applications; it partially derives from the HARTIK project but it |
||
9 | * currently is independently developed. |
||
10 | * |
||
11 | * OSLib is distributed under GPL License, and some of its code has |
||
12 | * been derived from the Linux kernel source; also some important |
||
13 | * ideas come from studying the DJGPP go32 extender. |
||
14 | * |
||
15 | * We acknowledge the Linux Community, Free Software Foundation, |
||
16 | * D.J. Delorie and all the other developers who believe in the |
||
17 | * freedom of software and ideas. |
||
18 | * |
||
19 | * For legalese, check out the included GPL license. |
||
20 | */ |
||
21 | |||
22 | /* This file derives from linux/linkage.h. It allows a transparent naming |
||
23 | * between COFF and ELF executable models. We use ELF when we cross-compile |
||
24 | * OSLib from Linux with Linux GCC |
||
25 | */ |
||
26 | |||
27 | #ifdef __LINUX__ |
||
28 | #define SYMBOL_NAME_STR(X) #X |
||
29 | #define SYMBOL_NAME(X) X |
||
30 | #ifdef __STDC__ |
||
31 | #define SYMBOL_NAME_LABEL(X) X##: |
||
32 | #else |
||
33 | #define SYMBOL_NAME_LABEL(X) X/**/: |
||
34 | #endif |
||
35 | #else |
||
36 | #define SYMBOL_NAME_STR(X) "_"#X |
||
37 | #ifdef __STDC__ |
||
38 | #define SYMBOL_NAME(X) _##X |
||
39 | #define SYMBOL_NAME_LABEL(X) _##X##: |
||
40 | #else |
||
41 | #define SYMBOL_NAME(X) _/**/X |
||
42 | #define SYMBOL_NAME_LABEL(X) _/**/X/**/: |
||
43 | #endif |
||
44 | #endif |