]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc: xtensa: don't force PIC for uclinux target releases/gcc-6
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 7 Nov 2018 20:52:55 +0000 (20:52 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Wed, 7 Nov 2018 20:52:55 +0000 (20:52 +0000)
commit39a300fd08a80963ce13bd1598f9062935751e0f
tree2eb38110b3c11d6de8c83badd844672d33bc201b
parente31ae982c446804d1b259554203401392b078364
gcc: xtensa: don't force PIC for uclinux target

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-07  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2018-11-05  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/uclinux.h (XTENSA_ALWAYS_PIC): Change to 0.

From-SVN: r265890
gcc/ChangeLog
gcc/config/xtensa/uclinux.h