base/asm-common.h: Move ELF section-type business into the main ELF block.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:05:06 +0000 (14:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:05:06 +0000 (14:05 +0100)
base/asm-common.h

index 3687624..5a5063a 100644 (file)
 #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)