Cannot open linker script file riscv.ld
#1
I downloaded pulp-riscv-gnu-toolchain and did installation(PULP). When i try to compile a program using riscv32-unknown-elf-gcc, I get the following error

/opt/riscv/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/bin/ld: cannot open linker script file riscv.ld: No such file or directory

collect2: error: ld returned 1 exit status
Reply
#2
Yes that is a known bug with the pulp-gcc port (not having a default working linker script). You need to pass your linker script with `-T your-linker-script.ld`
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)