https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97409

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #7 from Jim Wilson <wilson at gcc dot gnu.org> ---
To follow up on what Andreas mentioned, it appears that the user is trying to
use a linux gcc with an embedded elf binutils which will not work.  They aren't
fully compatible.  One of the differences is the set of supported emulations.

rohan:2069$ riscv64-unknown-elf-ld -mfoo
riscv64-unknown-elf-ld: unrecognised emulation mode: foo
Supported emulations: elf64lriscv elf32lriscv
rohan:2070$ riscv64-unknown-linux-gnu-ld -mfoo
riscv64-unknown-linux-gnu-ld: unrecognised emulation mode: foo
Supported emulations: elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64
elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32
rohan:2071$ 

So as Andreas mentioned, you need to use the same target for binutils as for
gcc.

Reply via email to