]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Simplify _ELF_DYNAMIC_DO_RELOC after combining the old two defs.
authorCarlos O'Donell <carlos_odonell@mentor.com>
Sat, 7 Apr 2012 13:34:45 +0000 (09:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Apr 2012 13:41:22 +0000 (09:41 -0400)
* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
conditions and remove no longer applicable assertion.

ChangeLog
elf/dynamic-link.h

index 91e836149c457105983d648cbad60a80197391d9..0544a89ab4c931a00d36d30e9ac05380075321b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
+
+       * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
+       conditions and remove no longer applicable assertion.
+
 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * bits/byteswap.h (__bswap_16): Removed.
index 310ad5e66e69f8598a9807fb0d33d9772850f720..ef01c61f3e653d055e1d64928ab553995cdf6bfa 100644 (file)
@@ -278,13 +278,7 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
                                                                              \
        if (__builtin_expect (ranges[0].size, 1))                             \
          ranges[0].size = (start - ranges[0].start);                         \
-       if (! ELF_DURING_STARTUP                                              \
-           && ((do_lazy)                                                     \
-               /* This test does not only detect whether the relocation      \
-                  sections are in the right order, it also checks whether    \
-                  there is a DT_REL/DT_RELA section.  */                     \
-               || __builtin_expect (ranges[0].start + ranges[0].size         \
-                                    != start, 0)))                           \
+       if (! ELF_DURING_STARTUP && ((do_lazy) || ranges[0].size == 0))       \
          {                                                                   \
            ranges[1].start = start;                                          \
            ranges[1].size = (map)->l_info[DT_PLTRELSZ]->d_un.d_val;          \
@@ -293,7 +287,6 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
        else                                                                  \
          {                                                                   \
            /* Combine processing the sections.  */                           \
-           assert (ranges[0].start + ranges[0].size == start);               \
            ranges[0].size += (map)->l_info[DT_PLTRELSZ]->d_un.d_val;         \
          }                                                                   \
       }                                                                              \