summaryrefslogtreecommitdiff
path: root/libebl/libeblP.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-06-24 17:41:40 -0700
committerRoland McGrath <roland@redhat.com>2009-07-08 15:15:52 -0700
commit3c84db3b4b610bf636c4363abb6d3dac5ae020f9 (patch)
treee0af0c5a7f27a3f06a66353a3da9bec0bd7bd32f /libebl/libeblP.h
parentfe8b42e6131b74829fe31d15f31349cade566a59 (diff)
downloadelfutils-3c84db3b4b610bf636c4363abb6d3dac5ae020f9.tar.gz
CFI support: lookup by PC and translate into DWARF location per register
Diffstat (limited to 'libebl/libeblP.h')
-rw-r--r--libebl/libeblP.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libebl/libeblP.h b/libebl/libeblP.h
index 7bfa650f..32a43728 100644
--- a/libebl/libeblP.h
+++ b/libebl/libeblP.h
@@ -1,5 +1,5 @@
/* Internal definitions for interface for libebl.
- Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 Red Hat, Inc.
+ Copyright (C) 2000-2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -94,4 +94,10 @@ typedef const char *(*ebl_bhinit_t) (Elf *, GElf_Half, Ebl *, size_t);
#undef _
#define _(Str) dgettext ("elfutils", Str)
+
+/* LEB128 constant helper macros. */
+#define ULEB128_7(x) (BUILD_BUG_ON_ZERO ((x) >= (1U << 7)) + (x))
+
+#define BUILD_BUG_ON_ZERO(x) (sizeof (char [(x) ? -1 : 1]) - 1)
+
#endif /* libeblP.h */