Cannot represent relocation type BFD_RELOC_X86_64_GOTPC64

416 Views Asked by At

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

1

There are 1 best solutions below

8
On

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