From 148c364305b6d96766336c3a09f033064765f074 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 28 Apr 2023 14:05:06 +0100 Subject: [PATCH] base/asm-common.h: Move ELF section-type business into the main ELF block. --- base/asm-common.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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) -- 2.11.0