mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-09 20:31:35 +00:00
mklibs: preserve the uclibc init symbol
SVN-Revision: 18085
This commit is contained in:
parent
57d29edb07
commit
6f52504a97
14
tools/mklibs/patches/007-uclibc_init.patch
Normal file
14
tools/mklibs/patches/007-uclibc_init.patch
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user