How can I make a linker.ld script insert symbols into asm?
-
- Member
- Posts: 64
- Joined: Fri Jan 26, 2018 11:43 am
How can I make a linker.ld script insert symbols into asm?
I read something on the wiki saying that it's a good idea to make my linker script "insert symbols indicating the start and end addresses of specific sections", which I'd then be able to reference from assembly code. How is this done? I did look at linker script documentation, but I found it hard to find anything.
Re: How can I make a linker.ld script insert symbols into as
The linker will define symbols, not insert them. You can then use those symbols in your program.
http://www.scoberlin.de/content/media/h ... html#SEC14
http://www.scoberlin.de/content/media/h ... html#SEC14