1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-07 21:31:32 +02:00
openwrt-xburst/tools/mklibs/patches/007-uclibc_init.patch
acoul 2ad1d18700 tools/mklibs: revert r24282
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24283 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-06 13:21:09 +00:00

15 lines
641 B
Diff

--- 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)