From: Martin Storsjö Date: Tue, 4 Jun 2024 11:13:08 +0000 (+0300) Subject: aarch64: Add a missing no-op define of SIGN_LR_LINUX_ONLY (#838) X-Git-Tag: upstream/3.4.7~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c9e8368e49804c4f7c35ac9f0d7c1d0d533308b;p=platform%2Fupstream%2Flibffi.git aarch64: Add a missing no-op define of SIGN_LR_LINUX_ONLY (#838) This is needed at least if building for Linux, with a toolchain that doesn't default to having PAC enabled, fixing build errors since 45d284f2d066cc3a080c5be88e51b4d934349797. --- diff --git a/src/aarch64/internal.h b/src/aarch64/internal.h index c39f9cb..50fa5c1 100644 --- a/src/aarch64/internal.h +++ b/src/aarch64/internal.h @@ -88,6 +88,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define AUTH_LR_AND_RET retab #define AUTH_LR_WITH_REG(x) autib lr, x #define BRANCH_AND_LINK_TO_REG blraaz + #define SIGN_LR_LINUX_ONLY #define BRANCH_TO_REG braaz #define PAC_CFI_WINDOW_SAVE /* Linux PAC Support */ @@ -136,6 +137,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define AUTH_LR_AND_RET ret #define AUTH_LR_WITH_REG(x) #define BRANCH_AND_LINK_TO_REG blr + #define SIGN_LR_LINUX_ONLY #define BRANCH_TO_REG br #define PAC_CFI_WINDOW_SAVE #endif /* HAVE_ARM64E_PTRAUTH */