Bare-metal LoongArch target triple loongarch*-*-elf* contains references
to "loongarch/linux.h" and "loongarch/t-linux", causing build failure for
GCC targeting loongarch32-*-elf*.
This commit removes the extra Linux references, and is tested by building
a cross compiler for the loongarch32-picolibc-elf target.
gcc/ChangeLog:
* config.gcc: removed linux.h and t-linux for loongarch*-*-elf* targets
Signed-off-by: Wu Haotian <rigoligo03@gmail.com>
loongarch*-*-elf*)
tm_file="elfos.h newlib-stdint.h ${tm_file}"
- tm_file="${tm_file} loongarch/elf.h loongarch/linux.h loongarch/loongarch-driver.h"
- tmake_file="${tmake_file} loongarch/t-multilib loongarch/t-linux"
+ tm_file="${tm_file} loongarch/elf.h loongarch/loongarch-driver.h"
+ tmake_file="${tmake_file} loongarch/t-multilib"
gnu_ld=yes
gas=yes