public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: NIIBE Yutaka <gniibe@chroot.org>
To: GNU libc hacker <libc-hacker@sourceware.cygnus.com>
Subject: Re: ld and common symbols (fwd)
Date: Wed, 19 Jan 2000 01:23:00 -0000	[thread overview]
Message-ID: <200001190921.SAA09725@pwd.chroot.org> (raw)
In-Reply-To: <m3zov39at7.fsf@localhost.localnet>

Philip.Blundell@pobox.com wrote:
 > The linker issue in the message below seems to be preventing libc from 
 > building properly on my machines.  What happens is that, when building
 > ld.so, the common definition of __libc_multiple_libcs in dl-sysdep.os 
 > is no longer sufficient to stop init-first.os from being sucked into 
 > librtld.os.  This actually manifests as __libc_global_ctors being 
 > undefined when linking with ld-linux.so.2.  (Entertainingly, the deliberate
 > multiple definition of _dl_start in init-first.c doesn't seem to be doing
 > its job of preventing the link; we just end up with two _dl_start's in 
 > ld.so.  I think that is because the copy in rtld.c is defined `static'.).
 > 
 > This is with the 2.1 branch, I haven't tried 2.2.  Has anybody else come 
 > across this?
 > 
 > Thanks

Just got a same problem for SuperH port for 2.1.2.  Changing

     int __libc_multiple_libcs = 0;

in dl-sysdep.os (add the initialization = 0), as current libc does
solves the problem.

I guess that the reason is that symbol goes to .data section instead
of .common section with the initialization.
-- 
Niibe Yutaka

      parent reply	other threads:[~2000-01-19  1:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E120XUA-00072S-00@kings-cross.london.uk.eu.org>
     [not found] ` <199912212237.OAA14550@cygnus.com>
1999-12-21 14:43   ` Ulrich Drepper
1999-12-21 15:12     ` Ulrich Drepper
2000-01-19  1:23     ` NIIBE Yutaka [this message]

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=200001190921.SAA09725@pwd.chroot.org \
    --to=gniibe@chroot.org \
    --cc=libc-hacker@sourceware.cygnus.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).