|
【Linux】
PX30 UBOOT 数组大小限制
发表于 2021-3-26 15:58:12
浏览:10657
|
回复:2
打印
只看该作者
[复制链接]
楼主
本帖最后由 jukeboge 于 2021-3-26 15:59 编辑
SDK:px30_linux_release_20210304
硬件平台:px30-lvds-ubuntu.mk evb-px30
问题描述:SDK uboot代码中定义数组const unsigned char buffer[200*1024],px30_linux_release_20210304目录下执行:./build.sh uboot,报错,如果修改数组大小为100*1024则能正常编译通过,错误信息如下:
- CC examples/standalone/hello_world.o
- CC examples/standalone/stubs.o
- LD examples/standalone/libstubs.o
- LD examples/standalone/hello_world
- OBJCOPY examples/standalone/hello_world.bin
- OBJCOPY examples/standalone/hello_world.srec
- LD u-boot
- arch/arm/lib/built-in.o: In function `copy_loop':
- /home/jukeboge/proj/px30_linux_release_20210304/u-boot/arch/arm/lib/relocate_64.S:59:(.text+0xc8): relocation truncated to fit: R_AARCH64_ADR_PREL_LO21 against symbol `__rel_dyn_end' defined in .bss_start section in u-boot
- Makefile:1276: recipe for target 'u-boot' failed
- make: *** [u-boot] Error 1
- ====Build uboot failed!====
- jukeboge@apple:~/proj/px30_linux_release_20210304$
复制代码
|
|