From: Mark Wooding Date: Fri, 28 Apr 2023 13:05:06 +0000 (+0100) Subject: base/asm-common.h: Move ELF section-type business into the main ELF block. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/148c364305b6d96766336c3a09f033064765f074 base/asm-common.h: Move ELF section-type business into the main ELF block. --- diff --git a/base/asm-common.h b/base/asm-common.h index 36876248..5a5063ac 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -45,15 +45,6 @@ #define _ENDLIT .text .L$_subsec #define _LTORG .L$_subsec = .L$_subsec + 2; .text .L$_subsec -// ELF section types. -#if __ELF__ -# if CPUFAM_ARMEL -# define _SECTTY(ty) %ty -# else -# define _SECTTY(ty) @ty -# endif -#endif - // Announcing an internal function. #define INTFUNC(name) \ TYPE_FUNC(name); \ @@ -95,6 +86,13 @@ name: #if __ELF__ +// Section types. +#if CPUFAM_ARMEL +# define _SECTTY(ty) %ty +#else +# define _SECTTY(ty) @ty +#endif + // Section selection. #define RODATA .section .rodata, "a", _SECTTY(progbits)