Merge symbol tables. (Not fully ELF conformant)
[centaur.git] / include / libelfu / modelops.h
index 3daef5285fa8162c3ce0b9b82e4d3afc0f3e68c7..eee7c13285a51c87b92a0140547764ea449b96a0 100644 (file)
@@ -7,6 +7,9 @@
 #include <libelfu/types.h>
 
 
+#define ELFU_SYMSTR(symtabscn, off) (((char*)(symtabscn)->linkptr->data.d_buf) + (off))
+
+
 size_t elfu_mPhdrCount(ElfuElf *me);
 void elfu_mPhdrUpdateChildOffsets(ElfuPhdr *mp);
 
@@ -42,6 +45,6 @@ void elfu_mDumpElf(ElfuElf *me);
 ElfuElf* elfu_mFromElf(Elf *e);
     void elfu_mToElf(ElfuElf *me, Elf *e);
 
-void elfu_mReladd(ElfuElf *me, ElfuElf *mrel);
+void elfu_mReladd(ElfuElf *me, const ElfuElf *mrel);
 
 #endif