]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 30 Jan 2002 00:38:09 +0000 (00:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 30 Jan 2002 00:38:09 +0000 (00:38 +0000)
* sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
to avoid warning
(DL_STATIC_FUNCTION_ADDRESS): Likewise.

ChangeLog
elf/dl-lookup.c
elf/dl-reloc.c
elf/rtld.c
sysdeps/ia64/dl-lookupcfg.h

index 9158427ca9def2157c959b5cfc241922e46354c1..e99d50a9710c6b85f1d077d55af1350598caf2e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
+       to avoid warning
+       (DL_STATIC_FUNCTION_ADDRESS): Likewise.
+
        * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
        SHARED version.
        * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
index 86b5c0dc050b9f288f6fd93351fc55acbb05dd4e..ae8df270e923f1b3e21a4964e2117f04be2a2495 100644 (file)
@@ -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
 
 
index 748aa3b8e264e98ac5ce2e7ab3a4a5c542bd0af8..bfab6a2bdaafc2e997956e528fc938f906ab617c 100644 (file)
@@ -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;                                                    \
index b3698ad1b840bc663fd0d408303e5f5aa32c6adf..45b15fd8f24a53ac37c37af8387aa67edb4755f2 100644 (file)
@@ -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.  */
index 76be84322a8bc780b36e54ad108e81a1349028ab..0beb7dda5949596cf83b13d6f23296d16ff733e1 100644 (file)
@@ -41,16 +41,16 @@ extern void _dl_unmap (struct link_map *map);
 
 #define DL_AUTO_FUNCTION_ADDRESS(map, addr)            \
 ({                                                     \
-  unsigned long fptr[2];                               \
-  fptr[0] = (addr);                                    \
+  unsigned long int fptr[2];                           \
+  fptr[0] = (unsigned long int) (addr);                        \
   fptr[1] = (map)->l_info[DT_PLTGOT]->d_un.d_ptr;      \
   (Elf64_Addr) fptr;                                   \
 })
 
 #define DL_STATIC_FUNCTION_ADDRESS(map, addr)          \
 ({                                                     \
-  static unsigned long fptr[2];                                \
-  fptr[0] = (addr);                                    \
+  static unsigned long int fptr[2];                    \
+  fptr[0] = (unsigned long int) (addr);                        \
   fptr[1] = (map)->l_info[DT_PLTGOT]->d_un.d_ptr;      \
   (Elf64_Addr) fptr;                                   \
 })