diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-05-17 22:59:55 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-05-17 22:59:55 (GMT) |
commit | 4d0ff0c23862c242d533d9b2d34e8812ef99ad61 (patch) | |
tree | 3b8504b8d3946a8bc9a702b819138ab1e5501be6 /src/format/elf/symbol.c | |
parent | 96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (diff) |
Used only the new format of processor/instructions/operands for x86.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@64 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf/symbol.c')
-rw-r--r-- | src/format/elf/symbol.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/format/elf/symbol.c b/src/format/elf/symbol.c index f1c320f..fbb6fd8 100644 --- a/src/format/elf/symbol.c +++ b/src/format/elf/symbol.c @@ -52,10 +52,10 @@ bool load_elf_relocation_table(elf_format *, const off_t *, const off_t *, const char *get_elf_dynamic_symbol_info(elf_format *, const off_t *, const off_t *, const off_t *, const off_t *, const off_t *); /* Décode les instructions liées à la relocalisation. */ -asm_instr **decode_elf_relocations(elf_format *, size_t *); +//asm_instr **decode_elf_relocations(elf_format *, size_t *); /* Déduit les adresses effectives des relocalisations. */ -void translate_elf_relocations(elf_format *, asm_instr **, size_t); +//void translate_elf_relocations(elf_format *, asm_instr **, size_t); @@ -98,7 +98,7 @@ bool load_elf_symbols(elf_format *format) off_t dyn_size; /* Taille de section */ - asm_instr **instructions; /* Instructions décodées */ + //asm_instr **instructions; /* Instructions décodées */ result = true; @@ -173,12 +173,13 @@ bool load_elf_symbols(elf_format *format) if (result) { +#if 0 instructions = decode_elf_relocations(format, &count); translate_elf_relocations(format, instructions, count); /* TODO : free instructions */ - +#endif } @@ -470,7 +471,7 @@ char *get_elf_dynamic_symbol_info(elf_format *format, const off_t *dyn_start, co * Remarques : - * * * ******************************************************************************/ - +#if 0 asm_instr **decode_elf_relocations(elf_format *format, size_t *count) { asm_instr **result; /* Liste à renvoyer */ @@ -527,8 +528,8 @@ asm_instr **decode_elf_relocations(elf_format *format, size_t *count) return result; } - - +#endif +#if 0 /****************************************************************************** * * * Paramètres : format = description de l'exécutable à compléter. * @@ -580,3 +581,4 @@ void translate_elf_relocations(elf_format *format, asm_instr **instructions, siz } } +#endif |