Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2023 11:00:48 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b70553860764 - stable/13 - Mark EENTRY as .text
Message-ID:  <202309251100.38PB0mP0052540@gitrepo.freebsd.org>

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

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

commit b705538607640722e1290859dd0a916e6cd1eeb2
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-04-06 15:36:15 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-09-25 08:41:15 +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
    
    (cherry picked from commit 04b4655997d2d10e3f3748f3a1a1d84c4ae95740)
---
 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 1ae22d9e91ee..783e8ee82c66 100644
--- a/sys/arm64/include/asm.h
+++ b/sys/arm64/include/asm.h
@@ -48,7 +48,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?202309251100.38PB0mP0052540>