]> code.ossystems Code Review - openembedded-core.git/commit
image-mklibs: handle position independent binaries
authorTyler Hall <tylerwhall@gmail.com>
Wed, 9 Mar 2016 02:07:40 +0000 (21:07 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Mar 2016 23:06:16 +0000 (23:06 +0000)
commit30da34ef032d5b4b2f694743715f2c8d64dd9849
tree5977fd17658c37b28a47a4a942ab66f669d5b9e5
parentbdd7c1b088f24e54cf0be83324dd6ffe677af079
image-mklibs: handle position independent binaries

Executables built with -fpie have the ELF type DYN rather than EXEC
which makes them difficult to distinguish from shared libraries.
Currently when building the list of executables we omit these binaries
so they might fail to run on the resultant rootfs due to missing
symbols. One of these is systemd which builds -fpie unconditionally, so
mklibs breaks images containing systemd.

Modify the search to catch all executable files that are ELF and have an
interpreter set. Omit libc and libpthread as special cases because they
have an interpreter and are directly executable but treating them as
such is antithetical to the pupose of mklibs.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-mklibs.bbclass