diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2008-10-09 17:31:43 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@libertysurf.fr> | 2008-10-09 17:31:43 +0000 |
commit | ad5fec3b3a1e529a7056e15f271851bd0dfb10fa (patch) | |
tree | 291496f36be6171335bae736003855fdece60068 /gas/config/tc-i386.c | |
parent | dcb1a1e279928080fb42b2270f5a3180f81e4133 (diff) | |
download | gdb-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.c | 9 |
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) |