From f2fb936ad489269da59b7250d4aeacec1779dc97 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 28 Apr 2023 14:04:44 +0100 Subject: [PATCH] base/asm-common.h: Sink the `PIC' stuff a little. --- base/asm-common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/base/asm-common.h b/base/asm-common.h index fdf90eca..36876248 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -95,11 +95,6 @@ name: #if __ELF__ -// Special arrangements for position-independent code. -#if __PIC__ || __PIE__ -# define WANT_PIC 1 -#endif - // Section selection. #define RODATA .section .rodata, "a", _SECTTY(progbits) @@ -108,6 +103,11 @@ name: #define TYPE_OBJ(name) .type name, STT_OBJECT #define SIZE_OBJ(name) .size name, . - name +// Special arrangements for position-independent code. +#if __PIC__ || __PIE__ +# define WANT_PIC 1 +#endif + #endif ///-------------------------------------------------------------------------- -- 2.11.0