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

后端 未结 2 1335
[愿得一人]
[愿得一人] 2021-01-02 08:59

I am compiling a hello world program in C on a 64-bit Linux machine. I am using a GCC ARM embedded toolchain to cross compile my program on a FOX G20 V board with an ATMEL A

相关标签:
2条回答
  • 2021-01-02 09:42

    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.

    0 讨论(0)
  • 2021-01-02 09:54

    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.

    0 讨论(0)
提交回复
热议问题