Y
Y
Yu Yu2016-11-08 10:26:21
ARM
Yu Yu, 2016-11-08 10:26:21

How is the firmware binary built in gcc?

I am reading an article:
https://habrahabr.ru/post/194816/
There, at the beginning of the story, the firmware is assembled by the ld linker.
However, in the subsequent part of the article (libgcc) I came across the text:


The correct solution is to replace the linker call directly with a gcc call, which will already figure out what needs to be linked where.

That is, it is possible to build a binary without using ld? Please explain what is meant here. What gcc command did he use? Should I change the linker file?
---
Regarding the error
And then how to tell the linker where to get the object file with the division code from the library?

undefined reference to `__aeabi_uidiv'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question