libelf: elf_strptr should use datalist when data has been added to section.
authorMark Wielaard <mjw@redhat.com>
Wed, 21 Jan 2015 22:56:43 +0000 (23:56 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 6 Feb 2015 21:29:34 +0000 (22:29 +0100)
commit710ca87893bef2fa186265a8624a6402509ba1f3
tree5078651c4dcc4fe7bf03caa475abe95eeeb898ab
parentb543cdd95a0f9dfc33c862585f108a7a19728a10
libelf: elf_strptr should use datalist when data has been added to section.

elf_strptr always used the rawdata when available. But when data has been
added to the section it should find the correct buffer in the datalist.

Adds a large testcase that checks various ways of adding and extracting
strings from a section.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libelf/ChangeLog
libelf/elf_strptr.c
tests/ChangeLog
tests/Makefile.am
tests/elfstrtab.c [new file with mode: 0644]