From 7a11603dc6bde67066ce6f8d4c5f6b86bebaf3c1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 18 Sep 2004 06:46:52 +0000 Subject: Update. 2004-09-17 Ulrich Drepper * include/link.h (struct link_map): Add l_used element. * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED. * elf/rtld.c (process_dl_debug): Recognize unused. (dl_main): When unused debug flag is set check for unused direct dependencies. When printing dependencies and SONAME starts with /, omit the SONAME => part. * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the symbol has been found as used. * elf/ldd.bash.in: Add -u option. --- sysdeps/generic/ldsodefs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic/ldsodefs.h') diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 49f766642c..be3d2dd61f 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -375,9 +375,10 @@ struct rtld_global_ro #define DL_DEBUG_RELOC (1 << 5) #define DL_DEBUG_FILES (1 << 6) #define DL_DEBUG_STATISTICS (1 << 7) +#define DL_DEBUG_UNUSED (1 << 8) /* These two are used only internally. */ -#define DL_DEBUG_HELP (1 << 8) -#define DL_DEBUG_PRELINK (1 << 9) +#define DL_DEBUG_HELP (1 << 9) +#define DL_DEBUG_PRELINK (1 << 10) /* Cached value of `getpagesize ()'. */ EXTERN size_t _dl_pagesize; -- cgit 1.4.1