s390x: move .needed functions for subsections to machine.c