diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-02-25 08:40:26 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-02-25 08:40:26 +0000 |
commit | 12737b7f7290218e93ac658d1ea24f7adf997143 (patch) | |
tree | 5d57b681cab6863d43966192ef4384623fad48a0 /llvm/lib/CodeGen/MachineFunctionPass.cpp | |
parent | 3d3d0f41516dcef0992bedb37d35ce6db1b31847 (diff) | |
download | llvm-12737b7f7290218e93ac658d1ea24f7adf997143.zip llvm-12737b7f7290218e93ac658d1ea24f7adf997143.tar.gz llvm-12737b7f7290218e93ac658d1ea24f7adf997143.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions