Difference between revisions of "Ld"
From Wiki at Neela Nurseries
m (Add link to Stackoverflow post regarding ld "keep" keyword.) |
m (Add links to docs on how to place C global variables at a particular address.) |
||
Line 15: | Line 15: | ||
* https://stackoverflow.com/questions/9827157/what-does-keep-mean-in-a-linker-script | * https://stackoverflow.com/questions/9827157/what-does-keep-mean-in-a-linker-script | ||
+ | |||
+ | 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 | ||
<!-- odne komentar --> | <!-- odne komentar --> |
Revision as of 23:38, 5 June 2024
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