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 08c544d commit 83dce45Copy full SHA for 83dce45
src/cmd/link/internal/ld/lib.go
@@ -1842,6 +1842,16 @@ func (ctxt *Link) hostlink() {
1842
out = append(out[:i], out[i+len(noPieWarning):]...)
1843
}
1844
1845
+ if ctxt.IsDarwin() {
1846
+ const bindAtLoadWarning = "ld: warning: -bind_at_load is deprecated on macOS\n"
1847
+ if i := bytes.Index(out, []byte(bindAtLoadWarning)); i >= 0 {
1848
+ // -bind_at_load is deprecated with ld-prime, but needed for
1849
+ // correctness with older versions of ld64. Swallow the warning.
1850
+ // TODO: maybe pass -bind_at_load conditionally based on C
1851
+ // linker version.
1852
+ out = append(out[:i], out[i+len(bindAtLoadWarning):]...)
1853
+ }
1854
1855
ctxt.Logf("%s", out)
1856
1857
0 commit comments