diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-09 12:48:54 -0700 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2017-04-22 11:52:34 -0600 |
commit | f036b35a6fe1e187b2faea5c4ddf72359b33a44f (patch) | |
tree | b92c0efe9e495805489310c3e162b138b357cb01 /src | |
parent | 1db7169b193808c733852054e9a4713cdbd76cea (diff) |
ao-elftohex: Add conditions for skipping ELF sections
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>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions