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/size.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/size.c')
| -rw-r--r-- | src/size.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -374,8 +374,10 @@ handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) INTERNAL_ERROR (fname); } - if (unlikely (elf_end (elf) != 0)) - INTERNAL_ERROR (fname); + /* Only close ELF handle if this was a "top level" ar file. */ + if (prefix == NULL) + if (unlikely (elf_end (elf) != 0)) + INTERNAL_ERROR (fname); return result; } |
