Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 2023 16:05:58 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 04b4655997d2 - main - Mark EENTRY as .text
Message-ID:  <202304061605.336G5wEM013809@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=04b4655997d2d10e3f3748f3a1a1d84c4ae95740

commit 04b4655997d2d10e3f3748f3a1a1d84c4ae95740
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-04-06 15:36:15 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-04-06 15:50:54 +0000

    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
---
 sys/arm64/include/asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304061605.336G5wEM013809>