aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2008-10-09 17:31:43 +0000
committerEric Botcazou <ebotcazou@libertysurf.fr>2008-10-09 17:31:43 +0000
commitad5fec3b3a1e529a7056e15f271851bd0dfb10fa (patch)
tree291496f36be6171335bae736003855fdece60068 /gas/config/tc-i386.c
parentdcb1a1e279928080fb42b2270f5a3180f81e4133 (diff)
downloadgdb-ad5fec3b3a1e529a7056e15f271851bd0dfb10fa.zip
gdb-ad5fec3b3a1e529a7056e15f271851bd0dfb10fa.tar.gz
gdb-ad5fec3b3a1e529a7056e15f271851bd0dfb10fa.tar.bz2
* dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame.
* config/tc-i386.h (md_fix_up_eh_frame): Define on Solaris. (i386_solaris_fix_up_eh_frame): Declare. * config/tc-i386.c (i386_solaris_fix_up_eh_frame): New function.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r--gas/config/tc-i386.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 539ea79..df76ae9 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -10105,6 +10105,15 @@ i386_elf_section_type (const char *str, size_t len)
return -1;
}
+#ifdef TE_SOLARIS
+void
+i386_solaris_fix_up_eh_frame (segT sec)
+{
+ if (flag_code == CODE_64BIT)
+ elf_section_type (sec) = SHT_X86_64_UNWIND;
+}
+#endif
+
#ifdef TE_PE
void
tc_pe_dwarf2_emit_offset (symbolS *symbol, unsigned int size)