]> code.ossystems Code Review - openembedded-core.git/commit
uclibc: fix undefinition of '_dl_strchr' in libdl.a
authorJunling Zheng <zhengjunling@huawei.com>
Fri, 3 Apr 2015 05:59:59 +0000 (05:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 May 2015 17:12:01 +0000 (18:12 +0100)
commitc39c0d0426b2f9b2c13403705167e2d8201df1ff
treeef753acd58d3b28fe07fc2ceef1f601fb8766d62
parent24a55a1e9658fdfd7b314ce1d9f40e0374990b7a
uclibc: fix undefinition of '_dl_strchr' in libdl.a

The orign_path.patch introduced '_dl_strchr' in ldso/ldso/dl-elf.c, and
caused the following undefined referencing compiling error:

  | .../libdl.a(libdl.os): In function `search_for_named_library':
  | .../dl-elf.c:156: undefined reference to `_dl_strchr'
  | collect2: error: ld returned 1 exit status

I found this problem when compiling gdb in static mode using uclibc.

So, add the definition of '_dl_strchr' to fix it. The '_dl_strstr' is
added as well.

And I regenerated a patch to replace the original one.

(From OE-Core master rev: 34b82b8452aa721146f95321cfd1a1fee3f0d6c8)

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/uclibc/uclibc-git.inc
meta/recipes-core/uclibc/uclibc-git/0001-ldso-limited-support-for-ORIGIN-in-rpath.patch [moved from meta/recipes-core/uclibc/uclibc-git/orign_path.patch with 63% similarity]