flag_fix.patch 775 B

123456789101112131415161718192021222324
  1. Upstream-Status: Inappropriate [embedded specific]
  2. The native version of ldconfig was using native definition of LD_SO (i.e.
  3. ld-linux-x86-64.so.2 ) which is not correct for doing the cross ldconfig.
  4. This was causing libc.so on the target marked as ELF lib rather than
  5. FLAG_ELF_LIBC6 in the ld.so.cache.
  6. Nitin A Kamble <nitin.a.kamble@intel.com> 2011/04/4
  7. Index: ldconfig-native-2.12.1/readlib.c
  8. ===================================================================
  9. --- ldconfig-native-2.12.1.orig/readlib.c
  10. +++ ldconfig-native-2.12.1/readlib.c
  11. @@ -51,6 +51,10 @@ struct known_names
  12. int flag;
  13. };
  14. +/* don't use host's definition of LD_SO */
  15. +#undef LD_SO
  16. +#define LD_SO "ld.so.1"
  17. +
  18. static struct known_names interpreters[] =
  19. {
  20. { "/lib/" LD_SO, FLAG_ELF_LIBC6 },