From 38e38cad07c9ad0f5f249de46b837fe368d6dc92 Mon Sep 17 00:00:00 2001 From: Andrii Batyiev Date: Mon, 29 Apr 2024 14:14:11 +0300 Subject: [PATCH] Fix x32 build on x86-64 --- src/asm/ontop_i386_sysv_elf_gas.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/asm/ontop_i386_sysv_elf_gas.S b/src/asm/ontop_i386_sysv_elf_gas.S index 0cb6168f..a60ce62d 100644 --- a/src/asm/ontop_i386_sysv_elf_gas.S +++ b/src/asm/ontop_i386_sysv_elf_gas.S @@ -24,6 +24,10 @@ * * ****************************************************************************************/ +#ifdef __x86_64__ +#include "ontop_x86_64_sysv_elf_gas.S" +#else + .file "ontop_i386_sysv_elf_gas.S" .text .globl ontop_fcontext @@ -98,3 +102,5 @@ ontop_fcontext: /* Mark that we don't need executable stack. */ .section .note.GNU-stack,"",%progbits + +#endif