On Wed, Jun 24, 2020 at 02:00:57PM +0300, Nikos Dragazis wrote: > On 24/6/20 11:59 π.μ., Florian Weimer wrote: > > For many targets, the link editor still performs > >relaxation. To turn this off, you will have to link the executable with > >-shared, I think, with some hackery to produce an executable that can > >actually be run. > You are right. This is what is happening in my case. So, the problem is > not the compiler, is the static linker. And there is no option that can > turn off relaxations on the static linker. There is the --no-relax option to ld (pass it as -Wl,--no-relax from GCC), but turing off all relaxation may have unintended consequences. Segher