Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: binutils@sourceware.cygnus.com, rth@redhat.com,
	GDB <gdb@sourceware.cygnus.com>
Subject: Re: Why does mips define elf_backend_sign_extend_vma to true?
Date: Tue, 07 Aug 2001 18:52:00 -0000	[thread overview]
Message-ID: <20010807185209.A15646@lucon.org> (raw)
In-Reply-To: <20010807184504.A15571@lucon.org>

On Tue, Aug 07, 2001 at 06:45:04PM -0700, H . J . Lu wrote:
> On Tue, Aug 07, 2001 at 09:42:24PM -0400, Andrew Cagney wrote:
> > > On Tue, Aug 07, 2001 at 06:24:59PM -0700, H . J . Lu wrote:
> > > 
> > >> Only elf32-mips.c has
> > >> 
> > >> #define elf_backend_sign_extend_vma        true
> > >> 
> > >> and we get
> > >> 
> > >> # nm vmlinux
> > >> ffffffff802e01f0 D C_A_D
> > >> ffffffff802df344 D EISA_bus
> > >> ....
> > >> 
> > >> Does anyone know why mips does this?
> > >> 
> > > 
> > > 
> > > It seems that it was done on purpose:
> > > 
> > > http://sources.redhat.com/ml/binutils/1999-11/msg00080.html
> > > 
> > > I don't believe it is correct for the normal 32bit MIPS SVR4 ABI. I'd like
> > > to turn it off. If you want to do sign extension, you should create a new
> > > ABI, not break the existing ABI.
> > 
> > 
> > Several ABI's have implied sign extension of addresses.  MIPS is one.
> > 
> 
> Show me where it is documemnted in the 32bit SVR4 MIPS ABI.
> 

FYI, some prorgams using bfd are broken on Linux/mips because of this: nm,
objdump and gdb. In gdb

# gdb vmlinux
...
(gdb) list printk
1874
1875    static void __exit packet_exit(void)
1876    {
1877            remove_proc_entry("net/packet", 0);
1878            unregister_netdevice_notifier(&packet_netdev_notifier);
1879            sock_unregister(PF_PACKET);
1880            return;
1881    }
1882
1883    static int __init packet_init(void)


H.J.


       reply	other threads:[~2001-08-07 18:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010807182459.A15252@lucon.org>
     [not found] ` <20010807183933.A15425@lucon.org>
     [not found]   ` <3B709900.3000502@cygnus.com>
     [not found]     ` <20010807184504.A15571@lucon.org>
2001-08-07 18:52       ` H . J . Lu [this message]
2001-08-07 18:58         ` Daniel Jacobowitz
2001-08-07 20:27 David B Anderson
2001-08-07 22:04 ` H . J . Lu
2001-08-07 22:46   ` Richard Henderson
2001-08-07 23:21     ` H . J . Lu
2001-08-08  0:50       ` Richard Henderson
2001-08-08  1:09       ` Maciej W. Rozycki
2001-08-08  7:29         ` H . J . Lu
2001-08-08  7:50           ` Andrew Cagney
2001-08-08  8:03             ` H . J . Lu
2001-08-08  8:18               ` Andrew Cagney
2001-08-08  9:02                 ` H . J . Lu
2001-08-08  9:53                   ` Daniel Jacobowitz
2001-08-08 10:02                     ` H . J . Lu
2001-08-08 11:02                       ` Daniel Jacobowitz
2001-08-08 11:08                         ` H . J . Lu
2001-08-09 12:23                   ` Andrew Cagney
2001-08-08  9:48               ` Daniel Jacobowitz
2001-08-08  9:52                 ` H . J . Lu
2001-08-10  0:47               ` Maciej W. Rozycki

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=20010807185209.A15646@lucon.org \
    --to=hjl@lucon.org \
    --cc=ac131313@cygnus.com \
    --cc=binutils@sourceware.cygnus.com \
    --cc=gdb@sourceware.cygnus.com \
    --cc=rth@redhat.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