Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/mips Even though both gas ...



details:   https://anonhg.NetBSD.org/src/rev/96757f22d10d
branches:  trunk
changeset: 789607:96757f22d10d
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Aug 26 14:24:22 2013 +0000

description:
Even though both gas and ld support .cfi_personality, gcc fails to emit
them so we get DT_TEXTREL problems.
So if pic && SHARED, we force EH_FRAME to be writeable (which is what would
happen if .cfi_personality was not supported).

diffstat:

 external/gpl3/gcc/dist/gcc/config/mips/netbsd.h |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (10 lines):

diff -r c4db1c7b3f63 -r 96757f22d10d external/gpl3/gcc/dist/gcc/config/mips/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h   Mon Aug 26 14:20:53 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h   Mon Aug 26 14:24:22 2013 +0000
@@ -261,3 +261,6 @@
 
 #undef WINT_TYPE
 #define WINT_TYPE "int"
+
+#undef TARGET_WRITABLE_EH_FRAME
+#define TARGET_WRITABLE_EH_FRAME (flag_pic && TARGET_SHARED)



Home | Main Index | Thread Index | Old Index