Created attachment 11447 [details] Proposed patch Running gold with a plugin but no input files results in a segmentation fault: % ld.gold -plugin /usr/lib64/LLVMgold.so does-not-exist.o ld.gold: error: cannot open does-not-exist.o: No such file or directory Segmentation fault (core dumped) % ld.gold -plugin /usr/libexec/gcc/x86_64-redhat-linux/8/liblto_plugin.so.0.0.0 does-not-exist.o ld.gold: error: cannot open does-not-exist.o: No such file or directory Segmentation fault (core dumped) It appears that plugin.cc:Plugin_hook assumes that the entry parameter will always be set. The uploaded patch is a suggestion for how this might be fixed.