dwelf: Add string table functions from ebl.
authorMark Wielaard <mjw@redhat.com>
Fri, 8 Jul 2016 12:08:22 +0000 (14:08 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 3 Aug 2016 16:19:47 +0000 (18:19 +0200)
commitdd906c1b4852be4dd34924017261f89cc5c4c723
tree6aac4ef30566095081089eed773711cf00e6e13d
parente6ca75ddcf2ba9314077ddc9768eaac2405305e1
dwelf: Add string table functions from ebl.

Move the strtab functions from libebl to libdw. Programs often want to
create ELF/DWARF string tables. We don't want (static) linking against
ebl since those are internal functions that might change.

This introduces dwelf_strtab_init, dwelf_strtab_add,
dwelf_strtab_add_len, dwelf_strtab_finalize, dwelf_strent_off,
dwelf_strent_str and dwelf_strtab_free. Documentation for each has
been added to libdwelf.h. The add fucntion got a variant that takes
the length explicitly and finalize was changed to return NULL on
out of memory instead of aborting. All code and tests now uses the
new functions.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
32 files changed:
libasm/ChangeLog
libasm/Makefile.am
libasm/asm_begin.c
libasm/asm_end.c
libasm/asm_newabssym.c
libasm/asm_newcomsym.c
libasm/asm_newscn.c
libasm/asm_newscngrp.c
libasm/asm_newsym.c
libasm/libasmP.h
libasm/symbolhash.c
libasm/symbolhash.h
libdw/ChangeLog
libdw/libdw.map
libdwelf/ChangeLog
libdwelf/Makefile.am
libdwelf/dwelf_strtab.c [moved from libebl/eblstrtab.c with 78% similarity]
libdwelf/libdwelf.h
libebl/ChangeLog
libebl/Makefile.am
libebl/libebl.h
src/ChangeLog
src/Makefile.am
src/elfcompress.c
src/strip.c
src/unstrip.c
tests/ChangeLog
tests/Makefile.am
tests/alldts.c
tests/elfstrmerge.c
tests/update3.c
tests/update4.c