freebsd-dev/contrib/llvm-project
Dimitry Andric 2418469b60 Merge commit 8df4e6094 from llvm git (by Fangrui Song):
[ELF] Don't consider SHF_ALLOC ".debug*" sections debug sections

  Fixes PR48071

  * The Rust compiler produces SHF_ALLOC `.debug_gdb_scripts` (which
    normally does not have the flag)
  * `.debug_gdb_scripts` sections are removed from `inputSections` due
    to --strip-debug/--strip-all
  * When processing --gc-sections, pieces of a SHF_MERGE section can be
    marked live separately

  `=>` segfault when marking liveness of a `.debug_gdb_scripts` which
  is not split into pieces (because it is not in `inputSections`)

  This patch circumvents the problem by not treating SHF_ALLOC
  ".debug*" as debug sections (to prevent --strip-debug's stripping)
  (which is still useful on its own).

  Reviewed By: grimar

  Differential Revision: https://reviews.llvm.org/D91291

This should fix lld segfaulting when linking the rust-based parts of the
devel/py-maturin port.

Reported by:	Nick Venenga <nijave@gmail.com>
PR:		250783
MFC after:	3 days
2020-11-12 19:25:31 +00:00
..
clang Merge commit 35ecc7fe4 from llvm git (by Hubert Tong): 2020-10-13 19:42:22 +00:00
compiler-rt Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-09-16 16:58:29 +00:00
libcxx [libcxx] Fix atomic type for mips32 on gcc to work w/out needing libatomic 2020-10-18 17:31:10 +00:00
libunwind Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-09-16 16:58:29 +00:00
lld Merge commit 8df4e6094 from llvm git (by Fangrui Song): 2020-11-12 19:25:31 +00:00
lldb Merge commit 1ce07cd614be from llvm git (by me): 2020-08-22 10:55:55 +00:00
llvm Merge commit 354d3106c from llvm git (by Kai Luo): 2020-11-08 12:47:35 +00:00
openmp Merge commit 47b0262d3 from llvm git (by me): 2020-09-07 20:10:03 +00:00
FREEBSD-Xlist Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-07-31 21:22:58 +00:00