title: How to write dynamic loader for bare-metal arm-application
body: <p>I'm working on a project based on arm9 processor. We use only bare-metal without any operating system, so unfortunately we have no support for shared libraries / dynamic loader yet.</p>
  
  <p>I would like to be able to have libraries loaded for example from SD card, which can also call the functions from the main application.</p>
  
  <p>My first try was to use linker overlay capability (placing the library in specific absolutely positioned sections), but here is a problem with calling main app functions as I mentioned earlier -> with each change of the main application the libraries has to be recompiled again to be able to callback.</p>
  
  <p>According to this I thing I will have to write my own dynamic loader, but I'm newbie in this area. Could please someone give me any example how to deal with it or how to start with such project? We are using gcc for arm-elf target.</p>
  
  <p>regards
  Jan</p>