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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
            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 <[email protected]>
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to