File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,25 @@ possible. We reserve the right to make different implementation choices where
1717it is appropriate for LLD. Intentional deviations will be documented in this
1818file.
1919
20+ Linker Script Specification
21+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
23+ There are two lld options related to setting the linker script,
24+ `--script=<file> ` and `--default-script=<file> `. The usage are illustrated below.
25+
26+ ::
27+
28+ # `-T` is the alias for `--script` option.
29+ lld -T linker_script.lds
30+
31+ # `-dT` is the alias for `--default-script` option.
32+ lld -dT linker_script.lds
33+
34+ When both options are given, `--script=<file> ` takes precedence.
35+ The intended use case of `--default-script ` is to be used by toolchain
36+ configurations, and users can override the script by specifying `--script ` if
37+ needed.
38+
2039Symbol assignment
2140~~~~~~~~~~~~~~~~~
2241
You can’t perform that action at this time.
0 commit comments