> The linker “could" do it I think. For example ld64 is pattern matching to > "optimize away” load from the GOT when possible, replacing then with nop and > propagating the constant address. ELF linker implement that too. In the case of lld the target hook is relaxGot. Cheers, Rafael