From 8afcd1092f3dc822aa255685b98c815eb3642819 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 9 Oct 2019 17:13:05 +0200 Subject: lm32: try to build kernel for qemu --- toolchain/binutils/patches/2.32/lm32.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 toolchain/binutils/patches/2.32/lm32.patch (limited to 'toolchain/binutils') diff --git a/toolchain/binutils/patches/2.32/lm32.patch b/toolchain/binutils/patches/2.32/lm32.patch new file mode 100644 index 000000000..176f09982 --- /dev/null +++ b/toolchain/binutils/patches/2.32/lm32.patch @@ -0,0 +1,25 @@ +diff -Nur binutils-2.32.orig/bfd/config.bfd binutils-2.32/bfd/config.bfd +--- binutils-2.32.orig/bfd/config.bfd 2019-01-19 17:01:32.000000000 +0100 ++++ binutils-2.32/bfd/config.bfd 2019-10-08 18:05:48.695171206 +0200 +@@ -787,7 +787,7 @@ + ;; + + lm32-*-*linux*) +- targ_defvec=lm32_elf32_fdpic_vec ++ targ_defvec=lm32_elf32_vec + targ_selvecs=lm32_elf32_vec + ;; + +diff -Nur binutils-2.32.orig/ld/configure.tgt binutils-2.32/ld/configure.tgt +--- binutils-2.32.orig/ld/configure.tgt 2019-01-19 17:01:33.000000000 +0100 ++++ binutils-2.32/ld/configure.tgt 2019-10-08 18:04:50.170788572 +0200 +@@ -388,7 +388,8 @@ + ;; + iq2000-*-elf) targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" + ;; +-lm32-*-*linux*) targ_emul=elf32lm32fd ;; ++lm32-*-*linux*) targ_emul=elf32lm32 ++ ;; + lm32-*-*) targ_emul=elf32lm32 ; targ_extra_emuls="elf32lm32fd" + ;; + m32c-*-elf | m32c-*-rtems*) -- cgit v1.2.3