For "ldd -v", print shared object dependencies that were specified as
pathnames (rather than as "-lfoo") correctly. Closes PR bin/2404.
This commit is contained in:
parent
9c1fc5f52b
commit
775f9cd54d
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: sods.c,v 1.1 1996/10/01 02:16:16 peter Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@ -386,8 +386,11 @@ dump_sods()
|
||||
const struct sod *sodp = (const struct sod *) (text_addr + sod_offset);
|
||||
const char *name = (const char *) (text_addr + sodp->sod_name);
|
||||
|
||||
printf(" -l%-16s version %d.%d\n", name, sodp->sod_major,
|
||||
sodp->sod_minor);
|
||||
if (sodp->sod_library)
|
||||
printf(" -l%-16s version %d.%d\n", name, sodp->sod_major,
|
||||
sodp->sod_minor);
|
||||
else
|
||||
printf(" %s\n", name);
|
||||
sod_offset = sodp->sod_next;
|
||||
}
|
||||
paths_offset = sdt->sdt_paths;
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: sods.c,v 1.1 1996/10/01 02:16:16 peter Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@ -386,8 +386,11 @@ dump_sods()
|
||||
const struct sod *sodp = (const struct sod *) (text_addr + sod_offset);
|
||||
const char *name = (const char *) (text_addr + sodp->sod_name);
|
||||
|
||||
printf(" -l%-16s version %d.%d\n", name, sodp->sod_major,
|
||||
sodp->sod_minor);
|
||||
if (sodp->sod_library)
|
||||
printf(" -l%-16s version %d.%d\n", name, sodp->sod_major,
|
||||
sodp->sod_minor);
|
||||
else
|
||||
printf(" %s\n", name);
|
||||
sod_offset = sodp->sod_next;
|
||||
}
|
||||
paths_offset = sdt->sdt_paths;
|
||||
|
Loading…
Reference in New Issue
Block a user