about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tenty <daltenty@ibm.com>2024-12-06 10:53:26 -0500
committerDavid Tenty <daltenty@ibm.com>2024-12-06 10:53:26 -0500
commit1ae1f8ce9cb327eaa22454bbf5a8e25123091ffb (patch)
tree6f8ba476b31a8ea2e494a1dad38d7200614abca7
parent18f8657415da5ebc480e63abe03f87d4b4ce4157 (diff)
downloadrust-1ae1f8ce9cb327eaa22454bbf5a8e25123091ffb.tar.gz
rust-1ae1f8ce9cb327eaa22454bbf5a8e25123091ffb.zip
Clarify comment
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index b3bb32bedf4..eb8f7cf6d40 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -2754,8 +2754,10 @@ fn add_upstream_rust_crates(
         .expect("failed to find crate type in dependency format list");
 
     if sess.target.is_like_aix {
-        // Unlike GNU's ld, AIX linker doesn't feature `-soname=...` when output
-        // a shared library. Instead, AIX linker offers `(no)ipath`. See
+        // Unlike ELF linkers, AIX doesn't feature `DT_SONAME` to override
+        // the dependency name when outputing a shared library. Thus, `ld` will
+        // use the full path to shared libraries as the dependency if passed it
+        // by default unless `noipath` is passed.
         // https://www.ibm.com/docs/en/aix/7.3?topic=l-ld-command.
         cmd.link_or_cc_arg("-bnoipath");
     }