aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-01-30 00:38:09 +0000
committerUlrich Drepper <drepper@redhat.com>2002-01-30 00:38:09 +0000
commit1b4575aefaaa43adfed4658f7d66de587f12120e (patch)
treeda685d9ca96236e7e2ad73b115d47c359187ac70 /elf
parentbe4b5a955552a633de592a04420f4cdf8476339e (diff)
downloadglibc-1b4575aefaaa43adfed4658f7d66de587f12120e.tar
glibc-1b4575aefaaa43adfed4658f7d66de587f12120e.tar.gz
glibc-1b4575aefaaa43adfed4658f7d66de587f12120e.tar.bz2
glibc-1b4575aefaaa43adfed4658f7d66de587f12120e.zip
Update.
* sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast to avoid warning (DL_STATIC_FUNCTION_ADDRESS): Likewise.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-lookup.c2
-rw-r--r--elf/dl-reloc.c6
-rw-r--r--elf/rtld.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 86b5c0dc05..ae8df270e9 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -64,7 +64,7 @@ struct sym_val
unsigned long int _dl_num_relocations;
# define bump_num_relocation() ++_dl_num_relocations
#else
-# define bump_num_relocation() 0
+# define bump_num_relocation() ((void) 0)
#endif
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 748aa3b8e2..bfab6a2bda 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -32,7 +32,7 @@
unsigned long int _dl_num_cache_relocations;
# define bump_num_cache_relocations() ++_dl_num_cache_relocations
#else
-# define bump_num_cache_relocations() 0
+# define bump_num_cache_relocations() ((void) 0)
#endif
@@ -118,7 +118,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
(ELFW(ST_BIND) ((*ref)->st_info) != STB_LOCAL \
? ((__builtin_expect ((*ref) == l->l_lookup_cache.sym, 0) \
&& elf_machine_type_class (r_type) == l->l_lookup_cache.type_class) \
- ? (bump_num_cache_relocations, \
+ ? (bump_num_cache_relocations (), \
(*ref) = l->l_lookup_cache.ret, \
l->l_lookup_cache.value) \
: ({ lookup_t _lr; \
@@ -138,7 +138,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
(ELFW(ST_BIND) ((*ref)->st_info) != STB_LOCAL \
? ((__builtin_expect ((*ref) == l->l_lookup_cache.sym, 0) \
&& elf_machine_type_class (r_type) == l->l_lookup_cache.type_class) \
- ? (bump_num_cache_relocations, \
+ ? (bump_num_cache_relocations (), \
(*ref) = l->l_lookup_cache.ret, \
l->l_lookup_cache.value) \
: ({ lookup_t _lr; \
diff --git a/elf/rtld.c b/elf/rtld.c
index b3698ad1b8..45b15fd8f2 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -152,7 +152,9 @@ _dl_start (void *arg)
{
struct link_map bootstrap_map;
hp_timing_t start_time;
+#if !__GNUC_PREREQ (2, 96)
size_t cnt;
+#endif
/* This #define produces dynamic linking inline functions for
bootstrap relocation instead of general-purpose relocation. */