package/gcc: fix xtensa uclinux code generation
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 7 Nov 2018 21:20:50 +0000 (13:20 -0800)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 9 Nov 2018 14:51:07 +0000 (15:51 +0100)
commit4debb2fbb7d60ed7f81ddab82d8b48ac9c4c3055
tree49d429e655c4aac016aa1bf149bf4db92abdd48a
parent99989d3b91ef6cadc0c8d1a73203178da9ac6af7
package/gcc: fix xtensa uclinux code generation

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.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gcc/6.4.0/0004-gcc-xtensa-don-t-force-PIC-for-uclinux-target.patch [new file with mode: 0644]
package/gcc/7.3.0/0005-gcc-xtensa-don-t-force-PIC-for-uclinux-target.patch [new file with mode: 0644]
package/gcc/8.2.0/0005-gcc-xtensa-don-t-force-PIC-for-uclinux-target.patch [new file with mode: 0644]