diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-27 09:49:18 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-27 09:49:18 +0000 |
| commit | 4b7711520bc1a04b05252e59c4c371aa0bcc6793 (patch) | |
| tree | c47affca896769cbedf41312a79ac33859a4c273 /compiler/rustc_codegen_ssa | |
| parent | f5af05b8f7a03a9a1d08fe7faa3c842d585da1dc (diff) | |
| download | rust-4b7711520bc1a04b05252e59c4c371aa0bcc6793.tar.gz rust-4b7711520bc1a04b05252e59c4c371aa0bcc6793.zip | |
Update comments
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/linker.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs index 3d8ff3fbf56..556aa4ed616 100644 --- a/compiler/rustc_codegen_ssa/src/back/linker.rs +++ b/compiler/rustc_codegen_ssa/src/back/linker.rs @@ -1882,11 +1882,11 @@ pub(crate) fn linked_symbols( // We really only need symbols from upstream rlibs to end up in the linked symbols list. // The rest are in separate object files which the linker will always link in and // doesn't have rules around the order in which they need to appear. - // When doing LTO, some of the symbols in the linked symbols list may end up getting - // internalized, which then prevents referencing them from symbols.o. When doing LTO, - // all object files that get linked in will be local object files rather than pulled in - // from rlibs, so an empty linked symbols list works fine to avoid referencing all those - // internalized symbols from symbols.o. + // When doing LTO, some of the symbols in the linked symbols list happen to be + // internalized by LTO, which then prevents referencing them from symbols.o. When doing + // LTO, all object files that get linked in will be local object files rather than + // pulled in from rlibs, so an empty linked symbols list works fine to avoid referencing + // all those internalized symbols from symbols.o. return Vec::new(); } } |
