Caution! http://i2.kym-cdn.com/photos/images/facebook/000/234/739/fa5.jpg
While trying to get PIE work on CloudABI for x86-64, I noticed that even
though GNU ld would generate functional binaries, LLD would not. It
turns out that we generate relocations for referencing TLS objects
inside of the text segment, which shouldn't happen.
This change extends the isRelRelative() function to list some additional
relocation types that should be treated as relative. This makes my C
library unit testing binary work on x86-64.
More details: https://llvm.org/bugs/show_bug.cgi?id=27174
Change itself looks ok for me.