1
0

006-uclibc_init.patch 635 B

1234567891011121314
  1. --- a/src/mklibs
  2. +++ b/src/mklibs
  3. @@ -595,6 +595,11 @@ while 1:
  4. extra_post_obj.append(sysroot + libc_extras_dir + "/sofini.o")
  5. symbols.add(ProvidedSymbol('__dso_handle', None, None, True))
  6. + if soname in ("libc.so.0"):
  7. + symbols.add(ProvidedSymbol('__uClibc_init', None, None, True))
  8. + symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True))
  9. + extra_flags.append("-Wl,-init,__uClibc_init")
  10. +
  11. map_file = find_pic_map(library)
  12. if map_file:
  13. extra_flags.append("-Wl,--version-script=" + map_file)