diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2018-08-16 10:25:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-16 22:40:27 +0100 |
commit | 0f327c393f613dabf4535a71638e47e57b21c521 (patch) | |
tree | b2acb6a91a9ec4a6822a1ffc7567676ad533bcde /meta/recipes-devtools/ccache | |
parent | c66512c2d5432787db5d4b2743d4eb8bcc7e99c2 (diff) | |
download | poky-0f327c393f613dabf4535a71638e47e57b21c521.tar.gz |
prelink: use ehdr.e_shstrndx as index rather than ehdr.e_shnum
[YOCTO #12791]
According to struct elf32_hd, the e_shnum is section header number, and the
index is e_shstrndx, not e_shnum.
This can fix segmention fault when handle libqb.so.0.18.2 from libqb_1.0.3.
It fails to handle libqb.so.0.18.2 and get errors:
Symbol section index outside of section numbers
Then segmentation fault, this is because the e_shnum is 34, while e_shstrndx is
27 (it would be 33 when no errors), I've checked several elf files to confirm
that the ones after e_shstrndx is NULL, so use e_shstrndx should be correct.
Fixed:
MACHINE="qemux86-64"
IMAGE_INSTALL_append = " libqb" #libqp is from meta-openembedded
$ bitbake core-image-minimal
Segmention fault
(From OE-Core rev: b7c291ee6532cba845ee6bfbbaa21076a2b2cbe5)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ccache')
0 files changed, 0 insertions, 0 deletions