public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@cygnus.com>
To: hjl@nynexst.com
Cc: gas2@cygnus.com, raeburn@cygnus.com, eric@aib.com
Subject: Does the ELF gas support stabs like a.out does?
Date: Sun, 27 Nov 1994 16:42:00 -0000	[thread overview]
Message-ID: <9411280042.AA00282@tweedledumb.cygnus.com> (raw)
In-Reply-To: <9411240240.AA20822@titanic.nynexst.com>

   From: hjl@nynexst.com (H.J. Lu)
   Date: Wed, 23 Nov 94 21:40:24 EST

   It seems the ELF gas doesn't support stabs like the a.out version
   does. That piece code is used to put __init_misc () on the
   __libc_subinit list. It doesn't work with the ELF gas.

That is correct.  The symbol set features of a.out are not supported
in ELF.  I don't particularly like symbol sets, and, more importantly,
they can not be efficiently supported in the ELF linker.  All normal
uses of symbol sets can be handled using either weak symbols or
separate sections in ELF.

   Is there aother way to create a list using the ELF gas without
   create a new subsection?

No.  Creating a new section is the way to go.  glibc uses symbol sets
in various ways.  Roland McGrath and I have worked out how they will
be ported to ELF.  You may want to ask exactly what he plans to do in
glibc, and copy it.  Part of it is that the linker will automatically
define special symbols marking the start and end of any sections whose
names can be represented as C identifiers.  The symbols for section
SEC are named __start_SEC and __stop_SEC.

Ian


      reply	other threads:[~1994-11-27 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-23 18:41 H.J. Lu
1994-11-27 16:42 ` Ian Lance Taylor [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=9411280042.AA00282@tweedledumb.cygnus.com \
    --to=ian@cygnus.com \
    --cc=eric@aib.com \
    --cc=gas2@cygnus.com \
    --cc=hjl@nynexst.com \
    --cc=raeburn@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).