Andrew Katson
Andrew Katson

Reputation: 149

Cannot represent relocation type BFD_RELOC_X86_64_GOTPC64

I get this error whenever I try to use -mcmodel=large does anyone know why this is?

I am on Windows 10 using gcc 10.2.0

Upvotes: 0

Views: 609

Answers (1)

Andrew Katson
Andrew Katson

Reputation: 149

I think this was because I was passing it as a compiler flag instead of a linker flag.

Upvotes: 0

Related Questions