riscv --enable-targets=all on 32-bit host
authorAlan Modra <amodra@gmail.com>
Fri, 12 Mar 2021 11:47:39 +0000 (22:17 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 12 Mar 2021 12:31:01 +0000 (23:01 +1030)
Attempting to build --enable-targets=all on a 32-bit host results in a
number of errors like the following.

eelf32lriscv.o: in function `gldelf32lriscv_after_allocation':
eelf32lriscv.c:98: undefined reference to `bfd_elf32_riscv_restart_relax_sections'

That's due to needing --enable-64-bit-bfd to get the riscv BFD support
built.

* Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
(ALL_64_EMULATION_SOURCES): ..here.
* Makefile.in: Regenerate.

ld/ChangeLog
ld/Makefile.am
ld/Makefile.in

index 35c5e203f5d17f8b488db8484c51421da85efd0d..fe68e6ded9befe780482e21b9fd3662ac3cd179b 100644 (file)
@@ -1,3 +1,9 @@
+2021-03-12  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
+       (ALL_64_EMULATION_SOURCES): ..here.
+       * Makefile.in: Regenerate.
+
 2021-03-12  ClĂ©ment Chigot  <clement.chigot@atos.net>
 
        * emultempl/aix.em: Ensure .tdata section is removed
index 3fcaab71dcd7983cce4b6050d40d3f3c62f74066..606a9179b199e3beb119cf78e6f07b35c8c0e5f5 100644 (file)
@@ -262,12 +262,6 @@ ALL_EMULATION_SOURCES = \
        eelf32ppcsim.c \
        eelf32ppcvxworks.c \
        eelf32ppcwindiss.c \
-       eelf32lriscv.c \
-       eelf32lriscv_ilp32f.c \
-       eelf32lriscv_ilp32.c \
-       eelf32briscv.c \
-       eelf32briscv_ilp32f.c \
-       eelf32briscv_ilp32.c \
        eelf32rl78.c \
        eelf32rx.c \
        eelf32rx_linux.c \
@@ -416,6 +410,12 @@ ALL_64_EMULATION_SOURCES = \
        eelf32ltsmipn32.c \
        eelf32ltsmipn32_fbsd.c \
        eelf32mipswindiss.c \
+       eelf32lriscv.c \
+       eelf32lriscv_ilp32f.c \
+       eelf32lriscv_ilp32.c \
+       eelf32briscv.c \
+       eelf32briscv_ilp32f.c \
+       eelf32briscv_ilp32.c \
        eelf64_aix.c \
        eelf64bpf.c \
        eelf64_ia64.c \
index 27b18c1185ebb10b5279558aefeec69d8bef6e6d..f1be6bc320f20dda070901d1b825f25cbb3672b2 100644 (file)
@@ -752,12 +752,6 @@ ALL_EMULATION_SOURCES = \
        eelf32ppcsim.c \
        eelf32ppcvxworks.c \
        eelf32ppcwindiss.c \
-       eelf32lriscv.c \
-       eelf32lriscv_ilp32f.c \
-       eelf32lriscv_ilp32.c \
-       eelf32briscv.c \
-       eelf32briscv_ilp32f.c \
-       eelf32briscv_ilp32.c \
        eelf32rl78.c \
        eelf32rx.c \
        eelf32rx_linux.c \
@@ -905,6 +899,12 @@ ALL_64_EMULATION_SOURCES = \
        eelf32ltsmipn32.c \
        eelf32ltsmipn32_fbsd.c \
        eelf32mipswindiss.c \
+       eelf32lriscv.c \
+       eelf32lriscv_ilp32f.c \
+       eelf32lriscv_ilp32.c \
+       eelf32briscv.c \
+       eelf32briscv_ilp32f.c \
+       eelf32briscv_ilp32.c \
        eelf64_aix.c \
        eelf64bpf.c \
        eelf64_ia64.c \
This page took 0.028512 seconds and 4 git commands to generate.