arm-none-eabi-ld - Undefined Reference for malloc, strcpy, sprintf, vsprintf
Hi,
I'm currently trying to port our verification platform software from armcc to the free toolchain arm-none-eabi- to save on licensing costs.
So far I have converted all my C code to make it gcc compatible (Eg - Replace __irq with __attribute_
I have written the init code and linker script in the expected format.
However during linking, arm-none-eabi-ld gives me undefined reference to some standard C functions.
pcie_ep_
/fw/code/val.c:40: undefined reference to `strcpy'
fw/code/val.c:94: undefined reference to `vsprintf'
I have read though the forum about any possible solution and I believe adding the newlib library should solve this issue.
However when I add --spec=nano.specs to my linker I get the error
arm-none-eabi-ld: unrecognized option '--spec=nano.specs'
Reference https:/
Can you please provide me with any ideas on solving this issue?
Regards,
Vinit
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Preud'homme
- Solved:
- Last query:
- Last reply: