base/asm-common.h: Sink the `PIC' stuff a little.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:04:44 +0000 (14:04 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:04:44 +0000 (14:04 +0100)
base/asm-common.h

index fdf90ec..3687624 100644 (file)
@@ -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
 
 ///--------------------------------------------------------------------------