ARC: dw2 unwind: add infrastructure for adding cfi pseudo ops to asm
authorVineet Gupta <vgupta@synopsys.com>
Sat, 17 Sep 2016 00:23:26 +0000 (17:23 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 30 Sep 2016 21:48:22 +0000 (14:48 -0700)
commit5a205a32ffccf6e720a2d2b3aee44b16619016a6
tree9ff1460c48ecbcc382405826ff53c5329bd5a9dd
parent2dad1122d9d936cf120953324eaaa38c3ab20ac2
ARC: dw2 unwind: add infrastructure for adding cfi pseudo ops to asm

1. detect whether binutils supports the cfi pseudo ops
2. define conditional macros to generate the ops
3. define new ENTRY_CFI/END_CFI to annotate hand asm code.
   - Needed because we don't want to emit dwarf info in general ENTRY/END
     used by lowest level trap/exception/interrutp handlers as unwinder
     gets confused trying to unwind out of them. We want unwinder to
     instead stop when it hits onfo those routines
   - These provide minimal start/end cfi ops assuming routine doesn't
     touch stack memory/regs

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/Makefile
arch/arc/include/asm/dwarf.h [new file with mode: 0644]
arch/arc/include/asm/linkage.h