undefined reference to `__dyn_sym_start' since commit bf3ef53bb7f5 ("firmware: Enable FW_PIC by default")

Bin Meng bmeng.cn at gmail.com
Sat Jul 3 08:07:01 PDT 2021


On Sat, Jul 3, 2021 at 7:37 PM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> make \
>          PLATFORM=kendryte/k210 \
>          FW_PAYLOAD=y \
>          FW_PAYLOAD_OFFSET=0x20000 \
>          FW_PAYLOAD_PATH=u-boot-dtb.bin
>
> fails with

I don't see any problem with building it with current opensbi/master.
I am using GCC 10.2.0.

>
> /usr/riscv64-linux-gnu/bin/ld:
> opensbi/build/platform/kendryte/k210/firmware/fw_payload.o:
> in function `.L0 ':
> opensbi/firmware/fw_base.S:77: undefined reference to `__rel_dyn_start'
> /usr/riscv64-linux-gnu/bin/ld: opensbi/firmware/fw_base.S:78:
> undefined reference to `__rel_dyn_end'
> /usr/riscv64-linux-gnu/bin/ld: opensbi/firmware/fw_base.S:89:
> undefined reference to `__dyn_sym_start'
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:351:
> opensbi/build/platform/kendryte/k210/firmware/fw_payload.elf] Error 1
>
> Bisecting point to:
> commit bf3ef53bb7f5 ("firmware: Enable FW_PIC by default")
>
> Please, re-enable building the K210 platform.
>
> Please, provide a continuous integration test to void similar problems
> in future.

This was on my todo list for some time, but did not have time to implement it.

Regards,
Bin



More information about the opensbi mailing list