This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to prevent gcc from generating GOT references


Hi,

How to prevent gcc from generating @GOT* references,
e.g. instead of
	movq	exit@GOTPCREL(%rip), %rax
to generate
	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 symbols.

Thank you,

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]