openwrt/toolchain/uClibc
Jo-Philipp Wich 12b122f31f ld.so: ldd crashes when __LDSO_SEARCH_INTERP_PATH__ is not #defined Since b65c7b2c79debcb9017e31913e01eeaa280106fb, the implicit search path can be disabled by not #defining __LDSO_SEARCH_INTERP_PATH__. This causes _dl_ldsopath to never be set, so it remains NULL. _dl_ldsopath is still used when __LDSO_LDD_SUPPORT__ is #defined, to strip the path off of the beginning of the absolute path to the ld.so interpreter in use for printing. The _dl_strlen will crash with a NULL argument.
Rather than relying on _dl_ldsopath, this change causes ldd to compute
the interpreter's basename directly.

glibc ld.so seems to print the full path to the interpreter without
any computed basename or =>. I personally prefer glibc's behavior, but
to preserve backwards compatibility with uClibc ld.so, the existing
format with the computed basename, =>, and full path is used here. This
enables simpler (and unchanged) text processing in a pipeline.

Signed-off-by: Mark Mentovai <mark at moxienet.com>

SVN-Revision: 23892
2010-11-05 21:38:38 +00:00
..
config-0.9.30.1 add support for the Gateworks Laguna family (Cavium Networks Econa CNS3xxx) 2010-07-21 11:20:53 +00:00
config-0.9.31 add support for the Gateworks Laguna family (Cavium Networks Econa CNS3xxx) 2010-07-21 11:20:53 +00:00
config-0.9.32 add support for the Gateworks Laguna family (Cavium Networks Econa CNS3xxx) 2010-07-21 11:20:53 +00:00
patches-0.9.30.1 uClibc: fix free-after-use bug in __dns_lookup (closes #6886) 2010-03-23 08:12:24 +00:00
patches-0.9.31 ld.so: ldd crashes when __LDSO_SEARCH_INTERP_PATH__ is not #defined Since b65c7b2c79debcb9017e31913e01eeaa280106fb, the implicit search path can be disabled by not #defining __LDSO_SEARCH_INTERP_PATH__. This causes _dl_ldsopath to never be set, so it remains NULL. _dl_ldsopath is still used when __LDSO_LDD_SUPPORT__ is #defined, to strip the path off of the beginning of the absolute path to the ld.so interpreter in use for printing. The _dl_strlen will crash with a NULL argument. 2010-11-05 21:38:38 +00:00
patches-0.9.32 nptl-supoprt should not autoselect EXTRA_WARNINGS as this results in extra CFLAGS which may not be supported by older compilers (as e.g. gcc-4.1 which e.g. the x86 target is currently using) 2010-08-06 12:42:04 +00:00
Config.in switch to uClibc 0.9.31 2010-11-02 13:57:57 +00:00
Config.version switch to uClibc 0.9.31 2010-11-02 13:57:57 +00:00
Makefile remove support for uClibc 0.9.30.2 and 0.9.30.3 2010-11-02 12:56:58 +00:00