PR 23939
* dw2gencfi.c (dot_cfi_label): Check frch_cfi_data is non-NULL
before use.
+2018-12-04 wu.heng <wu.heng@zte.com.cn>
+
+ PR 23939
+ * dw2gencfi.c (dot_cfi_label): Check frch_cfi_data is non-NULL
+ before use.
+
2018-12-03 Kito Cheng <kito@andestech.com>
* config/tc-riscv.c: Include elfxx-riscv.h.
static void
dot_cfi_label (int ignored ATTRIBUTE_UNUSED)
{
- char *name = read_symbol_name ();
+ char *name;
+
+ if (frchain_now->frch_cfi_data == NULL)
+ {
+ as_bad (_("CFI instruction used without previous .cfi_startproc"));
+ ignore_rest_of_line ();
+ return;
+ }
+ name = read_symbol_name ();
if (name == NULL)
return;