public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Andreas Jaeger <aj@suse.de>
Cc: GNU libc hacker <libc-hacker@sources.redhat.com>
Subject: Re: problems with ctype...
Date: Sun, 15 Sep 2002 22:15:00 -0000	[thread overview]
Message-ID: <200209160512.g8G5CUF04935@dhcp187.sf.frob.com> (raw)
In-Reply-To: Andreas Jaeger's message of  Monday, 16 September 2002 05:55:09 +0200 <u8fzwabnc2.fsf@gromit.moeb>

It certainly works fine for me, but I am not using the same tools.
I am using GCC 3.2 with RH modifications and binutils is also a RH version.

In my build the libc.so.6 symbol table contains (this is readelf -s output):

   988: 00112a40     4 OBJECT  GLOBAL DEFAULT   16 __ctype_toupper@GLIBC_2.0
  3865: 00112a40     4 OBJECT  LOCAL  DEFAULT   16 __ctype_toupper

and the dynamic symbol table contains:

  5948: 00112a40     4 OBJECT  GLOBAL DEFAULT   16 __ctype_toupper@GLIBC_2.0

In libc_pic.a, lc-ctype.os has: 

    25: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __ctype_toupper

and ctype/ctype-info.os has:

    32: 0000000c     4 OBJECT  GLOBAL DEFAULT   10 __ctype_toupper
    39: 0000000c     4 OBJECT  GLOBAL DEFAULT   10 __ctype_toupper@GLIBC_2.0

Those are the only __ctype_toupper references.  How does this compare with
the symbols in your build?

Perhaps the ld behavior is different. I don't know what the *IND* magic in
the linker error message is.  I presume that your libc.so.6 symbol tables
must look different from mine, or the error doesn't make sense.

I'm not sure if it's supposed to be the case that the references in
lc-ctype.os uses the versioned name when it's being linked -shared with the
object that defines the non-default versioned name.  But I think not, since
there is also a plain global __ctype_toupper defined in ctype-info.os.  I
could understand the multiple definition error more if it came up doing the
ld -shared instead.  

  reply	other threads:[~2002-09-16  5:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-15 20:55 Andreas Jaeger
2002-09-15 22:15 ` Roland McGrath [this message]
2002-09-15 23:52   ` Andreas Jaeger
2002-09-15 23:59     ` Roland McGrath
2002-09-16  0:01       ` Andreas Jaeger
2002-09-16  8:07         ` H. J. Lu
2002-09-16 21:54           ` Roland McGrath
2002-09-16 22:00             ` H. J. Lu
2002-09-16  0:01     ` Jakub Jelinek
2002-09-16  0:50       ` Andreas Jaeger
2002-09-16  2:22         ` Jakub Jelinek
2002-09-16  6:22           ` Roland McGrath
2002-09-16  8:04       ` H. J. Lu
2002-09-16  8:01     ` H. J. Lu
     [not found] <20020916092949.A12870@devserv.devel.redhat.com>
2002-09-18 11:34 ` Roland McGrath

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=200209160512.g8G5CUF04935@dhcp187.sf.frob.com \
    --to=roland@redhat.com \
    --cc=aj@suse.de \
    --cc=libc-hacker@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).