RTLDLIST table does not include /lib/ld-linux-x86-64.so.2, resulting on the following error:
root@qt5122:~# ldd ./qtec_webcam not a dynamic executable Signed-off-by: Ricardo Ribalda Delgado <[email protected]> --- .../glibc/glibc/0031-ldd-rewrite.patch | 22 +++++++++++++++++++ meta/recipes-core/glibc/glibc_2.28.bb | 1 + 2 files changed, 23 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/0031-ldd-rewrite.patch diff --git a/meta/recipes-core/glibc/glibc/0031-ldd-rewrite.patch b/meta/recipes-core/glibc/glibc/0031-ldd-rewrite.patch new file mode 100644 index 0000000000..5c375997da --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0031-ldd-rewrite.patch @@ -0,0 +1,22 @@ +From: Ricardo Ribalda <[email protected]> +Subject: Fix not a dynamic executable error on X86_64 + +RTLDLIST table does not include /lib/ld-linux-x86-64.so.2, resulting +on the following error: + +root@qt5122:~# ldd ./qtec_webcam +not a dynamic executable + + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Ricardo Ribalda <[email protected]> +diff --git a/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed b/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed +index 44d76e8aa1..611efd56b0 100644 +--- a/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed ++++ b/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed +@@ -1,3 +1,3 @@ + /LD_TRACE_LOADED_OBJECTS=1/a\ + add_env="$add_env LD_LIBRARY_VERSION=\\$verify_out" +-s_^\(RTLDLIST=\)\(.*lib\)\(\|64\|x32\)\(/[^/]*\)\(-x86-64\|-x32\)\(\.so\.[0-9.]*\)[ ]*$_\1"\2\4\6 \264\4-x86-64\6 \2x32\4-x32\6"_ ++s_^\(RTLDLIST=\)\(.*lib\)\(\|64\|x32\)\(/[^/]*\)\(-x86-64\|-x32\)\(\.so\.[0-9.]*\)[ ]*$_\1"\2\4\6 \264\4-x86-64\6 \2x32\4-x32\6 \2\3\4\5\6"_ diff --git a/meta/recipes-core/glibc/glibc_2.28.bb b/meta/recipes-core/glibc/glibc_2.28.bb index 0ebbaf9610..a968c86214 100644 --- a/meta/recipes-core/glibc/glibc_2.28.bb +++ b/meta/recipes-core/glibc/glibc_2.28.bb @@ -45,6 +45,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0028-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch \ file://0029-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \ file://0030-intl-Emit-no-lines-in-bison-generated-files.patch \ + file://0031-ldd-rewrite.patch \ " NATIVESDKFIXES ?= "" -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
