mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
e31ae982c4
commit
39a300fd08
|
|
@ -1,3 +1,10 @@
|
|||
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.
|
||||
|
||||
2018-10-26 Release Manager
|
||||
|
||||
* GCC 6.5.0 released.
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ along with GCC; see the file COPYING3. If not see
|
|||
#undef LOCAL_LABEL_PREFIX
|
||||
#define LOCAL_LABEL_PREFIX "."
|
||||
|
||||
/* Always enable "-fpic" for Xtensa Linux. */
|
||||
#define XTENSA_ALWAYS_PIC 1
|
||||
/* Don't enable "-fpic" for Xtensa uclinux. */
|
||||
#define XTENSA_ALWAYS_PIC 0
|
||||
|
||||
#undef TARGET_LIBC_HAS_FUNCTION
|
||||
#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
|
||||
|
|
|
|||
Loading…
Reference in New Issue