diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-05-06 20:53:52 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-05-06 20:53:52 (GMT) |
commit | 1bda6c517d30d873ff0d92a96380946ef944c9ae (patch) | |
tree | 28ab52b2f43e9f8b7021f069f0c2d918798bfd98 /src/format/elf | |
parent | c5a2674cd52e4eea66154c6fea931d5cc5c1852e (diff) |
Removed some GCC warnings by casting variables or moving definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@532 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf')
-rw-r--r-- | src/format/elf/helper_arm.c | 9 | ||||
-rw-r--r-- | src/format/elf/symbols.c | 10 | ||||
-rw-r--r-- | src/format/elf/symbols.h | 6 |
3 files changed, 7 insertions, 18 deletions
diff --git a/src/format/elf/helper_arm.c b/src/format/elf/helper_arm.c index e44222f..efc8a3d 100644 --- a/src/format/elf/helper_arm.c +++ b/src/format/elf/helper_arm.c @@ -26,19 +26,10 @@ #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.c b/src/format/elf/symbols.c index 4c1811f..04ba3de 100644 --- a/src/format/elf/symbols.c +++ b/src/format/elf/symbols.c @@ -57,14 +57,6 @@ static bool load_all_elf_basic_entry_points(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); - - - @@ -187,7 +179,7 @@ static void register_elf_entry_point(GElfFormat *format, virt_t vaddr, phys_t le init_vmpa(&addr, VMPA_NO_PHYSICAL, vaddr); - if (g_binary_format_find_symbol_at(format, &addr, &symbol)) + if (g_binary_format_find_symbol_at(G_BIN_FORMAT(format), &addr, &symbol)) { g_object_unref(G_OBJECT(routine)); diff --git a/src/format/elf/symbols.h b/src/format/elf/symbols.h index 634158d..086cb0d 100644 --- a/src/format/elf/symbols.h +++ b/src/format/elf/symbols.h @@ -37,6 +37,12 @@ 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); +/* 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 */ |