| commit | 12737b7f7290218e93ac658d1ea24f7adf997143 | [log] [tgz] |
|---|---|---|
| author | George Rimar <grimar@accesssoftek.com> | Thu Feb 25 08:40:26 2016 +0000 |
| committer | George Rimar <grimar@accesssoftek.com> | Thu Feb 25 08:40:26 2016 +0000 |
| tree | 5d57b681cab6863d43966192ef4384623fad48a0 | |
| parent | 3d3d0f41516dcef0992bedb37d35ce6db1b31847 [diff] |
[ELF] - Referencing __start or __stop should keep the section from GC. This fixes the https://llvm.org/bugs/show_bug.cgi?id=22906 bug. In GNU Binutils, a reference to start or stop is sufficient to prevent the section from being garbage collected. Patch implements the same behavior for lld. Differential revision: http://reviews.llvm.org/D17502 llvm-svn: 261840