summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-10-12 20:43:21 +0200
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-10-12 20:57:26 +0200
commit0631d1fb4dfc3de5c1fb22d4030dffece350d724 (patch)
tree60d3729a57acc8419dec2a5a012e65ffb5a95b5e
parent4bdbb6716d99a82ded1c56a93165a095c9f96404 (diff)
downloadandroid_external_elfutils-0631d1fb4dfc3de5c1fb22d4030dffece350d724.tar.gz
android_external_elfutils-0631d1fb4dfc3de5c1fb22d4030dffece350d724.tar.bz2
android_external_elfutils-0631d1fb4dfc3de5c1fb22d4030dffece350d724.zip
libebl/
2012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com> * ebl-hooks.h (abi_cfi): Extend its comment for return value. * eblopenbackend.c (default_abi_cfi): Return -1. * libebl.h (ebl_abi_cfi): Extend its comment for return value. Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
-rw-r--r--libebl/ChangeLog6
-rw-r--r--libebl/ebl-hooks.h3
-rw-r--r--libebl/eblopenbackend.c2
-rw-r--r--libebl/libebl.h5
4 files changed, 13 insertions, 3 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index f12613a9..e881ce72 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * ebl-hooks.h (abi_cfi): Extend its comment for return value.
+ * eblopenbackend.c (default_abi_cfi): Return -1.
+ * libebl.h (ebl_abi_cfi): Extend its comment for return value.
+
2012-08-30 Petr Machata <pmachata@redhat.com>
* eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
diff --git a/libebl/ebl-hooks.h b/libebl/ebl-hooks.h
index f629bce7..d3cf3e62 100644
--- a/libebl/ebl-hooks.h
+++ b/libebl/ebl-hooks.h
@@ -151,7 +151,8 @@ int EBLHOOK(disasm) (const uint8_t **startp, const uint8_t *end,
GElf_Addr addr, const char *fmt, DisasmOutputCB_t outcb,
DisasmGetSymCB_t symcb, void *outcbarg, void *symcbarg);
-/* Supply the machine-specific state of CFI before CIE initial programs. */
+/* Supply the machine-specific state of CFI before CIE initial programs.
+ Function returns 0 on success and -1 on error. */
int EBLHOOK(abi_cfi) (Ebl *ebl, Dwarf_CIE *abi_info);
/* Destructor for ELF backend handle. */
diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
index 89e5da59..ed0c0ffe 100644
--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -750,5 +750,5 @@ static int
default_abi_cfi (Ebl *ebl __attribute__ ((unused)),
Dwarf_CIE *abi_info __attribute__ ((unused)))
{
- return 0;
+ return -1;
}
diff --git a/libebl/libebl.h b/libebl/libebl.h
index 0d5621d6..cae31c9b 100644
--- a/libebl/libebl.h
+++ b/libebl/libebl.h
@@ -267,7 +267,10 @@ extern int ebl_syscall_abi (Ebl *ebl, int *sp, int *pc,
DWARF register number that identifies the actual PC in machine state.
If there is no canonical DWARF register number with that meaning, it's
left unchanged (callers usually initialize with (Dwarf_Word) -1).
- This value is not used by CFI per se. */
+ This value is not used by CFI per se.
+
+ Function returns 0 on success and -1 for error or unsupported by the
+ backend. */
extern int ebl_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
__nonnull_attribute__ (2);