Page 1 of 1

How can I make a linker.ld script insert symbols into asm?

Posted: Mon Oct 28, 2019 4:20 am
by j4cobgarby
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

Posted: Mon Oct 28, 2019 5:19 am
by iansjack
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