OSDN Git Service

libc: define cfi_personality and cfi_lsda
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 17 Jun 2010 17:44:58 +0000 (19:44 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 17 Jun 2010 17:44:58 +0000 (19:44 +0200)
required for proper, current subarch handling

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/sysdep.h

index dae74d7..a7ec954 100644 (file)
@@ -67,6 +67,9 @@
 #  define cfi_remember_state           .cfi_remember_state
 #  define cfi_restore_state            .cfi_restore_state
 #  define cfi_window_save              .cfi_window_save
+#  define cfi_personality(enc, exp)    .cfi_personality enc, exp
+#  define cfi_lsda(enc, exp)           .cfi_lsda enc, exp
+
 # else
 #  define cfi_startproc
 #  define cfi_endproc
@@ -84,6 +87,8 @@
 #  define cfi_remember_state
 #  define cfi_restore_state
 #  define cfi_window_save
+#  define cfi_personality(enc, exp)
+#  define cfi_lsda(enc, exp)
 # endif
 
 #else /* ! ASSEMBLER */
    ".cfi_restore_state"
 #  define CFI_WINDOW_SAVE \
    ".cfi_window_save"
+#  define CFI_PERSONALITY(enc, exp) \
+   ".cfi_personality " CFI_STRINGIFY(enc) "," CFI_STRINGIFY(exp)
+#  define CFI_LSDA(enc, exp) \
+   ".cfi_lsda " CFI_STRINGIFY(enc) "," CFI_STRINGIFY(exp)
 # else
 #  define CFI_STARTPROC
 #  define CFI_ENDPROC
 #  define CFI_REMEMBER_STATE
 #  define CFI_RESTORE_STATE
 #  define CFI_WINDOW_SAVE
+#  define CFI_PERSONALITY(enc, exp)
+#  define CFI_LSDA(enc, exp)
 # endif
 
 #endif /* __ASSEMBLER__ */