Internal Linker
Good information about linkers and loaders can be found in the book Linkers and Loaders at http://www.iecc.com/linker/
Steps
- Get familiar with the fpc sources
- Analyse what is available in the fpc sources. A couple of years ago a basic linker for go32v2 was already working.
- Start coding, the first thing to add is a scriptable memory/file layout, like the ld-scripts.
- Add PE coff support
- Add static ELF support
- Add shared ELF support
- Add optimizations for smartlinking
- Add internal object format
- Keep an eye on memory usage and overall speed.
From the Free Pascal wiki, page "Internal Linker", as it stood on 2013-05-03 after a change by Chronos, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
