From: Mark Wooding Date: Fri, 28 Apr 2023 13:04:44 +0000 (+0100) Subject: base/asm-common.h: Sink the `PIC' stuff a little. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/f2fb936ad489269da59b7250d4aeacec1779dc97 base/asm-common.h: Sink the `PIC' stuff a little. --- 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 ///--------------------------------------------------------------------------