%rename endfile old_endfile
%rename startfile old_startfile
%rename link old_link

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

*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: crtend%O%s ecrtn%O%s}

*link:
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -u __vectors -u download_entry -N }

