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

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Jul 3 04:31:19 PDT 2021


make \
         PLATFORM=kendryte/k210 \
         FW_PAYLOAD=y \
         FW_PAYLOAD_OFFSET=0x20000 \
         FW_PAYLOAD_PATH=u-boot-dtb.bin

fails with

/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.

Best regards

Heinrich



More information about the opensbi mailing list