From: Felix Fietkau Date: Mon, 19 Oct 2009 23:26:05 +0000 (+0000) Subject: mklibs: preserve the uclibc init symbol X-Git-Tag: backfire_10.03~1828 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f52504a9723b9b3f313e9d08bcab44daca1beb3;p=openwrt%2Fsvn-archive%2Fopenwrt.git mklibs: preserve the uclibc init symbol SVN-Revision: 18085 --- diff --git a/tools/mklibs/patches/007-uclibc_init.patch b/tools/mklibs/patches/007-uclibc_init.patch new file mode 100644 index 0000000000..e76515085c --- /dev/null +++ b/tools/mklibs/patches/007-uclibc_init.patch @@ -0,0 +1,14 @@ +--- a/src/mklibs.py ++++ b/src/mklibs.py +@@ -571,6 +571,11 @@ while 1: + extra_post_obj.append(sysroot + libc_extras_dir + "/sofini.o") + symbols.add(ProvidedSymbol('__dso_handle', None, None, True)) + ++ if soname in ("libc.so.0"): ++ symbols.add(ProvidedSymbol('__uClibc_init', None, None, True)) ++ symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True)) ++ extra_flags.append("-Wl,-init,__uClibc_init") ++ + map_file = find_pic_map(library) + if map_file: + extra_flags.append("-Wl,--version-script=" + map_file)