summaryrefslogtreecommitdiff
path: root/src/format/elf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-04-30 23:10:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-04-30 23:10:48 (GMT)
commitbec7fe8b2840838fe3a2620b8af29264d8b54e60 (patch)
tree321bc2e24a42b43a95f62d89a12f8192bce487c5 /src/format/elf
parent55dbd294b0d740648bb1b63e6159e3aa9361a2e1 (diff)
Fixed implicit declarations of functions causing crashes.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@523 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf')
-rw-r--r--src/format/elf/helper_arm.c13
-rw-r--r--src/format/elf/symbols.h6
2 files changed, 18 insertions, 1 deletions
diff --git a/src/format/elf/helper_arm.c b/src/format/elf/helper_arm.c
index 7282d23..e44222f 100644
--- a/src/format/elf/helper_arm.c
+++ b/src/format/elf/helper_arm.c
@@ -21,15 +21,26 @@
*/
-#include "helper_x86.h"
+#include "helper_arm.h"
#include "elf-int.h"
+#include "symbols.h"
+#include "../mangling/demangler.h"
+
+
+
+/* symbols.c : Récupère la désignation d'un symbole donné. */
+//extern const char *get_elf_symbol_name(GElfFormat *, const elf_shdr *, const elf_shdr *, off_t);
+
+
+
+
diff --git a/src/format/elf/symbols.h b/src/format/elf/symbols.h
index a413395..634158d 100644
--- a/src/format/elf/symbols.h
+++ b/src/format/elf/symbols.h
@@ -31,6 +31,12 @@
/* Charge en mémoire la liste humaine des symboles. */
bool load_elf_symbols(GElfFormat *);
+/* Récupère la définition complète d'un symbole donné. */
+bool get_elf_symbol_by_index(GElfFormat *, const elf_shdr *, off_t, elf_sym *);
+
+/* Récupère la désignation d'un symbole donné. */
+const char *get_elf_symbol_name(GElfFormat *, const elf_shdr *, const elf_shdr *, off_t);
+
#endif /* _FORMAT_ELF_SYMBOLS_H */