Pan ruochen schrieb:
How can I inform gcc not to refer to the function __ashldi3 since there are no libgcc, libc and libe available in this distribution of gcc.
Note that libgcc is part of gcc. It's intended to code stuff which is too complicated to write it down in the machine description and can easier be stated directly in assembler.
If you remove that part you will have to rewrite the missing pieces or to rewrite parts of the backend like ashldi3 insn.
Georg-Johann