Add .cfi_val_offset GAS command.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 28 Sep 2016 15:54:06 +0000 (17:54 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 29 Sep 2016 14:33:25 +0000 (16:33 +0200)
commit084303b8c636944564d7be3b85dde55e8c371e91
tree80993d8ee34940a43773da8d03594584ffeb7775
parenta5721ba270ddf860e0e5a45bba456214e8eac2be
Add .cfi_val_offset GAS command.

This patch adds support for .cfi_val_offset GAS pseudo command which
maps to DW_CFA_val_offset and DW_CFA_val_offset_sf.

gas/ChangeLog:

2016-09-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* doc/as.texinfo: Add docu for .cfi_val_offset.
* dw2gencfi.c (cfi_add_CFA_val_offset): New function.
(dot_cfi): Add case for DW_CFA_val_offset.
(output_cfi_insn): Likewise.
(cfi_pseudo_table): Add entry for cfi_val_offset.
* dw2gencfi.h: Add prototype for cfi_add_CFA_val_offset.
* testsuite/gas/cfi/cfi-common-8.d: New test.
* testsuite/gas/cfi/cfi-common-8.s: New test.
* testsuite/gas/cfi/cfi.exp: Run cfi-common-8 testcase.

binutils/ChangeLog:

2016-09-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* dwarf.c (display_debug_frames): Adjust output line.
binutils/dwarf.c
gas/doc/as.texinfo
gas/dw2gencfi.c
gas/dw2gencfi.h
gas/testsuite/gas/cfi/cfi-common-8.d [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi-common-8.s [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi.exp