elf-from-memory: Restructure code to get rid of nested handle_segment()
authorTimm Bäder <tbaeder@redhat.com>
Fri, 8 Jan 2021 08:09:55 +0000 (09:09 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 28 Jan 2021 21:03:40 +0000 (22:03 +0100)
commit67a912f0b81047d42881be3c40c8404c2711711c
tree561d7be0fb08c169fdc337e6b4d0db4f51a9890e
parente29965f401896a3652394df8e28cc14979fedc91
elf-from-memory: Restructure code to get rid of nested handle_segment()

Use one loop for both 32 and 64  bit case. This allows for only one call
site of the old handle_segment(), which we can then inline into the for
loop.

Signed-off-by: Timm Bäder <tbaeder@redhat.com>
libdwfl/ChangeLog
libdwfl/elf-from-memory.c