Ld
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GNU and LLVM linker notes.
Overview
This NN page a starting point for notes, links to external references and examples of `ld` linker scripts. As of page creation time 2024 Q1 there appear to be two major linker variants: GNU ld and LLVM linker implementation.
Introductory References
- https://lld.llvm.org/ELF/linker_script.html . . . LLVM linker documentation
Use of 'KEEP' key word in linker scripts:
How to place C global variables at a particular address:
- https://global.epson.com/products_and_drivers/semicon/products/micro_controller/pdf/lnk_03e.pdf
- https://stackoverflow.com/questions/39998485/how-to-access-variable-define-in-linker-script-in-c
A reference to gcc linker documentation: