3 Copyright (c) Alex Ionescu. All rights reserved.
11 Preprocessor definitions to put code and data into the INIT section.
15 Timo Kreuzer (timo.kreuzer@reactos.org)
23 #define INIT_SECTION __attribute__((section ("INIT")))
24 #define INIT_FUNCTION __attribute__((section ("INIT")))
26 #elif defined(_MSC_VER)
28 #pragma comment(linker, "/SECTION:INIT,ERW")
29 #define INIT_SECTION __declspec(allocate("INIT"))
30 #if (_MSC_VER >= 1800) // Visual Studio 2013 / version 12.0
31 #define INIT_FUNCTION __declspec(code_seg("INIT"))
33 #pragma section("INIT", read,execute,discard)
39 #error Invalid compiler!