We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bec49c commit fc57cc3Copy full SHA for fc57cc3
src/cmd/link/internal/ld/lib.go
@@ -1902,6 +1902,16 @@ func (ctxt *Link) hostlink() {
1902
out = append(out[:i], out[i+len(noPieWarning):]...)
1903
}
1904
1905
+ if ctxt.IsDarwin() {
1906
+ const bindAtLoadWarning = "ld: warning: -bind_at_load is deprecated on macOS\n"
1907
+ if i := bytes.Index(out, []byte(bindAtLoadWarning)); i >= 0 {
1908
+ // -bind_at_load is deprecated with ld-prime, but needed for
1909
+ // correctness with older versions of ld64. Swallow the warning.
1910
+ // TODO: maybe pass -bind_at_load conditionally based on C
1911
+ // linker version.
1912
+ out = append(out[:i], out[i+len(bindAtLoadWarning):]...)
1913
+ }
1914
1915
ctxt.Logf("%s", out)
1916
1917
0 commit comments