[PATCH, MIPS] Support shared library debug with MIPS PIE

Matthew Fortune Matthew.Fortune@imgtec.com
Thu Jul 23 21:47:00 GMT 2015


Richard Sandiford <rdsandiford@googlemail.com> writes:
> Joseph Myers <joseph@codesourcery.com> writes:
> > On Fri, 26 Jun 2015, Matthew Fortune wrote:
> >> +		dt_addr = (sdyn->output_section->vma + sdyn->output_offset
> >> +			   + b - sdyn->contents);
> >
> > For the case of n64 target and 32-bit host, this results in
> > sdyn->output_section->vma + sdyn->output_offset (64-bit) being added
> > to b (32-bit host pointer), so losing the high part and resulting in
> > an incorrect DT_MIPS_RLD_MAP_REL tag, and all dynamically linked glibc
> > tests failing for n64.
> 
> Ouch.

Apologies for missing this, thanks for fixing.

Matthew



More information about the Binutils mailing list