diff options
| author | Mark Wielaard <[email protected]> | 2019-01-11 13:39:27 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2019-01-11 13:39:27 +0100 |
| commit | b244a241a82c28f7fef33f37d82bc47631ceca4e (patch) | |
| tree | 8b83c72f0a99dca6624f0903e8c3ee1eb26ad900 /src/arlib.c | |
| parent | 029c76f0d4b06584e370b5fc0112712ba99a6219 (diff) | |
| parent | 4ea9a2db164caadf836a65d5cdffb09a2d5a37ce (diff) | |
Merge tag 'elfutils-0.175' into mjw/RH-DTSdts-0.175
elfutils 0.175 release
Diffstat (limited to 'src/arlib.c')
| -rw-r--r-- | src/arlib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arlib.c b/src/arlib.c index 778e0878..a6521e30 100644 --- a/src/arlib.c +++ b/src/arlib.c @@ -252,6 +252,9 @@ arlib_add_symbols (Elf *elf, const char *arfname, const char *membername, if (data == NULL) continue; + if (shdr->sh_entsize == 0) + continue; + int nsyms = shdr->sh_size / shdr->sh_entsize; for (int ndx = shdr->sh_info; ndx < nsyms; ++ndx) { |
