From 828fc9e9502802615bb089991a6078f2047be516 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 7 Aug 2024 19:58:30 -0700 Subject: [PATCH] common-defs: allow override of END assembly macro GCC 14 on ARM does not recognize the `.end` directive anymore, it seems. --- arch/common/common-defs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/common/common-defs.h b/arch/common/common-defs.h index 8ba97bf..2940ba3 100644 --- a/arch/common/common-defs.h +++ b/arch/common/common-defs.h @@ -40,6 +40,8 @@ ENT(__proc) \ PROC_NAME(__proc): \ SETUP_FRAME(__proc) + +#ifndef END #ifdef __clang__ #define END(__proc) #else @@ -47,6 +49,7 @@ PROC_NAME(__proc): \ .end __proc; \ .size __proc,.-__proc; #endif +#endif #ifdef EXPORT_UNPREFIXED #define ALIAS(__alias, __real) \