ao-elftohex: Add conditions for skipping ELF sections
authorKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2017 19:48:54 +0000 (12:48 -0700)
committerBdale Garbee <bdale@gag.com>
Sat, 22 Apr 2017 17:52:34 +0000 (11:52 -0600)
Skip sections with size 0, or which are of type SHT_NOBITS or which
don't have the SHF_ALLOC flag set.

This avoids crashing on sections which don't have any data to copy.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found