This is the mail archive of the
mailing list for the GCC project.
how to prevent gcc from generating GOT references
- From: David Livshin <david dot livshin at dalsoft dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 21 Jan 2019 10:20:23 +0200
- Subject: how to prevent gcc from generating GOT references
How to prevent gcc from generating @GOT* references,
e.g. instead of
movq exit@GOTPCREL(%rip), %rax
movq exit(%rip), %rax
or, perhaps, something more complicated for 64-bit symbols.
It definitely can be done; I am using gcc on Fedora and never saw @GOT*
( and @PLT ) generated. However on Ubinty, gcc often generates these