diff options
author | maxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2010-02-04 21:06:08 +0000 |
---|---|---|
committer | maxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2010-02-04 21:06:08 +0000 |
commit | 3b289e20aa9fa02a85745547a976b824bc66d096 (patch) | |
tree | 9bde0ec3a8d33032b03b3534294ac6d2845877b2 /libc/csu | |
parent | 289bec6245a7b25a42667894cbad32312f3ee4d2 (diff) |
EGLIBC_RTLD_DEBUG option group
* option-groups.def (OPTION_EGLIBC_RTLD_DEBUG): Define new option
group.
* option-groups.defaults: Set the default.
* sysdeps/generic/ldsodefs.h (GLRO_dl_debug_mask): Define to either
`GLRO(dl_debug_mask)' or to `0' depending on RTLD_DEBUG option group.
(_dl_debug_mask): Declare only if RTLD_DEBUG is enabled.
* elf/dl-support.c (_dl_debug_mask): Define only if RTLD_DEBUG is
enabled.
* elf/rtld.c: Replace GLRO(dl_debug_mask) with GLRO_dl_debug_mask
throughout the file.
(process_dl_debug): Compile only if RTLD_DEBUG is enabled.
(process_envvars): Update.
* csu/libc-start.c, elf/dl-cache.c, elf/dl-close.c, elf/dl-conflict.c,
* elf/dl-deps.c, elf/dl-error.c, elf/dl-fini.c, elf/dl-init.c,
* elf/dl-load.c, elf/dl-lookup.c, elf/dl-object.c, elf/dl-open.c,
* elf/dl-reloc.c, elf/dl-version.c: Replace GLRO(dl_debug_mask) with
GLRO_dl_debug_mask throughout the file.
git-svn-id: svn://svn.eglibc.org/trunk@9803 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/csu')
-rw-r--r-- | libc/csu/libc-start.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/csu/libc-start.c b/libc/csu/libc-start.c index dc7ca55f0..9c068659d 100644 --- a/libc/csu/libc-start.c +++ b/libc/csu/libc-start.c @@ -178,7 +178,7 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL), /* Call the initializer of the program, if any. */ #ifdef SHARED - if (__builtin_expect (GLRO(dl_debug_mask) & DL_DEBUG_IMPCALLS, 0)) + if (__builtin_expect (GLRO_dl_debug_mask & DL_DEBUG_IMPCALLS, 0)) GLRO(dl_debug_printf) ("\ninitialize program: %s\n\n", argv[0]); #endif if (init) @@ -201,7 +201,7 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL), #endif #ifdef SHARED - if (__builtin_expect (GLRO(dl_debug_mask) & DL_DEBUG_IMPCALLS, 0)) + if (__builtin_expect (GLRO_dl_debug_mask & DL_DEBUG_IMPCALLS, 0)) GLRO(dl_debug_printf) ("\ntransferring control: %s\n\n", argv[0]); #endif |