From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: "Martin M. Hunt" Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] shared library address patch Date: Mon, 19 Feb 2001 16:48:00 -0000 Message-id: <3A91BE58.665C6ADE@cygnus.com> References: X-SW-Source: 2001-02/msg00394.html [I'm not the maintainer] Once your ssh account create has been created, can you add your self to the MAINTAINERS file under write after approval. "Martin M. Hunt" wrote: > > The following patch keeps GDB from relocating shared libraries on > mipsel-linux-gnu out of the 32-bit address space. On researching this, I > noticed Maciej W. Rozycki proposed a similar fix back in July > (see http://sources.redhat.com/ml/gdb-patches/2000-07/msg00260.html ) FYI, Maciej submitted a number of patches. I'm not 100% certain of Maciej's assignment status though. This is a case of independantly reproducing an obvious change. Andrew > 2001-02-19 Martin M. Hunt > > * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so > extract_signed_integer() should be called instead of > extract_address(). > > Index: solib-svr4.c > =================================================================== > RCS file: /cvs/src/src/gdb/solib-svr4.c,v > retrieving revision 1.8 > diff -u -p -r1.8 solib-svr4.c > --- solib-svr4.c 2001/02/08 06:03:53 1.8 > +++ solib-svr4.c 2001/02/19 23:22:25 > @@ -249,7 +249,8 @@ LM_ADDR (struct so_list *so) > { > struct link_map_offsets *lmo = SVR4_FETCH_LINK_MAP_OFFSETS (); > > - return extract_address (so->lm_info->lm + lmo->l_addr_offset, lmo->l_addr_size); > + return (CORE_ADDR) extract_signed_integer (so->lm_info->lm + lmo->l_addr_offset, > + lmo->l_addr_size); > } > > static CORE_ADDR