https://bugs.freedesktop.org/show_bug.cgi?id=63632
--- Comment #8 from Andy Furniss adf.lists@gmail.com --- (In reply to comment #7)
The problem on my gentoo system was that I had removed --enable-shared from my llvm configure script a few days ago, so I was still linking with an older LLVM.
Can you check that you are passing --enable-shared when configuring LLVM?
I wasn't, but passing it does not prevent the segfault - will look into libelf.