diff options
Diffstat (limited to 'include/defs.h')
| -rw-r--r-- | include/defs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/defs.h b/include/defs.h new file mode 100644 index 0000000..9932af1 --- /dev/null +++ b/include/defs.h @@ -0,0 +1,14 @@ +#ifndef DEFS_H +#define DEFS_H + +#ifdef STAGE1 + #define BLSEC_TEXT __attribute__((section(".stage1.text"))) + #define BLSEC_DATA __attribute__((section(".stage1.data"))) +#elif STAGE2 + #define BLSEC_DATA __attribute__((section(".stage2.data"))) + #define BLSEC_DATA __attribute__((section(".stage2.data"))) +#else + #error "You must define a stage to compile the libraries!" +#endif + +#endif // DEFS_H |
