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:
f2fb936
)
base/asm-common.h: Move ELF section-type business into the main ELF block.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:05:06 +0000
(14:05 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 28 Apr 2023 13:05:06 +0000
(14:05 +0100)
base/asm-common.h
patch
|
blob
|
blame
|
history
diff --git
a/base/asm-common.h
b/base/asm-common.h
index 3687624862cfcda7a242e446bd7afe0cf332194b..5a5063aca63f3fcc04a10c63dc40e8a1cf8a3525 100644
(file)
--- 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
#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); \
// Announcing an internal function.
#define INTFUNC(name) \
TYPE_FUNC(name); \
@@
-95,6
+86,13
@@
name:
#if __ELF__
#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)
// Section selection.
#define RODATA .section .rodata, "a", _SECTTY(progbits)