ruiu added a comment. Shouldn't we simply report an error if both -relocatable and linker script SECTIONS command are used? It is hard to imagine that there's a valid use case for that combination. https://reviews.llvm.org/D24801