[llvm-bugs] [Bug 43736] New: Please backport r372038 to 9.0
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Oct 20 13:46:42 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43736
Bug ID: 43736
Summary: Please backport r372038 to 9.0
Product: compiler-rt
Version: 9.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: mgorny at gentoo.org
CC: caij2003 at gmail.com, llvm-bugs at lists.llvm.org,
phosek at chromium.org
Blocks: 43360
The crtbegin/crtend files in 9.0.0 are broken, and cause -rtlib=compiler-rt to
create executables that crash immediately. Please backport the fix listed
below.
@Jian Cai, @Petr, can you approve?
---
commit 155a43edb0c161bb5122ad4eeee991b43a0278bc
Author: Jian Cai <caij2003 at gmail.com>
Date: 2019-09-16 23:47:47 +0200
[compiler-rt][crt] make test case nontrivial in check_cxx_section_exists
Summary:
.init_array gets optimized away when building with -O2 and as a result,
check_cxx_section_exists failed to pass -DCOMPILER_RT_HAS_INITFINI_ARRAY
when building crtbegin.o and crtend.o, which causes binaries linked with
them encounter segmentation fault. See https://crbug.com/855759 for
details. This change prevents .init_array section to be optimized away
even with -O2 or higher optimization level.
Subscribers: dberris, mgorny, #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D67628
llvm-svn: 372038
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=43360
[Bug 43360] [meta] 9.0.1 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191020/4d7c32ba/attachment.html>
More information about the llvm-bugs
mailing list