Fix a bug in the s390x linker when discarding all inpuit files.