Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [0/8] solib handler rework
Date: Mon, 22 Oct 2007 04:17:00 -0000	[thread overview]
Message-ID: <20071022041100.GC764@adacore.com> (raw)
In-Reply-To: <20071022032134.GA764@adacore.com>

> But there was a glitch: solib-pa64.c builds fine, but then
> I have unresolved symbol issues:
> 
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    dlgetmodinfo (first referenced in libgdb.a(solib-pa64.o)) (code)
>    dlgetname (first referenced in libgdb.a(solib-pa64.o)) (code)

More info on this:

I managed to find an old 64bit GCC-3.2 compiler from HP, and it
allowed me to actually verify to my astonishment that GDB does in
fact build in 64-bit mode. The dependency on libdl is indirect:

  % chatr /lib/pa20_64/libc.2
    [...]
         shared library list:
             libdl.1

I found libdl.1 to be in /usr/lib/pa20_64, and it indeed exports
the symbol that we were missing:

  % nm /usr/lib/pa20_64/libdl.1| grep dlgetname
  4000000000001110 T dlgetname

Whereas, if you inspect the 32bit version:

  % chatr /lib/libc.2
    [...]
         shared library list:
             dynamic   /usr/lib/libdld.2

libdld does not export the symbols that we're missing (or we wouldn't
have our link issue :-). So it looks like adding -lxpdl is only needed
for 32bit builds.

Now, onto testing...
-- 
Joel


  reply	other threads:[~2007-10-22  4:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 21:32 Ulrich Weigand
2007-10-22  3:31 ` Joel Brobecker
2007-10-22  4:17   ` Joel Brobecker [this message]
2007-10-22 18:47     ` Joel Brobecker
2007-10-22 20:42       ` Ulrich Weigand
2007-10-24  6:38         ` Joel Brobecker
2007-10-24  7:59           ` Joel Brobecker
2007-10-24 11:48             ` Daniel Jacobowitz
2007-10-24 19:29               ` Eli Zaretskii
2007-10-24 19:21             ` Eli Zaretskii
2007-10-24 19:23               ` Joel Brobecker
2007-10-22 13:44   ` Ulrich Weigand
2007-10-22 17:51     ` Joel Brobecker
2007-10-22 20:03       ` Ulrich Weigand
2007-10-24  6:05         ` Joel Brobecker
2007-10-24 21:25           ` Ulrich Weigand
2007-10-22 10:00 ` Pedro Alves
2007-10-23 10:16   ` Pedro Alves
2007-10-23 13:12     ` Ulrich Weigand
2007-10-24 13:03 ` Daniel Jacobowitz
2007-10-24 15:46 ` Kevin Buettner
2007-10-24 22:02   ` Ulrich Weigand
2007-10-25  8:12     ` Mark Kettenis
2007-10-29 20:06       ` i386-nto support (was: Re: [0/8] solib handler rework) Ulrich Weigand

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=20071022041100.GC764@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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