Don't gc .interp section.
authorRui Ueyama <ruiu@google.com>
Fri, 4 Nov 2016 22:25:39 +0000 (22:25 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 4 Nov 2016 22:25:39 +0000 (22:25 +0000)
commita9ee8d6eccfbe01c6c25829a26dd7c9c4286d222
treea9001b4cfd450219b03b2c66ea690734a2f18d9b
parent4ce3e0c31ad6e40ee744fb879eeed2d3f3d0162a
Don't gc .interp section.

This change fixes a bug that was introduced by r285851.
r285851 converted .interp section as an output section to an input
section. But I forgot to make it a "Live" section, so if -gc-section
is given, it was garbage collected.

llvm-svn: 286025
lld/ELF/SyntheticSections.cpp
lld/test/ELF/gc-sections-synthetic.s [new file with mode: 0644]