Add sanity checks to ld.so DSBT support
Add sanity checks to ld.so DSBT support

This adds some DSBT index sanity checks to the runtime linker. It
catches libraries which have no index (index 0) and libraries which
try to use an already used index.

Signed-off-by: Mark Salter <3186038803479a476d7152f26680d7b1b21c12c4@redhat.com>
Signed-off-by: Bernd Schmidt <c931ab6ac2d0c45d944fa77d0e13e53c91dbbf4d@codesourcery.com>

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc