diff options
author | Maxim Kuvyrkov <maxim@kugelworks.com> | 2009-11-04 09:52:00 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim@kugelworks.com> | 2009-11-04 09:52:00 +0000 |
commit | 2c678708e6dc01e097a8cae3688a4adf412d978c (patch) | |
tree | f99f4356ed9711198f5b6ff6489d7219529798bc /gas/config/tc-m68k.h | |
parent | d51b88d344bee97bcc464c442d5240183907c598 (diff) | |
download | gdb-2c678708e6dc01e097a8cae3688a4adf412d978c.zip gdb-2c678708e6dc01e097a8cae3688a4adf412d978c.tar.gz gdb-2c678708e6dc01e097a8cae3688a4adf412d978c.tar.bz2 |
2009-11-04 Daniel Jacobowitz <dan@codesourcery.com>
Maxim Kuvyrkov <maxim@codesourcery.com>
* config/tc-m68k.h (CF_DIFF_EXPR_OK): Define to 0 for uClinux.
(CFI_DIFF_LSDA_OK): Define.
* config/te-uclinux.h: New file.
* configure.tgt (m68k-uclinux): Define em.
* dw2gencfi.c (CFI_DIFF_LSDA_OK): New macro.
(dot_cfi_lsda, output_fde): Use instead of CFI_DIFF_EXPR_OK.
Diffstat (limited to 'gas/config/tc-m68k.h')
-rw-r--r-- | gas/config/tc-m68k.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/config/tc-m68k.h b/gas/config/tc-m68k.h index 30d5c8b..bcf4607 100644 --- a/gas/config/tc-m68k.h +++ b/gas/config/tc-m68k.h @@ -178,3 +178,13 @@ extern int tc_m68k_regname_to_dw2regnum (char *regname); #define tc_cfi_frame_initial_instructions tc_m68k_frame_initial_instructions extern void tc_m68k_frame_initial_instructions (void); + +#ifdef TE_UCLINUX +/* elf2flt does not honor PT_LOAD's from the executable. + .text and .eh_frame sections will not end up in the same segment and so + we cannot use PC-relative encoding for CFI. */ +# define CFI_DIFF_EXPR_OK 0 + +/* However, follow compiler's guidance when it specifies encoding for LSDA. */ +# define CFI_DIFF_LSDA_OK 1 +#endif |