[ELF] Simplify a condition with config->copyRelocs. NFC

GitOrigin-RevId: 7aafe467d2aa6307d34c5762b8c3bf843d713737
diff --git a/ELF/InputFiles.cpp b/ELF/InputFiles.cpp
index e8a4188..9399bb4 100644
--- a/ELF/InputFiles.cpp
+++ b/ELF/InputFiles.cpp
@@ -966,7 +966,7 @@
     // `nullptr` for the normal case. However, if -r or --emit-relocs is
     // specified, we need to copy them to the output. (Some post link analysis
     // tools specify --emit-relocs to obtain the information.)
-    if (!config->relocatable && !config->emitRelocs)
+    if (!config->copyRelocs)
       return nullptr;
     InputSection *relocSec = make<InputSection>(*this, sec, name);
     // If the relocated section is discarded (due to /DISCARD/ or