Don't create dynamic relocs for discarded .eh_frame entries.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 7 Apr 2016 14:22:09 +0000 (14:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 7 Apr 2016 14:22:09 +0000 (14:22 +0000)
commit56004c577a05b7cfe504a2251731ebdb4fb0803f
tree7f12686c5c829350e68dd276646ef871ece685a5
parent0ab420570500273e2814a21f65075257b319b59b
Don't create dynamic relocs for discarded .eh_frame entries.

This requires knowing input section offsets in output sections before
scanRelocs. This is generally a good thing and should allow further
simplifications in the creation of dynamic relocations.

llvm-svn: 265673
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Writer.cpp
lld/test/ELF/eh-frame-dyn-rel.s [new file with mode: 0644]