Make the debug info in some tests more realistic.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 Mar 2018 17:14:41 +0000 (17:14 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 Mar 2018 17:14:41 +0000 (17:14 +0000)
commit78fad32d8341dde5ccfcbb7793316147ebddba85
tree8649ee15844e5c0d7968b5eba43b026a27b78b47
parent236cdaf84c684a985fa501721bf99b93ce2614da
Make the debug info in some tests more realistic.

Currently lld just parses the .debug_line section assuming that there
is only one compile unit. That assumption is false (PR36793).

I have a patch that changes lld to iterate over the compile units and
parse the portions of the .debug_line they point to (which fixes
PR36793).

A problem is that we will then need a compiler unit pointing to
.debug_line for lld to see it.

It seems like bfd has the same restriction.

This patch updates existing tests to add a minimal compile unit so
that they still work with PR36793 fixed.

llvm-svn: 328215
lld/test/ELF/Inputs/conflict-debug.s
lld/test/ELF/Inputs/undef-debug.s
lld/test/ELF/compressed-debug-conflict.s
lld/test/ELF/undef-broken-debug.test