summaryrefslogtreecommitdiff
path: root/libebl/eblabicfi.c
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2015-12-08 19:10:40 +0100
committerMark Wielaard <mjw@redhat.com>2016-01-03 10:26:30 +0100
commit42f0df13d7c0b3ec1a547eca84eca694f6d42310 (patch)
tree4a909286c3d57ee73d3b39c1e17bd204dec29efb /libebl/eblabicfi.c
parenta5a354b9d7d4ca8c912945dd708ab465aec67c7f (diff)
downloadelfutils-42f0df13d7c0b3ec1a547eca84eca694f6d42310.tar.gz
libebl: new backend attribute ra_offset.
Some backends need to fine-tune the return address as fetched from the corresponding CFI register. This patch adds a new backend attribute ra_offset and the corresponding ebl_ra_offset getter function. Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
Diffstat (limited to 'libebl/eblabicfi.c')
-rw-r--r--libebl/eblabicfi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libebl/eblabicfi.c b/libebl/eblabicfi.c
index 6b0e18e4..8bf189f1 100644
--- a/libebl/eblabicfi.c
+++ b/libebl/eblabicfi.c
@@ -38,3 +38,9 @@ ebl_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
{
return ebl == NULL ? -1 : ebl->abi_cfi (ebl, abi_info);
}
+
+int
+ebl_ra_offset (Ebl *ebl)
+{
+ return ebl->ra_offset;
+}