chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b0c2da1
)
base/asm-common.h: Sink the `PIC' stuff a little.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:04:44 +0000
(14:04 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:04:44 +0000
(14:04 +0100)
base/asm-common.h
patch
|
blob
|
blame
|
history
diff --git
a/base/asm-common.h
b/base/asm-common.h
index fdf90ecac07a981526aa0835aeaa68cf19eb589e..3687624862cfcda7a242e446bd7afe0cf332194b 100644
(file)
--- a/
base/asm-common.h
+++ b/
base/asm-common.h
@@
-95,11
+95,6
@@
name:
#if __ELF__
#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)
// 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
#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
///--------------------------------------------------------------------------
#endif
///--------------------------------------------------------------------------