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