%rename startfile old_startfile
%rename endfile   old_endfile

*startfile:
%{!qrtems: %(old_startfile)} \
%{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s}}

*endfile:
%{!qrtems: %(old_endfile)} \
%{qrtems: crtend.o%s ecrtn.o%s}
