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
..
2020-10-01 15:45:07 +00:00
2020-11-07 21:46:27 +00:00
2019-11-01 11:28:43 +00:00
2020-03-29 02:40:03 +00:00
2020-10-24 15:58:42 +00:00
2019-12-21 21:05:53 +00:00
2020-01-25 21:16:45 +00:00
2020-10-16 17:03:27 +00:00
2020-10-24 17:08:59 +00:00
2020-08-22 20:52:02 +00:00
2020-02-19 17:09:08 +00:00
2020-07-10 19:58:07 +00:00
2020-06-24 01:51:05 +00:00
2020-06-17 10:42:20 +00:00
2019-11-20 23:56:20 +00:00
2020-08-24 18:13:44 +00:00
2020-06-22 07:46:24 +00:00
2020-08-07 08:41:14 +00:00
2020-06-17 11:57:48 +00:00
2020-10-22 01:05:34 +00:00
2020-10-27 23:03:15 +00:00
2020-06-09 05:43:51 +00:00