Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: drow@false.org (Daniel Jacobowitz)
Cc: gdb-patches@sourceware.org, pedro_alves@portugalmail.pt (Pedro Alves)
Subject: Re: For example only, updated Windows DLL support and gdbserver         DLL         support
Date: Tue, 19 Jun 2007 20:00:00 -0000	[thread overview]
Message-ID: <200706192000.l5JK0ZVU014446@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20070619191938.GA26206@caradoc.them.org> from "Daniel Jacobowitz" at Jun 19, 2007 03:19:38 PM

Dan Jacobowitz wrote:

> > It looks like the only way to get this to work within the regular solib
> > framework would be to actually teach solib.c itself about this form of
> > archive members.
> 
> Yes, I think you're right.  How about we add an optional member=""
> attribute to <library>, and make the common solib.c code open it?
> We'd also have to allow .o files.

That sounds reasonable.  The member name would presumably also
have to be added to so_list ...

> I'm not sure how much trouble you'll have reporting the correct
> relocations for an object file.  Do you get something based on
> sections, or do AIX object files have a fixed number of segments?

XCOFF seems to be a bit limited in that respect, I understand there
is just "Text" and "Data".  The AIX ldinfo structure provides:

ldinfo_textorg
    Effective address of the loaded program image, including the XCOFF headers. 

ldinfo_textsize
    Length of loaded program image. 

ldinfo_dataorg
    Effective address of the start of data. 

ldinfo_datasize
    Size of data, including the .bss section. 

For more details, see:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.files/doc/aixfiles/ldr.h.htm


Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2007-06-19 20:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-18 15:08 Daniel Jacobowitz
2007-06-18 21:07 ` Christopher Faylor
2007-06-18 21:12   ` Daniel Jacobowitz
2007-06-18 21:54     ` Pedro Alves
2007-06-18 23:28       ` Christopher Faylor
2007-06-19 19:06 ` Ulrich Weigand
2007-06-19 19:19   ` Daniel Jacobowitz
2007-06-19 20:00     ` Ulrich Weigand [this message]
2007-06-19 20:12       ` Daniel Jacobowitz
2007-06-19 22:43         ` Pedro Alves
2007-06-19 23:34           ` Daniel Jacobowitz
2007-06-19 23:58             ` Pedro Alves

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=200706192000.l5JK0ZVU014446@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro_alves@portugalmail.pt \
    /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