SHA256
1
0
forked from pool/llvm14

Accepting request 1093062 from home:Guillaume_G:branches:devel:tools:compiler

- Add patch to fix segmentation fault on aarch64 - boo#1212264:
  * llvm14-fix-segfault-on-aarch64.patch

OBS-URL: https://build.opensuse.org/request/show/1093062
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm14?expand=0&rev=52
This commit is contained in:
Aaron Puchert 2023-06-14 19:34:37 +00:00 committed by Git OBS Bridge
parent 72d1cce739
commit b6dee0918e
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,31 @@
From 2e1b838a889f9793d4bcd5dbfe10db9796b77143 Mon Sep 17 00:00:00 2001
From: Graham Markall <gmarkall@nvidia.com>
Date: Mon, 3 Apr 2023 11:15:36 -0700
Subject: [PATCH] [RuntimeDyld] RuntimeDyldELF: Clear GOTOffsetMap when
resetting GOT section.
When the GOT section ID is reset, the GOTOffsetMap must also be cleared,
otherwise spurious matches can be located when handling GOT relocations
in subsequently-linked objects.
Fixes Issue #61402 - see https://github.com/llvm/llvm-project/issues/61402.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D146938
---
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 3c7f4ec47eb84..282c357f2de2c 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -2406,6 +2406,7 @@ Error RuntimeDyldELF::finalizeLoad(const ObjectFile &Obj,
}
}
+ GOTOffsetMap.clear();
GOTSectionID = 0;
CurrentGOTIndex = 0;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 13 08:13:42 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Add patch to fix segmentation fault on aarch64 - boo#1212264:
* llvm14-fix-segfault-on-aarch64.patch
-------------------------------------------------------------------
Fri May 5 21:48:49 UTC 2023 - Aaron Puchert <aaronpuchert@alice-dsl.net>

View File

@ -381,6 +381,8 @@ Patch36: clang-test-xfail-gnuless-triple.patch
Patch37: llvm-preserve-symbols-used.patch
# Fix build with Swig 4.1.0: backport of upstream commits 81fc5f7909a4, f0a25fe0b746. (gh#llvm/llvm-project#58018)
Patch38: lldb-swig-4.1.0-build-fix.patch
# Cherry pick from rust llvm project (https://reviews.llvm.org/D146938) - boo#1212264
Patch39: llvm14-fix-segfault-on-aarch64.patch
BuildRequires: binutils-devel >= 2.21.90
BuildRequires: cmake >= 3.13.4
BuildRequires: fdupes
@ -811,6 +813,7 @@ This package contains the development files for Polly.
%patch27 -p2
%patch33 -p2
%patch37 -p2
%patch39 -p2
pushd clang-%{_version}.src
%patch2 -p1