This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] shared library address patch


[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  <hunt@redhat.com>
> 
>         * 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]