From d4c0ed26ace91cb21fc0a67f088648674052aa3d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 11 Aug 2021 09:10:55 -0700 Subject: doc/go1.17: linker passes -I to extld as -Wl,--dynamic-linker For #22446 Change-Id: I71a30761a28e81c50b7089d5a28be99c736c2dc8 Reviewed-on: https://go-review.googlesource.com/c/go/+/341332 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Heschi Kreinick TryBot-Result: Go Bot --- doc/go1.17.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/go1.17.html b/doc/go1.17.html index d469f400ad..972f9c3559 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -488,6 +488,15 @@ func Foo() bool { and compare functions by code pointer.

+ + +

+ When the linker uses external linking mode, which is the default + when linking a program that uses cgo, and the linker is invoked + with a -I option, the option will now be passed to the + external linker as a -Wl,--dynamic-linker option. +

+

Core library

Cgo

-- cgit v1.2.3-54-g00ecf