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]

Re: how to prevent gcc from generating GOT references


On Wed, 2019-01-23 at 09:16 +0200, David Livshin wrote:
> On 1/22/19 5:51 PM, Alexander Monakov wrote:
> > 
> > 
> Unfortunately I myself don't have an easy access to Ununtu system - 
> using it occasionally on the cloud. Also, after compiling with the 
> -[f]no-pie flags I was unable to link the generated objects - don't 
> remember the exact wording of the error message but it was requesting
> to 
> recompile the sources using -fPIC.

Pretty sure there are similar options you need to pass to the linker
too. 

-- Brian


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