grimar added a comment. How about adding a test case? See `test\ELF\invalid\invalid-relocation-x64.test` for example. Repository: rLLD LLVM Linker CHANGES SINCE LAST ACTION https://reviews.llvm.org/D66277/new/ https://reviews.llvm.org/D66277