Compiling using arm-none-eabi-gcc and linking library liba.a error

I got this error because my binary cannot fit the ROM.

My first error was:

address 0x34000 of arm_flash.elf section `.mmu_tbl' is not within region `ps7_ram_0`

Then I've got the same list of undefined reference errors.

I need to reduce the binary size, by removing new keywords, and all dynamic memory allocation from my C++ code.


Try executing this:

arm-none-eabi-gcc --specs=rdimon.specs -lgcc -lc -lm -lrdimon -o hello hello.c

Your toolkit seems to provide the librdimon.a, a library which provides the basic standard C functions.