summaryrefslogtreecommitdiff
path: root/elfutils/libebl/i386_symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'elfutils/libebl/i386_symbol.c')
-rw-r--r--elfutils/libebl/i386_symbol.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/elfutils/libebl/i386_symbol.c b/elfutils/libebl/i386_symbol.c
index 8f32eb86..e9eded23 100644
--- a/elfutils/libebl/i386_symbol.c
+++ b/elfutils/libebl/i386_symbol.c
@@ -19,6 +19,7 @@
#include <assert.h>
#include <elf.h>
#include <stddef.h>
+#include <string.h>
#include <libebl_i386.h>
@@ -143,3 +144,20 @@ i386_reloc_simple_type (Elf *elf __attribute__ ((unused)), int type)
return ELF_T_NUM;
}
}
+
+/* Check section name for being that of a debug informatino section. */
+bool (*generic_debugscn_p) (const char *);
+bool
+i386_debugscn_p (const char *name)
+{
+ return (generic_debugscn_p (name)
+ || strcmp (name, ".stab") == 0
+ || strcmp (name, ".stabstr") == 0);
+}
+
+/* Check whether given relocation is a copy relocation. */
+bool
+i386_copy_reloc_p (int reloc)
+{
+ return reloc == R_386_COPY;
+}