how to prevent gcc from generating GOT references

Alexander Monakov amonakov@ispras.ru
Mon Jan 21 08:26:00 GMT 2019


On Mon, 21 Jan 2019, David Livshin wrote:

> 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 symbols.

On Ubuntu GCC is configured to emit PIE code by default (via
--enable-default-pie gcc configure option).  You can override it with -no-pie
command line flag.

Alexander



More information about the Gcc-help mailing list