summaryrefslogtreecommitdiff
path: root/gcc/config/i386/sol2.h
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-03 12:35:01 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-03 12:35:01 +0000
commit0663323af94cc6725e888c0c682a03f0a23e55fc (patch)
treead8c36c23105d1321bdc32c7610d401955985308 /gcc/config/i386/sol2.h
parent1eedef0cbd2ff804b56290a2bb36108126216bf0 (diff)
downloadgcc-0663323af94cc6725e888c0c682a03f0a23e55fc.tar.gz
* config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/sol2.h')
-rw-r--r--gcc/config/i386/sol2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 6d15ec4c024..4a1883913ee 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -61,6 +61,14 @@ Boston, MA 02111-1307, USA. */
#define FORCE_INIT_SECTION_ALIGN asm (ALIGN_ASM_OP ## "16")
#define FORCE_FINI_SECTION_ALIGN FORCE_INIT_SECTION_ALIGN
+/* Select a format to encode pointers in exception handling data. CODE
+ is 0 for data, 1 for code labels, 2 for function pointers. GLOBAL is
+ true if the symbol may be affected by dynamic relocations. */
+#undef ASM_PREFERRED_EH_DATA_FORMAT
+#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \
+ (flag_pic ? (GLOBAL ? DW_EH_PE_indirect : 0) | DW_EH_PE_datarel \
+ : DW_EH_PE_absptr)
+
/* Add "sun" to the list of symbols defined for SVR4. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES \