Files
clang-p2996/lld/ELF
Peter Collingbourne 0a2678e9aa ELF: --gdb-index: Change findSection to return an InputSection.
We should only ever expect this function to return a regular
InputSection; I would not expect a function definition to be in a
MergeInputSection or EhInputSection. We were previously crashing
in writeTo if this function returned a section that was not an
InputSection because we do not set OutSec for such sections.

This can happen in practice if a function is defined in an empty
section which shares its offset-in-file with a MergeInputSection,
as in the provided test case.

A better fix for this bug would be to fix the
DWARFUnit::collectAddressRanges() interface to provide section
information (see D33183), but this at least fixes the crash.

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

llvm-svn: 303089
2017-05-15 17:59:21 +00:00
..
2017-05-02 22:42:24 +00:00
2017-03-27 03:42:55 +00:00
2017-02-23 02:28:28 +00:00
2017-04-28 21:35:02 +00:00
2017-03-30 22:57:49 +00:00
2017-05-11 22:02:41 +00:00
2017-05-05 19:24:58 +00:00
2017-03-01 23:00:10 +00:00
2016-12-18 14:06:06 +00:00
2016-11-05 22:58:01 +00:00
2017-05-11 23:26:03 +00:00
2017-05-04 14:54:48 +00:00
2017-05-11 23:26:03 +00:00
2017-05-12 17:00:07 +00:00
2017-05-11 23:31:06 +00:00