[PATCH v2] gcc: xtensa: don't force PIC for uclinux target

Max Filippov jcmvbkbc@gmail.com
Tue Nov 6 00:02:00 GMT 2018


On Mon, Nov 5, 2018 at 3:18 PM augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
>
> On Mon, Nov 5, 2018 at 11:07 AM Max Filippov <jcmvbkbc@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  <jcmvbkbc@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



More information about the Gcc-patches mailing list