From: Ulrich Weigand Date: Thu, 12 Jul 2007 20:15:24 +0000 (+0000) Subject: * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1e55806303788564a5a67395b4690b522c62b41;p=binutils-gdb.git * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0e24d3a3e18..75fee369d36 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-07-12 Ulrich Weigand + + * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic. + 2007-07-10 Nick Roberts * breakpoint.c: Include "top.h". diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 3f6be94fe0b..1ef2d1e06cb 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -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;