diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2023-04-06 15:36:15 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2023-04-06 15:50:54 +0000 |
commit | 04b4655997d2d10e3f3748f3a1a1d84c4ae95740 (patch) | |
tree | 15cc28c52662de082cb13d57c7f1019e7f91a1fd | |
parent | f87a9f51ef2b5a02b663c02ddd2ac663a5a45a88 (diff) | |
download | src-04b4655997d2d10e3f3748f3a1a1d84c4ae95740.tar.gz src-04b4655997d2d10e3f3748f3a1a1d84c4ae95740.zip |
Mark EENTRY as .text
To allow it to be used before ENTRY we need to ensure the symbol is
in the .text section. It also needs to be aligned correctly.
While here mark the symbol type as a function as in the ENTRY macro.
Reported by: jrtc27
Sponsored by: Arm Ltd
-rw-r--r-- | sys/arm64/include/asm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/include/asm.h b/sys/arm64/include/asm.h index 32b79d256e80..b1d4ba50be9a 100644 --- a/sys/arm64/include/asm.h +++ b/sys/arm64/include/asm.h @@ -50,7 +50,7 @@ #define ENTRY(sym) \ .globl sym; LENTRY(sym) #define EENTRY(sym) \ - .globl sym; sym: + .globl sym; .text; .align 2; .type sym,#function; sym: #define LEND(sym) .ltorg; .cfi_endproc; .size sym, . - sym #define END(sym) LEND(sym) #define EEND(sym) |