On Mon, Nov 5, 2018 at 3:18 PM augustine.sterl...@gmail.com <augustine.sterl...@gmail.com> wrote: > > On Mon, Nov 5, 2018 at 11:07 AM Max Filippov <jcmvb...@gmail.com> wrote: >> >> xtensa-uclinux uses bFLT executable file format that cannot relocate >> fields representing offsets from data to code. C++ objects built as PIC >> use offsets to encode FDE structures. As a result C++ exception handling >> doesn't work correctly on xtensa-uclinux. Don't use PIC by default on >> xtensa-uclinux. >> >> gcc/ >> 2018-11-04 Max Filippov <jcmvb...@gmail.com> >> >> * config/xtensa/uclinux.h (XTENSA_ALWAYS_PIC): Change to 0. > > Approved.
Thanks! Applied to trunk. Will also backport it to gcc-8, gcc-7 and gcc-6 branches. -- Max