[uClinux-dev] BINFMT_RELOC error when linking to pthreads
Gavin Lambert
gavinl at compacsort.com
Wed Feb 6 16:49:19 EST 2008
Quoth Paul_Dale at au.securecomputing.com:
> As for workarounds, try to identify the relocation that is causing the
> problem and then code around it. Failing that, try different compiler
> optimisation levels '-O1', '-O2', '-Os', '-O3', '-O0' in that order.
> Then shuffle your segments around (which might stop the message but
> not fix the underlying problem).
The other thing that frequently helps is to disable PIC code, which can be
done by disabling XIP and shared libraries in the vendor config file,
followed by a clean rebuild. Basically you need to make sure that the
resulting binary doesn't have the Has-PIC-GOT flag (according to flthdr).
More information about the uClinux-dev
mailing list