From 7f51f7dea484b45296a6350ad41104f54241a23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Fri, 4 Oct 2024 20:19:01 +0200 Subject: [PATCH] Mark fcontext asm functions as hidden visibility These functions should not be exported as dynamic symbols if a library uses boost. --- src/asm/jump_arm64_aapcs_elf_gas.S | 1 + src/asm/jump_arm64_aapcs_macho_gas.S | 1 + src/asm/jump_arm_aapcs_elf_gas.S | 1 + src/asm/jump_arm_aapcs_macho_gas.S | 1 + src/asm/jump_i386_sysv_elf_gas.S | 1 + src/asm/jump_i386_sysv_macho_gas.S | 1 + src/asm/jump_loongarch64_sysv_elf_gas.S | 1 + src/asm/jump_mips32_o32_elf_gas.S | 1 + src/asm/jump_mips64_n64_elf_gas.S | 1 + src/asm/jump_ppc32_sysv_elf_gas.S | 1 + src/asm/jump_ppc32_sysv_macho_gas.S | 1 + src/asm/jump_ppc64_sysv_elf_gas.S | 1 + src/asm/jump_ppc64_sysv_macho_gas.S | 1 + src/asm/jump_riscv64_sysv_elf_gas.S | 1 + src/asm/jump_s390x_sysv_elf_gas.S | 1 + src/asm/jump_x86_64_sysv_elf_gas.S | 1 + src/asm/jump_x86_64_sysv_macho_gas.S | 1 + src/asm/make_arm64_aapcs_elf_gas.S | 1 + src/asm/make_arm64_aapcs_macho_gas.S | 1 + src/asm/make_arm_aapcs_elf_gas.S | 1 + src/asm/make_arm_aapcs_macho_gas.S | 1 + src/asm/make_i386_sysv_elf_gas.S | 1 + src/asm/make_i386_sysv_macho_gas.S | 1 + src/asm/make_loongarch64_sysv_elf_gas.S | 1 + src/asm/make_mips32_o32_elf_gas.S | 1 + src/asm/make_mips64_n64_elf_gas.S | 1 + src/asm/make_ppc32_sysv_elf_gas.S | 1 + src/asm/make_ppc32_sysv_macho_gas.S | 1 + src/asm/make_ppc64_sysv_elf_gas.S | 1 + src/asm/make_ppc64_sysv_macho_gas.S | 1 + src/asm/make_riscv64_sysv_elf_gas.S | 1 + src/asm/make_s390x_sysv_elf_gas.S | 1 + src/asm/make_x86_64_sysv_elf_gas.S | 1 + src/asm/make_x86_64_sysv_macho_gas.S | 1 + src/asm/ontop_arm64_aapcs_elf_gas.S | 1 + src/asm/ontop_arm64_aapcs_macho_gas.S | 1 + src/asm/ontop_arm_aapcs_elf_gas.S | 1 + src/asm/ontop_arm_aapcs_macho_gas.S | 1 + src/asm/ontop_i386_sysv_elf_gas.S | 1 + src/asm/ontop_i386_sysv_macho_gas.S | 1 + src/asm/ontop_loongarch64_sysv_elf_gas.S | 1 + src/asm/ontop_mips32_o32_elf_gas.S | 1 + src/asm/ontop_mips64_n64_elf_gas.S | 1 + src/asm/ontop_ppc32_sysv_elf_gas.S | 1 + src/asm/ontop_ppc32_sysv_macho_gas.S | 1 + src/asm/ontop_ppc64_sysv_elf_gas.S | 1 + src/asm/ontop_ppc64_sysv_macho_gas.S | 1 + src/asm/ontop_riscv64_sysv_elf_gas.S | 1 + src/asm/ontop_s390x_sysv_elf_gas.S | 1 + src/asm/ontop_x86_64_sysv_elf_gas.S | 1 + src/asm/ontop_x86_64_sysv_macho_gas.S | 1 + 51 files changed, 51 insertions(+) diff --git a/src/asm/jump_arm64_aapcs_elf_gas.S b/src/asm/jump_arm64_aapcs_elf_gas.S index cefd1830..7c1f0753 100644 --- a/src/asm/jump_arm64_aapcs_elf_gas.S +++ b/src/asm/jump_arm64_aapcs_elf_gas.S @@ -55,6 +55,7 @@ .text .align 2 .global jump_fcontext +.hidden jump_fcontext .type jump_fcontext, %function jump_fcontext: # prepare stack for GP + FPU diff --git a/src/asm/jump_arm64_aapcs_macho_gas.S b/src/asm/jump_arm64_aapcs_macho_gas.S index 31738f74..12cc0215 100644 --- a/src/asm/jump_arm64_aapcs_macho_gas.S +++ b/src/asm/jump_arm64_aapcs_macho_gas.S @@ -52,6 +52,7 @@ *******************************************************/ .text +.private_extern _jump_fcontext .globl _jump_fcontext .balign 16 _jump_fcontext: diff --git a/src/asm/jump_arm_aapcs_elf_gas.S b/src/asm/jump_arm_aapcs_elf_gas.S index 86efe9d8..9934c089 100644 --- a/src/asm/jump_arm_aapcs_elf_gas.S +++ b/src/asm/jump_arm_aapcs_elf_gas.S @@ -41,6 +41,7 @@ .file "jump_arm_aapcs_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .align 2 .type jump_fcontext,%function .syntax unified diff --git a/src/asm/jump_arm_aapcs_macho_gas.S b/src/asm/jump_arm_aapcs_macho_gas.S index 077c3640..44e7f2a4 100644 --- a/src/asm/jump_arm_aapcs_macho_gas.S +++ b/src/asm/jump_arm_aapcs_macho_gas.S @@ -39,6 +39,7 @@ *******************************************************/ .text +.private_extern _jump_fcontext .globl _jump_fcontext .align 2 _jump_fcontext: diff --git a/src/asm/jump_i386_sysv_elf_gas.S b/src/asm/jump_i386_sysv_elf_gas.S index ed83717c..d00ac4ff 100644 --- a/src/asm/jump_i386_sysv_elf_gas.S +++ b/src/asm/jump_i386_sysv_elf_gas.S @@ -31,6 +31,7 @@ .file "jump_i386_sysv_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .align 2 .type jump_fcontext,@function jump_fcontext: diff --git a/src/asm/jump_i386_sysv_macho_gas.S b/src/asm/jump_i386_sysv_macho_gas.S index 8ab7c6f2..12aa702b 100644 --- a/src/asm/jump_i386_sysv_macho_gas.S +++ b/src/asm/jump_i386_sysv_macho_gas.S @@ -25,6 +25,7 @@ ****************************************************************************************/ .text +.private_extern _jump_fcontext .globl _jump_fcontext .align 2 _jump_fcontext: diff --git a/src/asm/jump_loongarch64_sysv_elf_gas.S b/src/asm/jump_loongarch64_sysv_elf_gas.S index 74c081e0..6f99e719 100644 --- a/src/asm/jump_loongarch64_sysv_elf_gas.S +++ b/src/asm/jump_loongarch64_sysv_elf_gas.S @@ -41,6 +41,7 @@ .file "jump_loongarch64_sysv_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .align 2 .type jump_fcontext,@function jump_fcontext: diff --git a/src/asm/jump_mips32_o32_elf_gas.S b/src/asm/jump_mips32_o32_elf_gas.S index f2b8034d..df0676b6 100644 --- a/src/asm/jump_mips32_o32_elf_gas.S +++ b/src/asm/jump_mips32_o32_elf_gas.S @@ -41,6 +41,7 @@ .file "jump_mips32_o32_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .align 2 .type jump_fcontext,@function .ent jump_fcontext diff --git a/src/asm/jump_mips64_n64_elf_gas.S b/src/asm/jump_mips64_n64_elf_gas.S index e338912b..60027fe6 100644 --- a/src/asm/jump_mips64_n64_elf_gas.S +++ b/src/asm/jump_mips64_n64_elf_gas.S @@ -48,6 +48,7 @@ .file "jump_mips64_n64_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .align 3 .type jump_fcontext,@function .ent jump_fcontext diff --git a/src/asm/jump_ppc32_sysv_elf_gas.S b/src/asm/jump_ppc32_sysv_elf_gas.S index 48e09c93..e3133664 100644 --- a/src/asm/jump_ppc32_sysv_elf_gas.S +++ b/src/asm/jump_ppc32_sysv_elf_gas.S @@ -53,6 +53,7 @@ .file "jump_ppc32_sysv_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .align 2 .type jump_fcontext,@function jump_fcontext: diff --git a/src/asm/jump_ppc32_sysv_macho_gas.S b/src/asm/jump_ppc32_sysv_macho_gas.S index fef90c29..10e61136 100644 --- a/src/asm/jump_ppc32_sysv_macho_gas.S +++ b/src/asm/jump_ppc32_sysv_macho_gas.S @@ -74,6 +74,7 @@ *******************************************************/ .text +.private_extern _jump_fcontext .globl _jump_fcontext .align 2 _jump_fcontext: diff --git a/src/asm/jump_ppc64_sysv_elf_gas.S b/src/asm/jump_ppc64_sysv_elf_gas.S index 28907db3..fc3c6d63 100644 --- a/src/asm/jump_ppc64_sysv_elf_gas.S +++ b/src/asm/jump_ppc64_sysv_elf_gas.S @@ -68,6 +68,7 @@ .file "jump_ppc64_sysv_elf_gas.S" .globl jump_fcontext +.hidden jump_fcontext #if _CALL_ELF == 2 .text .align 2 diff --git a/src/asm/jump_ppc64_sysv_macho_gas.S b/src/asm/jump_ppc64_sysv_macho_gas.S index dcc6c645..e4d8944b 100644 --- a/src/asm/jump_ppc64_sysv_macho_gas.S +++ b/src/asm/jump_ppc64_sysv_macho_gas.S @@ -68,6 +68,7 @@ .text .align 2 +.private_extern _jump_fcontext .globl _jump_fcontext _jump_fcontext: diff --git a/src/asm/jump_riscv64_sysv_elf_gas.S b/src/asm/jump_riscv64_sysv_elf_gas.S index 5417e5d5..879eb7ef 100644 --- a/src/asm/jump_riscv64_sysv_elf_gas.S +++ b/src/asm/jump_riscv64_sysv_elf_gas.S @@ -61,6 +61,7 @@ .text .align 1 .global jump_fcontext +.hidden jump_fcontext .type jump_fcontext, %function jump_fcontext: # prepare stack for GP + FPU diff --git a/src/asm/jump_s390x_sysv_elf_gas.S b/src/asm/jump_s390x_sysv_elf_gas.S index fa714677..59bc58bf 100644 --- a/src/asm/jump_s390x_sysv_elf_gas.S +++ b/src/asm/jump_s390x_sysv_elf_gas.S @@ -46,6 +46,7 @@ .text .align 8 .global jump_fcontext +.hidden jump_fcontext .type jump_fcontext, @function #define ARG_OFFSET 0 diff --git a/src/asm/jump_x86_64_sysv_elf_gas.S b/src/asm/jump_x86_64_sysv_elf_gas.S index ff303bfa..2eff59a3 100644 --- a/src/asm/jump_x86_64_sysv_elf_gas.S +++ b/src/asm/jump_x86_64_sysv_elf_gas.S @@ -44,6 +44,7 @@ .file "jump_x86_64_sysv_elf_gas.S" .text .globl jump_fcontext +.hidden jump_fcontext .type jump_fcontext,@function .align 16 jump_fcontext: diff --git a/src/asm/jump_x86_64_sysv_macho_gas.S b/src/asm/jump_x86_64_sysv_macho_gas.S index afc3e5c1..673daa61 100644 --- a/src/asm/jump_x86_64_sysv_macho_gas.S +++ b/src/asm/jump_x86_64_sysv_macho_gas.S @@ -25,6 +25,7 @@ ****************************************************************************************/ .text +.private_extern _jump_fcontext .globl _jump_fcontext .align 8 _jump_fcontext: diff --git a/src/asm/make_arm64_aapcs_elf_gas.S b/src/asm/make_arm64_aapcs_elf_gas.S index 66cfb2da..8ac825bf 100644 --- a/src/asm/make_arm64_aapcs_elf_gas.S +++ b/src/asm/make_arm64_aapcs_elf_gas.S @@ -55,6 +55,7 @@ .text .align 2 .global make_fcontext +.hidden make_fcontext .type make_fcontext, %function make_fcontext: # shift address in x0 (allocated stack) to lower 16 byte boundary diff --git a/src/asm/make_arm64_aapcs_macho_gas.S b/src/asm/make_arm64_aapcs_macho_gas.S index b30b1e3e..a6a1314c 100644 --- a/src/asm/make_arm64_aapcs_macho_gas.S +++ b/src/asm/make_arm64_aapcs_macho_gas.S @@ -52,6 +52,7 @@ *******************************************************/ .text +.private_extern _make_fcontext .globl _make_fcontext .balign 16 diff --git a/src/asm/make_arm_aapcs_elf_gas.S b/src/asm/make_arm_aapcs_elf_gas.S index 98ae64b4..9616e566 100644 --- a/src/asm/make_arm_aapcs_elf_gas.S +++ b/src/asm/make_arm_aapcs_elf_gas.S @@ -41,6 +41,7 @@ .file "make_arm_aapcs_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .align 2 .type make_fcontext,%function .syntax unified diff --git a/src/asm/make_arm_aapcs_macho_gas.S b/src/asm/make_arm_aapcs_macho_gas.S index c909ae9d..de934075 100644 --- a/src/asm/make_arm_aapcs_macho_gas.S +++ b/src/asm/make_arm_aapcs_macho_gas.S @@ -39,6 +39,7 @@ *******************************************************/ .text +.private_extern _make_fcontext .globl _make_fcontext .align 2 _make_fcontext: diff --git a/src/asm/make_i386_sysv_elf_gas.S b/src/asm/make_i386_sysv_elf_gas.S index c6e0b365..992bae01 100644 --- a/src/asm/make_i386_sysv_elf_gas.S +++ b/src/asm/make_i386_sysv_elf_gas.S @@ -31,6 +31,7 @@ .file "make_i386_sysv_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .align 2 .type make_fcontext,@function make_fcontext: diff --git a/src/asm/make_i386_sysv_macho_gas.S b/src/asm/make_i386_sysv_macho_gas.S index 519e4062..a5890d75 100644 --- a/src/asm/make_i386_sysv_macho_gas.S +++ b/src/asm/make_i386_sysv_macho_gas.S @@ -25,6 +25,7 @@ ****************************************************************************************/ .text +.private_extern _make_fcontext .globl _make_fcontext .align 2 _make_fcontext: diff --git a/src/asm/make_loongarch64_sysv_elf_gas.S b/src/asm/make_loongarch64_sysv_elf_gas.S index 55062702..a067bade 100644 --- a/src/asm/make_loongarch64_sysv_elf_gas.S +++ b/src/asm/make_loongarch64_sysv_elf_gas.S @@ -41,6 +41,7 @@ .file "make_loongarch64_sysv_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .align 2 .type make_fcontext,@function make_fcontext: diff --git a/src/asm/make_mips32_o32_elf_gas.S b/src/asm/make_mips32_o32_elf_gas.S index 4e11e3d0..54742f3a 100644 --- a/src/asm/make_mips32_o32_elf_gas.S +++ b/src/asm/make_mips32_o32_elf_gas.S @@ -41,6 +41,7 @@ .file "make_mips32_o32_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .align 2 .type make_fcontext,@function .ent make_fcontext diff --git a/src/asm/make_mips64_n64_elf_gas.S b/src/asm/make_mips64_n64_elf_gas.S index 7bb30b14..40f29a55 100644 --- a/src/asm/make_mips64_n64_elf_gas.S +++ b/src/asm/make_mips64_n64_elf_gas.S @@ -48,6 +48,7 @@ .file "make_mips64_n64_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .align 3 .type make_fcontext,@function .ent make_fcontext diff --git a/src/asm/make_ppc32_sysv_elf_gas.S b/src/asm/make_ppc32_sysv_elf_gas.S index 9616c4ca..0dd77719 100644 --- a/src/asm/make_ppc32_sysv_elf_gas.S +++ b/src/asm/make_ppc32_sysv_elf_gas.S @@ -53,6 +53,7 @@ .file "make_ppc32_sysv_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .align 2 .type make_fcontext,@function make_fcontext: diff --git a/src/asm/make_ppc32_sysv_macho_gas.S b/src/asm/make_ppc32_sysv_macho_gas.S index 1102ee90..e7b0c7a2 100644 --- a/src/asm/make_ppc32_sysv_macho_gas.S +++ b/src/asm/make_ppc32_sysv_macho_gas.S @@ -74,6 +74,7 @@ *******************************************************/ .text +.private_extern _make_fcontext .globl _make_fcontext .align 2 _make_fcontext: diff --git a/src/asm/make_ppc64_sysv_elf_gas.S b/src/asm/make_ppc64_sysv_elf_gas.S index c4d7ee59..f513d363 100644 --- a/src/asm/make_ppc64_sysv_elf_gas.S +++ b/src/asm/make_ppc64_sysv_elf_gas.S @@ -68,6 +68,7 @@ .file "make_ppc64_sysv_elf_gas.S" .globl make_fcontext +.hidden make_fcontext #if _CALL_ELF == 2 .text .align 2 diff --git a/src/asm/make_ppc64_sysv_macho_gas.S b/src/asm/make_ppc64_sysv_macho_gas.S index dd7bf2c5..d8cdd2d0 100644 --- a/src/asm/make_ppc64_sysv_macho_gas.S +++ b/src/asm/make_ppc64_sysv_macho_gas.S @@ -67,6 +67,7 @@ *******************************************************/ .text +.private_extern _make_fcontext .globl _make_fcontext _make_fcontext: ; save return address into R6 diff --git a/src/asm/make_riscv64_sysv_elf_gas.S b/src/asm/make_riscv64_sysv_elf_gas.S index 5322e0fd..6d97c59e 100644 --- a/src/asm/make_riscv64_sysv_elf_gas.S +++ b/src/asm/make_riscv64_sysv_elf_gas.S @@ -61,6 +61,7 @@ .text .align 1 .global make_fcontext +.hidden make_fcontext .type make_fcontext, %function make_fcontext: # shift address in a0 (allocated stack) to lower 16 byte boundary diff --git a/src/asm/make_s390x_sysv_elf_gas.S b/src/asm/make_s390x_sysv_elf_gas.S index 4dd423e2..4d6aa62c 100644 --- a/src/asm/make_s390x_sysv_elf_gas.S +++ b/src/asm/make_s390x_sysv_elf_gas.S @@ -46,6 +46,7 @@ .text .align 8 .global make_fcontext +.hidden make_fcontext .type make_fcontext, @function #define ARG_OFFSET 0 diff --git a/src/asm/make_x86_64_sysv_elf_gas.S b/src/asm/make_x86_64_sysv_elf_gas.S index df947243..7561c089 100644 --- a/src/asm/make_x86_64_sysv_elf_gas.S +++ b/src/asm/make_x86_64_sysv_elf_gas.S @@ -44,6 +44,7 @@ .file "make_x86_64_sysv_elf_gas.S" .text .globl make_fcontext +.hidden make_fcontext .type make_fcontext,@function .align 16 make_fcontext: diff --git a/src/asm/make_x86_64_sysv_macho_gas.S b/src/asm/make_x86_64_sysv_macho_gas.S index 5d6c5431..06357f67 100644 --- a/src/asm/make_x86_64_sysv_macho_gas.S +++ b/src/asm/make_x86_64_sysv_macho_gas.S @@ -25,6 +25,7 @@ ****************************************************************************************/ .text +.private_extern _make_fcontext .globl _make_fcontext .align 8 _make_fcontext: diff --git a/src/asm/ontop_arm64_aapcs_elf_gas.S b/src/asm/ontop_arm64_aapcs_elf_gas.S index 665ca5a2..8e40fc7d 100644 --- a/src/asm/ontop_arm64_aapcs_elf_gas.S +++ b/src/asm/ontop_arm64_aapcs_elf_gas.S @@ -55,6 +55,7 @@ .text .align 2 .global ontop_fcontext +.hidden ontop_fcontext .type ontop_fcontext, %function ontop_fcontext: # prepare stack for GP + FPU diff --git a/src/asm/ontop_arm64_aapcs_macho_gas.S b/src/asm/ontop_arm64_aapcs_macho_gas.S index a387d06d..8babe470 100644 --- a/src/asm/ontop_arm64_aapcs_macho_gas.S +++ b/src/asm/ontop_arm64_aapcs_macho_gas.S @@ -52,6 +52,7 @@ *******************************************************/ .text +.private_extern _ontop_fcontext .global _ontop_fcontext .balign 16 _ontop_fcontext: diff --git a/src/asm/ontop_arm_aapcs_elf_gas.S b/src/asm/ontop_arm_aapcs_elf_gas.S index 59ad5ca9..8c6c9020 100644 --- a/src/asm/ontop_arm_aapcs_elf_gas.S +++ b/src/asm/ontop_arm_aapcs_elf_gas.S @@ -41,6 +41,7 @@ .file "ontop_arm_aapcs_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .align 2 .type ontop_fcontext,%function .syntax unified diff --git a/src/asm/ontop_arm_aapcs_macho_gas.S b/src/asm/ontop_arm_aapcs_macho_gas.S index 3633aca6..07e63fb2 100644 --- a/src/asm/ontop_arm_aapcs_macho_gas.S +++ b/src/asm/ontop_arm_aapcs_macho_gas.S @@ -39,6 +39,7 @@ *******************************************************/ .text +.private_extern _ontop_fcontext .globl _ontop_fcontext .align 2 _ontop_fcontext: diff --git a/src/asm/ontop_i386_sysv_elf_gas.S b/src/asm/ontop_i386_sysv_elf_gas.S index a60ce62d..ea7a75b9 100644 --- a/src/asm/ontop_i386_sysv_elf_gas.S +++ b/src/asm/ontop_i386_sysv_elf_gas.S @@ -31,6 +31,7 @@ .file "ontop_i386_sysv_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .align 2 .type ontop_fcontext,@function ontop_fcontext: diff --git a/src/asm/ontop_i386_sysv_macho_gas.S b/src/asm/ontop_i386_sysv_macho_gas.S index 3a88372b..c129e8e0 100644 --- a/src/asm/ontop_i386_sysv_macho_gas.S +++ b/src/asm/ontop_i386_sysv_macho_gas.S @@ -25,6 +25,7 @@ ****************************************************************************************/ .text +.private_extern _ontop_fcontext .globl _ontop_fcontext .align 2 _ontop_fcontext: diff --git a/src/asm/ontop_loongarch64_sysv_elf_gas.S b/src/asm/ontop_loongarch64_sysv_elf_gas.S index c6ea0448..ed392e8a 100644 --- a/src/asm/ontop_loongarch64_sysv_elf_gas.S +++ b/src/asm/ontop_loongarch64_sysv_elf_gas.S @@ -41,6 +41,7 @@ .file "ontop_loongarch64_sysv_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .align 2 .type ontop_fcontext,@function ontop_fcontext: diff --git a/src/asm/ontop_mips32_o32_elf_gas.S b/src/asm/ontop_mips32_o32_elf_gas.S index c69203c6..e6306cc3 100644 --- a/src/asm/ontop_mips32_o32_elf_gas.S +++ b/src/asm/ontop_mips32_o32_elf_gas.S @@ -41,6 +41,7 @@ .file "ontop_mips32_o32_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .align 2 .type ontop_fcontext,@function .ent ontop_fcontext diff --git a/src/asm/ontop_mips64_n64_elf_gas.S b/src/asm/ontop_mips64_n64_elf_gas.S index 68087b05..e73e0395 100644 --- a/src/asm/ontop_mips64_n64_elf_gas.S +++ b/src/asm/ontop_mips64_n64_elf_gas.S @@ -48,6 +48,7 @@ .file "ontop_mips64_n64_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .align 3 .type ontop_fcontext,@function .ent ontop_fcontext diff --git a/src/asm/ontop_ppc32_sysv_elf_gas.S b/src/asm/ontop_ppc32_sysv_elf_gas.S index 464d99d5..8aa350a4 100644 --- a/src/asm/ontop_ppc32_sysv_elf_gas.S +++ b/src/asm/ontop_ppc32_sysv_elf_gas.S @@ -53,6 +53,7 @@ .file "ontop_ppc32_sysv_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .align 2 .type ontop_fcontext,@function ontop_fcontext: diff --git a/src/asm/ontop_ppc32_sysv_macho_gas.S b/src/asm/ontop_ppc32_sysv_macho_gas.S index a7461717..ee6f5b72 100644 --- a/src/asm/ontop_ppc32_sysv_macho_gas.S +++ b/src/asm/ontop_ppc32_sysv_macho_gas.S @@ -74,6 +74,7 @@ *******************************************************/ .text +.private_extern _ontop_fcontext .globl _ontop_fcontext .align 2 _ontop_fcontext: diff --git a/src/asm/ontop_ppc64_sysv_elf_gas.S b/src/asm/ontop_ppc64_sysv_elf_gas.S index cd97f456..46cf30d8 100644 --- a/src/asm/ontop_ppc64_sysv_elf_gas.S +++ b/src/asm/ontop_ppc64_sysv_elf_gas.S @@ -68,6 +68,7 @@ .file "ontop_ppc64_sysv_elf_gas.S" .globl ontop_fcontext +.hidden ontop_fcontext #if _CALL_ELF == 2 .text .align 2 diff --git a/src/asm/ontop_ppc64_sysv_macho_gas.S b/src/asm/ontop_ppc64_sysv_macho_gas.S index a9fe8cf5..5cd6359e 100644 --- a/src/asm/ontop_ppc64_sysv_macho_gas.S +++ b/src/asm/ontop_ppc64_sysv_macho_gas.S @@ -68,6 +68,7 @@ .text .align 2 +.private_extern _ontop_fcontext .globl _ontop_fcontext _ontop_fcontext: diff --git a/src/asm/ontop_riscv64_sysv_elf_gas.S b/src/asm/ontop_riscv64_sysv_elf_gas.S index 61ab46bc..f57d1f39 100644 --- a/src/asm/ontop_riscv64_sysv_elf_gas.S +++ b/src/asm/ontop_riscv64_sysv_elf_gas.S @@ -61,6 +61,7 @@ .text .align 1 .global ontop_fcontext +.hidden ontop_fcontext .type ontop_fcontext, %function ontop_fcontext: # prepare stack for GP + FPU diff --git a/src/asm/ontop_s390x_sysv_elf_gas.S b/src/asm/ontop_s390x_sysv_elf_gas.S index 6a464aa3..3a0d864e 100644 --- a/src/asm/ontop_s390x_sysv_elf_gas.S +++ b/src/asm/ontop_s390x_sysv_elf_gas.S @@ -46,6 +46,7 @@ .text .align 8 .global ontop_fcontext +.hidden ontop_fcontext .type ontop_fcontext, @function #define ARG_OFFSET 0 diff --git a/src/asm/ontop_x86_64_sysv_elf_gas.S b/src/asm/ontop_x86_64_sysv_elf_gas.S index c3892b8b..e3e4bdf8 100644 --- a/src/asm/ontop_x86_64_sysv_elf_gas.S +++ b/src/asm/ontop_x86_64_sysv_elf_gas.S @@ -40,6 +40,7 @@ .file "ontop_x86_64_sysv_elf_gas.S" .text .globl ontop_fcontext +.hidden ontop_fcontext .type ontop_fcontext,@function .align 16 ontop_fcontext: diff --git a/src/asm/ontop_x86_64_sysv_macho_gas.S b/src/asm/ontop_x86_64_sysv_macho_gas.S index 49755c69..7d15b5ba 100644 --- a/src/asm/ontop_x86_64_sysv_macho_gas.S +++ b/src/asm/ontop_x86_64_sysv_macho_gas.S @@ -25,6 +25,7 @@ ****************************************************************************************/ .text +.private_extern _ontop_fcontext .globl _ontop_fcontext .align 8 _ontop_fcontext: