From ad5fec3b3a1e529a7056e15f271851bd0dfb10fa Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 9 Oct 2008 17:31:43 +0000 Subject: * 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. --- gas/config/tc-i386.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gas/config/tc-i386.c') 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) -- cgit v1.1