[ELF] Replace "symbol '...' has no type" diagnostic with "relocation ... cannot be...
authorFangrui Song <i@maskray.me>
Sun, 31 Oct 2021 20:12:26 +0000 (13:12 -0700)
committerFangrui Song <i@maskray.me>
Sun, 31 Oct 2021 20:12:26 +0000 (13:12 -0700)
commit9f8ffaaa0bddcefeec15a3df9858fd50b05fcbae
tree9aeadbe2f32fc3cd5aa6bab0df0088272b997ba0
parent03a4f1f3b8a0e3acc6ac1f786446c9abcffe1f89
[ELF] Replace "symbol '...' has no type" diagnostic with "relocation ... cannot be used against symbol '...'"

The "symbol 'foo' has no type" diagnostic tries to inform that copy
relocation/canonical PLT entry cannot be used, but the diagnostic is often
incorrect and confusing.
lld/ELF/Relocations.cpp
lld/test/ELF/copy-errors.s
lld/test/ELF/tls-weak-undef.s
lld/test/ELF/x86-64-dyn-rel-error.s