cmd/link: doesn't propagate -I flags to the external linker #22446
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Suggested
Issues that may be good for new contributors looking for work to do.
Milestone
What version of Go are you using (
go version
)?1.9.2
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?linux_amd64
The problem
When
link
decides to use an external linker, it turns the-r
flags it received into-rpath
flags for the external linker. However, it doesn't pass the-I
flag through to the external linker:Also,
--enable-new-dtags
should probably be passed to external GNU ld-compatible linkers for better fidelity with the internal ELF linker.The text was updated successfully, but these errors were encountered: