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

Xiang W wxjstz at 126.com
Tue Jul 6 06:01:26 PDT 2021


在 2021-07-03星期六的 13:31 +0200,Heinrich Schuchardt写道:
> 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
> 
This is a strange problem. These two symbols __dyn_sym_start
__rel_dyn_end come from the link script firmware/fw_base.ldS.
You try to pull the code again, and then try to compile

Regards,
Xiang W




More information about the opensbi mailing list