linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
316 stars 333 forks source link

Define DEBUG compile fails #96

Closed microhobby closed 4 years ago

microhobby commented 7 years ago

Can anyone help me with a doubt, why when I define DEBUG on file the compiler doesn't work?

arm-linux-gnueabihf-ld.bfd: u-boot-spl section.rodata' will not fit in region .sram' /home/matheus/Downloads/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: region.sram' overflowed by 9612 bytes scripts/Makefile.spl:291: recipe for target 'spl/u-boot-spl' failed make[1]: * [spl/u-boot-spl] Error 1 Makefile:1343: recipe for target 'spl/u-boot-spl' failed make: * [spl/u-boot-spl] Error 2`

neithernut commented 7 years ago

Without having a closer look: the space available for the boot-loader is quite restricted. Enabling debugging will naturally cause the binary to contain markers and other additional information. Hence, the executable code may end up being bigger than the section allocated for it, which pretty much is what your linker tries to tell you here.