File 0325-Allow-disabling-retpoline-in-interpreter-loop.patch of Package erlang

From 3a812a499f9a40951f1ba6b7315473c5e149fd8b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Tue, 20 Nov 2018 13:21:32 +0100
Subject: [PATCH 2/2] Allow disabling retpoline in interpreter loop

We only do this when the user has explicitly told us it's okay to
partially disable mitigation (spectre-mitigation=incomplete). The
macro is inert if it isn't.
---
 erts/emulator/beam/beam_emu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 1ad13c32e3..0f6e6533fc 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -1227,6 +1227,7 @@ init_emulator(void)
  * the instructions' C labels to the loader.
  * The second call starts execution of BEAM code. This call never returns.
  */
+ERTS_NO_RETPOLINE
 void process_main(void)
 {
     static int init_done = 0;
-- 
2.16.4

openSUSE Build Service is sponsored by