Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@debian.org>
To: Andreas Jaeger <aj@suse.de>
Cc: "Steven J. Hill" <sjhill@cotw.com>, linux-mips@oss.sgi.com
Subject: Re: Question on the binutils tradlittlemips patch
Date: Wed, 18 Apr 2001 17:03:58 -0400	[thread overview]
Message-ID: <20010418170358.B29531@nevyn.them.org> (raw)
In-Reply-To: <u8vgo23r4w.fsf@gromit.rhein-neckar.de>; from aj@suse.de on Wed, Apr 18, 2001 at 10:11:11PM +0200

On Wed, Apr 18, 2001 at 10:11:11PM +0200, Andreas Jaeger wrote:
> Daniel Jacobowitz <dan@debian.org> writes:
> 
> > I've been trying to make this patch work as part of a complete
> > toolchain, based on glibc.  In addition to a little snag (when building
> > glibc for big-endian mips you need an equivalent change in the target
> > format), I hit a serious shared library error - nothing linked
> 
> Do I understand you correctly that glibc needs a patch?  Please send
> it to me.

Yes, I think it does.  Do we care about being able to build with old
(including every released version before [I think] HJ's 2.10.91.0.5)
binutils on MIPS?  Having it both ways is pretty hard, but it could
probably be autoconfed.

> You might be - but it's quite difficult to fix in glibc.  If you get
> it working in glibc, send me a patch that works with old and new
> binaries - and I'll gladly review and commit it.

Well, this will need a comment from someone with a better understanding
of ELF than I, but my thought:

How harmful would it be, given that we've been assuming the hardcoded
base address of 0x5ffe0000, to assume that the base address is either
that or 0?  Just check if subtracting 0x5ffe0000 from the base address
of the first load would be an obvious error (i.e. if it would
overflow).

Could someone enlighten me on when the vaddr of the first load command
is not the same as MIPS_BASE_ADDRESS?  I could easily enough (since
we've already seen the PT_DYNAMIC entry at this point) read the
BASE_ADDRESS value out of the library, but that's a bit of a speed hit.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team

  reply	other threads:[~2001-04-18 21:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-18 18:19 Question on the binutils tradlittlemips patch Daniel Jacobowitz
2001-04-18 20:11 ` Andreas Jaeger
2001-04-18 21:03   ` Daniel Jacobowitz [this message]
2001-04-18 20:47 ` Steven J. Hill
2001-04-18 20:37   ` Daniel Jacobowitz
2001-04-23  1:07     ` Keith M Wesolowski
2001-04-23  2:19       ` Daniel Jacobowitz
2001-04-23  4:23         ` Keith M Wesolowski
2001-04-23  4:34           ` Daniel Jacobowitz
2001-04-23  5:54             ` Andreas Jaeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010418170358.B29531@nevyn.them.org \
    --to=dan@debian.org \
    --cc=aj@suse.de \
    --cc=linux-mips@oss.sgi.com \
    --cc=sjhill@cotw.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox