From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
To: gdb@sources.redhat.com
Subject: Re: optind
Date: Wed, 10 Dec 2003 16:09:00 -0000 [thread overview]
Message-ID: <20031210160910.GM23712@ata.cs.hacettepe.edu.tr> (raw)
In-Reply-To: <20031210144917.GA9115@nevyn.them.org>
Hello, Daniel!
That was fast 8) , thanks much!
On Wed, Dec 10, 2003 at 09:49:18AM -0500, Daniel Jacobowitz wrote:
> The symbol exists in multiple shared objects...
Do you mean weak symbols within libc, or multiple definitions in other
libraries? ldd shows libc.so.6 and ld-linux.so.2, and nm -D shows that
optind exists only in libc. I've also searched glibc 2.3.2 sources and
couldn't find multiple optind definitions. Where do you think they are
defined?
> ... and gdb gets confused about which copy to print.
I thought they were resolved during link, and the resulting binary had
only one copy. From what you have said I understand the following: each
copy declared in different objects gets linked and is preserved in the
data section(s), all references to it are set to one address chosen as
"main" one, and there is no way to find out which one this "main" is.
Is this right?
FWIW, I've also tested with gdb 6.0, the result was the same.
With kind regards,
Baurjan.
next prev parent reply other threads:[~2003-12-10 16:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-10 14:20 optind Baurjan Ismagulov
2003-12-10 14:49 ` optind Daniel Jacobowitz
2003-12-10 16:09 ` Baurjan Ismagulov [this message]
2003-12-10 16:16 ` optind Andreas Schwab
2003-12-10 16:53 ` optind Baurjan Ismagulov
2003-12-10 17:04 ` optind Ian Lance Taylor
2003-12-10 17:17 ` optind Daniel Jacobowitz
2003-12-10 17:37 ` optind Baurjan Ismagulov
2003-12-11 14:10 ` optind Daniel Jacobowitz
2003-12-11 15:11 ` optind Baurjan Ismagulov
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=20031210160910.GM23712@ata.cs.hacettepe.edu.tr \
--to=ibr@ata.cs.hun.edu.tr \
--cc=gdb@sources.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