-2002-02-05 Andreas Jaeger <aj@suse.de>
+2002-02-06 Andreas Jaeger <aj@suse.de>
+
+ * include/libc-symbols.h (INTUSE): Renamed from INT.
+ * elf/dl-deps.c: Change users.
+ * sysdeps/generic/dl-sysdep.c: Likewise.
+ * sysdeps/generic/dl-cache.c: Likewise.
+ * elf/dl-reloc.c: Likewise.
+ * elf/rtld.c: Likewise.
+ * elf/dl-version.c: Likewise.
+ * elf/dl-load.c: Likewise.
+ * elf/dl-dst.h: Likewise.
+ * elf/dl-init.c: Likewise.
* stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
definition.
{
struct openaux_args *args = (struct openaux_args *) a;
- args->aux = INT(_dl_map_object) (args->map, args->name, 0,
- (args->map->l_type == lt_executable
- ? lt_library : args->map->l_type),
- args->trace_mode, 0);
+ args->aux = INTUSE(_dl_map_object) (args->map, args->name, 0,
+ (args->map->l_type == lt_executable
+ ? lt_library : args->map->l_type),
+ args->trace_mode, 0);
}
static ptrdiff_t
\
/* DST must not appear in SUID/SGID programs. */ \
if (__libc_enable_secure) \
- INT(_dl_signal_error) (0, __str, NULL, \
- N_("DST not allowed in SUID/SGID programs"));\
+ INTUSE(_dl_signal_error) (0, __str, NULL, \
+ N_("DST not allowed in SUID/SGID programs"));\
\
__newp = (char *) alloca (DL_DST_REQUIRED (l, __str, strlen (__str), \
__cnt)); \
\
- __result = INT(_dl_dst_substitute) (l, __str, __newp, 0); \
+ __result = INTUSE(_dl_dst_substitute) (l, __str, __newp, 0); \
\
if (*__result == '\0') \
{ \
/* The replacement for the DST is not known. We can't \
processed. */ \
if (fatal) \
- INT(_dl_signal_error) (0, __str, NULL, N_("\
+ INTUSE(_dl_signal_error) (0, __str, NULL, N_("\
empty dynamics string token substitution")); \
else \
{ \
/* This is for DT_AUXILIARY. */ \
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS, 0)) \
- INT(_dl_debug_printf) (N_("\
+ INTUSE(_dl_debug_printf) (N_("\
cannot load auxiliary `%s' because of empty dynamic string token " \
"substitution\n"), __str); \
continue; \
/* Store the tag in the argument structure. */
args.name = name;
- err = INT(_dl_catch_error) (&objname, &errstring, openaux,
- &args);
+ err = INTUSE(_dl_catch_error) (&objname, &errstring, openaux,
+ &args);
if (__builtin_expect (errstring != NULL, 0))
{
if (err)
/* Say that we are about to load an auxiliary library. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS,
0))
- INT(_dl_debug_printf) ("load auxiliary object=%s"
- " requested by file=%s\n", name,
- l->l_name[0]
- ? l->l_name : _dl_argv[0]);
+ INTUSE(_dl_debug_printf) ("load auxiliary object=%s"
+ " requested by file=%s\n", name,
+ l->l_name[0]
+ ? l->l_name : _dl_argv[0]);
/* We must be prepared that the addressed shared
object is not available. */
- err = INT(_dl_catch_error) (&objname, &errstring, openaux,
+ err = INTUSE(_dl_catch_error) (&objname, &errstring, openaux,
&args);
if (__builtin_expect (errstring != NULL, 0))
{
/* Say that we are about to load an auxiliary library. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS,
0))
- INT(_dl_debug_printf) ("load filtered object=%s"
- " requested by file=%s\n", name,
- l->l_name[0]
- ? l->l_name : _dl_argv[0]);
+ INTUSE(_dl_debug_printf) ("load filtered object=%s"
+ " requested by file=%s\n", name,
+ l->l_name[0]
+ ? l->l_name : _dl_argv[0]);
/* For filter objects the dependency must be available. */
- err = INT(_dl_catch_error) (&objname, &errstring, openaux,
+ err = INTUSE(_dl_catch_error) (&objname, &errstring, openaux,
&args);
if (__builtin_expect (errstring != NULL, 0))
{
l->l_initfini = (struct link_map **)
malloc ((nneeded + 1) * sizeof needed[0]);
if (l->l_initfini == NULL)
- INT(_dl_signal_error) (ENOMEM, map->l_name, NULL,
- N_("cannot allocate dependency list"));
+ INTUSE(_dl_signal_error) (ENOMEM, map->l_name, NULL,
+ N_("cannot allocate dependency list"));
l->l_initfini[0] = l;
memcpy (&l->l_initfini[1], needed, nneeded * sizeof needed[0]);
}
(struct link_map **) malloc ((2 * nlist + 1)
* sizeof (struct link_map *));
if (map->l_initfini == NULL)
- INT(_dl_signal_error) (ENOMEM, map->l_name, NULL,
- N_("cannot allocate symbol search list"));
+ INTUSE(_dl_signal_error) (ENOMEM, map->l_name, NULL,
+ N_("cannot allocate symbol search list"));
map->l_searchlist.r_list = &map->l_initfini[nlist + 1];
/* As current DT_AUXILIARY/DT_FILTER implementation needs to be
rewritten, no need to bother with prelinking the old
implementation. */
- INT(_dl_signal_error) (EINVAL, l->l_name, NULL, N_("\
+ INTUSE(_dl_signal_error) (EINVAL, l->l_name, NULL, N_("\
Filters not supported with LD_TRACE_PRELINKING"));
}
+ (cnt
* sizeof (struct link_map *)));
if (l->l_local_scope[0] == NULL)
- INT(_dl_signal_error) (ENOMEM, map->l_name, NULL,
- N_("cannot allocate symbol search list"));
+ INTUSE(_dl_signal_error) (ENOMEM, map->l_name, NULL,
+ N_("cannot allocate symbol search list"));
l->l_local_scope[0]->r_nlist = cnt;
l->l_local_scope[0]->r_list =
(struct link_map **) (l->l_local_scope[0] + 1);
map->l_initfini[nlist] = NULL;
if (errno_reason)
- INT(_dl_signal_error) (errno_reason == -1 ? 0 : errno_reason, objname,
+ INTUSE(_dl_signal_error) (errno_reason == -1 ? 0 : errno_reason, objname,
NULL, errstring);
}
INTDEF (_dl_map_object_deps)
const char *__sf = strchr (name, '$'); \
\
if (__builtin_expect (__sf != NULL, 0)) \
- __cnt = INT(_dl_dst_count) (__sf, is_path); \
+ __cnt = INTUSE(_dl_dst_count) (__sf, is_path); \
\
__cnt; })
/* Print a debug message if wanted. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_IMPCALLS, 0))
- INT(_dl_debug_printf) ("\ncalling init: %s\n\n",
- l->l_name[0] ? l->l_name : _dl_argv[0]);
+ INTUSE(_dl_debug_printf) ("\ncalling init: %s\n\n",
+ l->l_name[0] ? l->l_name : _dl_argv[0]);
/* Now run the local constructors. There are two forms of them:
- the one named by DT_INIT
unsigned int cnt;
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_IMPCALLS, 0))
- INT(_dl_debug_printf) ("\ncalling preinit: %s\n\n",
- main_map->l_name[0]
- ? main_map->l_name : _dl_argv[0]);
+ INTUSE(_dl_debug_printf) ("\ncalling preinit: %s\n\n",
+ main_map->l_name[0]
+ ? main_map->l_name : _dl_argv[0]);
addrs = (ElfW(Addr) *) (main_map->l_info[DT_PREINIT_ARRAY]->d_un.d_ptr
+ main_map->l_addr);
not been used before. */
r = _dl_debug_initialize (0);
r->r_state = RT_ADD;
- INT(_dl_debug_state) ();
+ INTUSE(_dl_debug_state) ();
/* Stupid users forced the ELF specification to be changed. It now
says that the dynamic loader is responsible for determining the
/* Notify the debugger all new objects are now ready to go. */
r->r_state = RT_CONSISTENT;
- INT(_dl_debug_state) ();
+ INTUSE(_dl_debug_state) ();
/* Finished starting up. */
_dl_starting_up = 0;
if (result == NULL)
return NULL;
- return INT(_dl_dst_substitute) (l, s, result, 1);
+ return INTUSE(_dl_dst_substitute) (l, s, result, 1);
}
if (newname == NULL)
{
/* No more memory. */
- INT(_dl_signal_error) (ENOMEM, name, NULL,
+ INTUSE(_dl_signal_error) (ENOMEM, name, NULL,
N_("cannot allocate name record"));
return;
}
malloc (sizeof (*dirp) + ncapstr * sizeof (enum r_dir_status)
+ where_len + len + 1);
if (dirp == NULL)
- INT(_dl_signal_error) (ENOMEM, NULL, NULL,
- N_("cannot create cache for search path"));
+ INTUSE(_dl_signal_error) (ENOMEM, NULL, NULL,
+ N_("cannot create cache for search path"));
dirp->dirname = ((char *) dirp + sizeof (*dirp)
+ ncapstr * sizeof (enum r_dir_status));
signal_error_cache:
errstring = N_("cannot create cache for search path");
signal_error:
- INT(_dl_signal_error) (ENOMEM, NULL, NULL, errstring);
+ INTUSE(_dl_signal_error) (ENOMEM, NULL, NULL, errstring);
}
result[0] = NULL;
{
errstring = N_("cannot create search path array");
signal_error:
- INT(_dl_signal_error) (ENOMEM, NULL, NULL, errstring);
+ INTUSE(_dl_signal_error) (ENOMEM, NULL, NULL, errstring);
}
round_size = ((2 * sizeof (struct r_search_path_elem) - 1
free (l);
}
free (realname);
- INT(_dl_signal_error) (code, name, NULL, msg);
+ INTUSE(_dl_signal_error) (code, name, NULL, msg);
}
/* Print debugging message. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_FILES, 0))
- INT(_dl_debug_printf) ("file=%s; generating link map\n", name);
+ INTUSE(_dl_debug_printf) ("file=%s; generating link map\n", name);
/* This is the ELF header. We read it in `open_verify'. */
header = (void *) fbp->buf;
if (_dl_zerofd == -1)
{
__close (fd);
- INT(_dl_signal_error) (errno, NULL, NULL,
+ INTUSE(_dl_signal_error) (errno, NULL, NULL,
N_("cannot open zero fill device"));
}
}
l->l_entry += l->l_addr;
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_FILES, 0))
- INT(_dl_debug_printf) ("\
+ INTUSE(_dl_debug_printf) ("\
dynamic: 0x%0*lx base: 0x%0*lx size: 0x%0*Zx\n\
entry: 0x%0*lx phdr: 0x%0*lx phnum: %*u\n\n",
(int) sizeof (void *) * 2,
char buf[max_dirnamelen + max_capstrlen];
int first = 1;
- INT(_dl_debug_printf) (" search path=");
+ INTUSE(_dl_debug_printf) (" search path=");
while (*list != NULL && (*list)->what == what) /* Yes, ==. */
{
/* Print name we try if this is wanted. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS, 0))
- INT(_dl_debug_printf) (" trying file=%s\n", buf);
+ INTUSE(_dl_debug_printf) (" trying file=%s\n", buf);
fd = open_verify (buf, fbp);
if (this_dir->status[cnt] == unknown)
/* Display information if we are debugging. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_FILES, 0)
&& loader != NULL)
- INT(_dl_debug_printf) ("\nfile=%s; needed by %s\n", name,
- loader->l_name[0] ? loader->l_name : _dl_argv[0]);
+ INTUSE(_dl_debug_printf) ("\nfile=%s; needed by %s\n", name,
+ loader->l_name[0] ? loader->l_name : _dl_argv[0]);
if (strchr (name, '/') == NULL)
{
size_t namelen = strlen (name) + 1;
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS, 0))
- INT(_dl_debug_printf) ("find library=%s; searching\n", name);
+ INTUSE(_dl_debug_printf) ("find library=%s; searching\n", name);
fd = -1;
/* Add another newline when we a tracing the library loading. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS, 0))
- INT(_dl_debug_printf) ("\n");
+ INTUSE(_dl_debug_printf) ("\n");
}
else
{
/* Enter the new object in the list of loaded objects. */
if ((name_copy = local_strdup (name)) == NULL
|| (l = _dl_new_object (name_copy, name, type, loader)) == NULL)
- INT(_dl_signal_error) (ENOMEM, name, NULL, N_("\
+ INTUSE(_dl_signal_error) (ENOMEM, name, NULL, N_("\
cannot create shared object descriptor"));
/* Signal that this is a faked entry. */
l->l_faked = 1;
return l;
}
else
- INT(_dl_signal_error) (errno, name, NULL,
+ INTUSE(_dl_signal_error) (errno, name, NULL,
N_("cannot open shared object file"));
}
lazy = 0;
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_RELOC, 0))
- INT(_dl_debug_printf) ("\nrelocation processing: %s%s\n",
- l->l_name[0] ? l->l_name : _dl_argv[0],
- lazy ? " (lazy)" : "");
+ INTUSE(_dl_debug_printf) ("\nrelocation processing: %s%s\n",
+ l->l_name[0] ? l->l_name : _dl_argv[0],
+ lazy ? " (lazy)" : "");
/* DT_TEXTREL is now in level 2 and might phase out at some time.
But we rewrite the DT_FLAGS entry to a DT_TEXTREL entry to make
{
errstring = N_("cannot make segment writable for relocation");
call_error:
- INT(_dl_signal_error) (errno, l->l_name, NULL, errstring);
+ INTUSE(_dl_signal_error) (errno, l->l_name, NULL, errstring);
}
#if (PF_R | PF_W | PF_X) == 7 && (PROT_READ | PROT_WRITE | PROT_EXEC) == 7
l->l_lookup_cache.type_class = _tc; \
l->l_lookup_cache.sym = (*ref); \
_lr = ((version) != NULL && (version)->hash != 0 \
- ? INT(_dl_lookup_versioned_symbol) (strtab \
- + (*ref)->st_name, \
- l, (ref), scope, \
- (version), _tc, 0) \
- : INT(_dl_lookup_symbol) (strtab + (*ref)->st_name, l, \
- (ref), scope, _tc, 0)); \
+ ? INTUSE(_dl_lookup_versioned_symbol) (strtab \
+ + (*ref)->st_name, \
+ l, (ref), scope, \
+ (version), _tc, 0) \
+ : INTUSE(_dl_lookup_symbol) (strtab + (*ref)->st_name, l, \
+ (ref), scope, _tc, 0)); \
l->l_lookup_cache.ret = (*ref); \
l->l_lookup_cache.value = _lr; })) \
: l)
l->l_lookup_cache.type_class = _tc; \
l->l_lookup_cache.sym = (*ref); \
_lr = ((version) != NULL && (version)->hash != 0 \
- ? INT(_dl_lookup_versioned_symbol) (strtab \
- + (*ref)->st_name, \
- l, (ref), scope, \
- (version), _tc, 0) \
- : INT(_dl_lookup_symbol) (strtab + (*ref)->st_name, l, \
- (ref), scope, _tc, 0)); \
+ ? INTUSE(_dl_lookup_versioned_symbol) (strtab \
+ + (*ref)->st_name, \
+ l, (ref), scope, \
+ (version), _tc, 0) \
+ : INTUSE(_dl_lookup_symbol) (strtab + (*ref)->st_name, l, \
+ (ref), scope, _tc, 0)); \
l->l_lookup_cache.ret = (*ref); \
l->l_lookup_cache.value = _lr; })) \
: l->l_addr)
*cp++ = DIGIT (type >> 4);
*cp = DIGIT (type);
- INT(_dl_signal_error) (0, map->l_name, NULL, msgbuf);
+ INTUSE(_dl_signal_error) (0, map->l_name, NULL, msgbuf);
}
/* Display information about what we are doing while debugging. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_VERSIONS, 0))
- INT(_dl_debug_printf) ("\
+ INTUSE(_dl_debug_printf) ("\
checking for version `%s' in file %s required by file %s\n",
- string, map->l_name[0]
- ? map->l_name : _dl_argv[0], name);
+ string, map->l_name[0]
+ ? map->l_name : _dl_argv[0], name);
if (__builtin_expect (map->l_info[VERSYMIDX (DT_VERDEF)] == NULL, 0))
{
&buf[sizeof (buf) - 1], 10, 0),
" of Verneed record\n");
call_error:
- INT(_dl_signal_error) (errval, (*map->l_name
- ? map->l_name : _dl_argv[0]),
- NULL, errstring);
+ INTUSE(_dl_signal_error) (errval, (*map->l_name
+ ? map->l_name : _dl_argv[0]),
+ NULL, errstring);
}
while (1)
for (l = map; l != NULL; l = l->l_next)
result |= (! l->l_faked
- && INT(_dl_check_map_versions) (l, verbose, trace_mode));
+ && INTUSE(_dl_check_map_versions) (l, verbose, trace_mode));
return result;
}
{
struct relocate_args *args = (struct relocate_args *) a;
- INT(_dl_relocate_object) (args->l, args->l->l_scope, args->lazy, 0);
+ INTUSE(_dl_relocate_object) (args->l, args->l->l_scope, args->lazy, 0);
}
static void
map_doit (void *a)
{
struct map_args *args = (struct map_args *) a;
- args->main_map = INT(_dl_map_object) (NULL, args->str, 0, lt_library, 0, 0);
+ args->main_map = INTUSE(_dl_map_object) (NULL, args->str, 0, lt_library, 0, 0);
}
static void
struct map_args args;
args.str = _dl_argv[0];
- (void) INT(_dl_catch_error) (&objname, &err_str, map_doit, &args);
+ (void) INTUSE(_dl_catch_error) (&objname, &err_str, map_doit, &args);
if (__builtin_expect (err_str != NULL, 0))
{
if (err_str != _dl_out_of_memory)
else
{
HP_TIMING_NOW (start);
- INT(_dl_map_object) (NULL, _dl_argv[0], 0, lt_library, 0, 0);
+ INTUSE(_dl_map_object) (NULL, _dl_argv[0], 0, lt_library, 0, 0);
HP_TIMING_NOW (stop);
HP_TIMING_DIFF (load_time, start, stop);
&& (__builtin_expect (! __libc_enable_secure, 1)
|| strchr (p, '/') == NULL))
{
- struct link_map *new_map = INT(_dl_map_object) (GL(dl_loaded), p,
- 1, lt_library,
- 0, 0);
+ struct link_map *new_map = INTUSE(_dl_map_object) (GL(dl_loaded), p,
+ 1, lt_library,
+ 0, 0);
if (++new_map->l_opencount == 1)
/* It is no duplicate. */
++npreloads;
while ((p = strsep (&runp, ": \t\n")) != NULL)
if (p[0] != '\0')
{
- struct link_map *new_map = INT(_dl_map_object) (GL(dl_loaded),
- p, 1,
- lt_library,
- 0, 0);
+ struct link_map *new_map = INTUSE(_dl_map_object) (GL(dl_loaded),
+ p, 1,
+ lt_library,
+ 0, 0);
if (++new_map->l_opencount == 1)
/* It is no duplicate. */
++npreloads;
if (problem != NULL)
{
char *p = strndupa (problem, file_size - (problem - file));
- struct link_map *new_map = INT(_dl_map_object) (GL(dl_loaded), p, 1,
- lt_library, 0, 0);
+ struct link_map *new_map = INTUSE(_dl_map_object) (GL(dl_loaded), p, 1,
+ lt_library, 0, 0);
if (++new_map->l_opencount == 1)
/* It is no duplicate. */
++npreloads;
specified some libraries to load, these are inserted before the actual
dependencies in the executable's searchlist for symbol resolution. */
HP_TIMING_NOW (start);
- INT(_dl_map_object_deps) (GL(dl_loaded), preloads, npreloads, mode == trace);
+ INTUSE(_dl_map_object_deps) (GL(dl_loaded), preloads, npreloads, mode == trace);
HP_TIMING_NOW (stop);
HP_TIMING_DIFF (diff, start, stop);
HP_TIMING_ACCUM_NT (load_time, diff);
ElfW(Addr) loadbase;
lookup_t result;
- result = INT(_dl_lookup_symbol) (_dl_argv[i], GL(dl_loaded),
- &ref, GL(dl_loaded)->l_scope,
- ELF_RTYPE_CLASS_PLT, 1);
+ result = INTUSE(_dl_lookup_symbol) (_dl_argv[i], GL(dl_loaded),
+ &ref, GL(dl_loaded)->l_scope,
+ ELF_RTYPE_CLASS_PLT, 1);
loadbase = LOOKUP_VALUE_ADDRESS (result);
if ((GL(dl_debug_mask) & DL_DEBUG_PRELINK)
&& GL(dl_rtld_map).l_opencount > 1)
- INT(_dl_relocate_object) (&GL(dl_rtld_map),
- GL(dl_loaded)->l_scope, 0, 0);
+ INTUSE(_dl_relocate_object) (&GL(dl_rtld_map),
+ GL(dl_loaded)->l_scope, 0, 0);
}
#define VERNEEDTAG (DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX (DT_VERNEED))
}
if (l != &GL(dl_rtld_map))
- INT(_dl_relocate_object) (l, l->l_scope, GL(dl_lazy),
- consider_profiling);
+ INTUSE(_dl_relocate_object) (l, l->l_scope, GL(dl_lazy),
+ consider_profiling);
l = l->l_prev;
}
needs to have _dl_profile_map set up by the relocator. */
if (__builtin_expect (GL(dl_profile_map) != NULL, 0))
/* We must prepare the profiling. */
- INT(_dl_start_profile) (GL(dl_profile_map), GL(dl_profile_output));
+ INTUSE(_dl_start_profile) (GL(dl_profile_map), GL(dl_profile_output));
if (GL(dl_rtld_map).l_opencount > 1)
{
/* There was an explicit ref to the dynamic linker as a shared lib.
Re-relocate ourselves with user-controlled symbol definitions. */
HP_TIMING_NOW (start);
- INT(_dl_relocate_object) (&GL(dl_rtld_map), GL(dl_loaded)->l_scope,
- 0, 0);
+ INTUSE(_dl_relocate_object) (&GL(dl_rtld_map), GL(dl_loaded)->l_scope,
+ 0, 0);
HP_TIMING_NOW (stop);
HP_TIMING_DIFF (add, start, stop);
HP_TIMING_ACCUM_NT (relocate_time, add);
/* Notify the debugger that all objects are now mapped in. */
r->r_state = RT_ADD;
- INT(_dl_debug_state) ();
+ INTUSE(_dl_debug_state) ();
}
#ifndef MAP_COPY
/* We must munmap() the cache file. */
- INT(_dl_unload_cache) ();
+ INTUSE(_dl_unload_cache) ();
#endif
/* Once we return, _dl_sysdep_start will invoke
if (HP_TIMING_AVAIL)
{
HP_TIMING_PRINT (buf, sizeof (buf), rtld_total_time);
- INT(_dl_debug_printf) ("\nruntime linker statistics:\n"
- " total startup time in dynamic loader: %s\n",
- buf);
+ INTUSE(_dl_debug_printf) ("\nruntime linker statistics:\n"
+ " total startup time in dynamic loader: %s\n",
+ buf);
}
/* Print relocation statistics. */
*wp++ = *cp++;
}
*wp = '\0';
- INT(_dl_debug_printf) ("\
+ INTUSE(_dl_debug_printf) ("\
time needed for relocation: %s (%s%%)\n",
- buf, pbuf);
+ buf, pbuf);
}
#endif
- INT(_dl_debug_printf) (" number of relocations: %lu\n",
- GL(dl_num_relocations));
- INT(_dl_debug_printf) (" number of relocations from cache: %lu\n",
- GL(dl_num_cache_relocations));
+ INTUSE(_dl_debug_printf) (" number of relocations: %lu\n",
+ GL(dl_num_relocations));
+ INTUSE(_dl_debug_printf) (" number of relocations from cache: %lu\n",
+ GL(dl_num_cache_relocations));
#ifndef HP_TIMING_NONAVAIL
/* Time spend while loading the object and the dependencies. */
*wp++ = *cp++;
}
*wp = '\0';
- INT(_dl_debug_printf) ("\
+ INTUSE(_dl_debug_printf) ("\
time needed to load objects: %s (%s%%)\n",
- buf, pbuf);
+ buf, pbuf);
}
#endif
}
/* Handling on non-exported internal names. We have to do this only
for shared code. */
#ifdef SHARED
-# define INT(name) name##_internal
+# define INTUSE(name) name##_internal
# define INTDEF(name) strong_alias (name, name##_internal);
#else
-# define INT(name) name
+# define INTUSE(name) name
# define INTDEF(name)
#endif
/* Print a message if the loading of libs is traced. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS, 0))
- INT(_dl_debug_printf) (" search cache=%s\n", LD_SO_CACHE);
+ INTUSE(_dl_debug_printf) (" search cache=%s\n", LD_SO_CACHE);
if (cache == NULL)
{
/* Print our result if wanted. */
if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_LIBS, 0) && best != NULL)
- INT(_dl_debug_printf) (" trying file=%s\n", best);
+ INTUSE(_dl_debug_printf) (" trying file=%s\n", best);
return best;
}
if (result == NULL)
{
no_memory:
- INT(_dl_signal_error) (ENOMEM, NULL, NULL,
- N_("cannot create capability list"));
+ INTUSE(_dl_signal_error) (ENOMEM, NULL, NULL,
+ N_("cannot create capability list"));
}
result[0].str = (char *) result; /* Does not really matter. */