Fix PR28575.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 21 Jul 2016 20:18:30 +0000 (20:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 21 Jul 2016 20:18:30 +0000 (20:18 +0000)
commit2deeb6093d65a9cf2adb81e5a60dd4aa105cabf7
treeed67b26b6cf8053d2abc0b81e282cf065d4e5436
parent9eec550a2bb3ac418523e092f1b864b6a40a9cce
Fix PR28575.

Not all relocations from a .eh_frame that point to an executable
section should be ignored. In particular, the relocation finding the
personality function should not.

This is a reduction from trying to bootstrap a static lld on linux.

llvm-svn: 276329
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/MarkLive.cpp
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/test/ELF/eh-frame-gc2.s [new file with mode: 0644]