Clarification required on gcc option -mcmodel=medium

616 views Asked by At

While compiling one of our dependent tool, a long list relocation error is showing up while linking:

SomeLibrary.a(SomeObject.o)(.text._bla_bla_bla): error: relocation overflow
collect2: error: ld returned 1 exit status
cook: command g++: exit status 1

The dependent tool is being compiled on gcc-8.x and our tool is compiled on gcc-4.x.

This problem is specifically showing up on IBM PowerPC platform, where RHEL is compiling fine.

We are being suggested to use -mcmodel=medium while compiling our code.

Could not find much help online. Any specific purpose of using this option?

0

There are 0 answers