Merge symbol tables. (Not fully ELF conformant)
authornorly <ny-git@enpas.org>
Sat, 15 Jun 2013 15:27:28 +0000 (16:27 +0100)
committernorly <ny-git@enpas.org>
Sat, 15 Jun 2013 15:32:15 +0000 (16:32 +0100)
commit5868bb32246367139f0d17a989650964f90a7958
tree7601bc12cfe88cb3c180c42fe1e3d1ee293c3559
parent3c14755015340e48ae68aa874f672e7c9d289832
Merge symbol tables. (Not fully ELF conformant)

Also, remove that nameptr member from symbols. It just *had* to cause
trouble.

Symbols are simply appended to the target's symbol table, which means
that LOCAL symbols are not inserted at the beginning and we are thus
ignoring an ELF spec. Might change that in the future, it's good enough
for now and it's sure not to break anything with the old symbols.

The code currently assumes that the target *has* a symbol table. We'll
have to fix that, and also remove undefined and duplicate symbols.
include/libelfu/modelops.h
include/libelfu/types.h
src/modelops/fromFile.c
src/modelops/reladd.c
src/modelops/relocate.c
src/modelops/toFile.c