From 9baf0c2a4e94e4d48e265ab5673cd6cc72797a5a Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Thu, 3 Sep 2015 17:52:13 +0000 Subject: [PATCH] - Enable INIT_FUNCTION for HAL while keeping FreeLdr happy and not putting anything into .INIT when compiling mini-HAL for it. svn path=/trunk/; revision=68962 --- reactos/hal/halx86/include/halp.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/reactos/hal/halx86/include/halp.h b/reactos/hal/halx86/include/halp.h index 91388bd06e7..fef8400c9bf 100644 --- a/reactos/hal/halx86/include/halp.h +++ b/reactos/hal/halx86/include/halp.h @@ -4,17 +4,13 @@ #pragma once -#define PLACE_IN_SECTION(s) __attribute__((section (s))) -#ifdef __GNUC__ -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION PLACE_IN_SECTION("pagelk") -#define PAGE_UNLOCKED_FUNCTION PLACE_IN_SECTION("pagepo") +#if defined(__GNUC__) && !defined(_MINIHAL_) +#define INIT_FUNCTION __attribute__((section ("INIT"))) #else -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION -#define PAGE_UNLOCKED_FUNCTION +#define INIT_FUNCTION /* Done via alloc_text for MSC */ #endif + #ifdef _MSC_VER #define REGISTERCALL FASTCALL #else