ruiu added a comment. Instead of doing this, maybe we should report an error when -gdb-index is used with -r. I don't think there's a valid use case of giving the two flags at the same time. Repository: rLLD LLVM Linker https://reviews.llvm.org/D49513