* solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 12 Jul 2007 20:15:24 +0000 (20:15 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 12 Jul 2007 20:15:24 +0000 (20:15 +0000)
gdb/ChangeLog
gdb/solib-svr4.c

index 0e24d3a3e184a3bcf99792d4de7b639acd5e1ff3..75fee369d360ab508b37d782fb9129da815da879 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
+
 2007-07-10  Nick Roberts  <nickrob@snap.net.nz>
 
        * breakpoint.c: Include "top.h".
index 3f6be94fe0bb9b10e2e3208d13376dedcc40ae8a..1ef2d1e06cb2970bcb77e6803b3b7b56aa65ea5f 100644 (file)
@@ -184,7 +184,7 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd)
             don't adjust the base offset in the latter case, although
             odds are that, if things really changed, debugging won't
             quite work.  */
-         if ((l_addr & align) == 0 && ((dynaddr - l_dynaddr) & align) == 0)
+         if ((l_addr & align) == ((l_dynaddr - dynaddr) & align))
            {
              l_addr = l_dynaddr - dynaddr;