1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
3 Date: Sat, 12 Dec 2020 13:43:54 +0100
4 Subject: [PATCH] Hack mpi_x64.s to work with -fno-plt
7 lib/freebl/mpi/mpi_x86.s | 23 +++++++++++++++++++++--
8 1 file changed, 21 insertions(+), 2 deletions(-)
10 diff --git a/lib/freebl/mpi/mpi_x86.s b/lib/freebl/mpi/mpi_x86.s
11 index 8f7e2130c326..b3ca1ce5b41b 100644
12 --- a/lib/freebl/mpi/mpi_x86.s
13 +++ b/lib/freebl/mpi/mpi_x86.s
14 @@ -22,22 +22,41 @@ is_sse: .long -1
18 - movl \var@GOTOFF(%ebx),\reg
20 + addl $_GLOBAL_OFFSET_TABLE_, %eax
21 + movl \var@GOTOFF(%eax),\reg
24 - movl \reg,\var@GOTOFF(%ebx)
26 + addl $_GLOBAL_OFFSET_TABLE_, %edx
27 + movl \reg,\var@GOTOFF(%edx)
43 +.type thunk.ax, @function
50 +.type thunk.dx, @function
56 # ebp - 36: caller's esi
57 # ebp - 32: caller's edi