OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 12:45 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How can I make a linker.ld script insert symbols into asm?
PostPosted: Mon Oct 28, 2019 4:20 am 
Offline
Member
Member

Joined: Fri Jan 26, 2018 11:43 am
Posts: 64
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.


Top
 Profile  
 
 Post subject: Re: How can I make a linker.ld script insert symbols into as
PostPosted: Mon Oct 28, 2019 5:19 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], SemrushBot [Bot] and 121 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group