From: Ian Lance Taylor <ian@cygnus.com>
To: alan@spri.levels.unisa.edu.au
Cc: gas2@cygnus.com
Subject: Re: gcc2_compiled.
Date: Tue, 09 Apr 1996 20:55:00 -0000 [thread overview]
Message-ID: <9604100355.AA25094@tweedledumb.cygnus.com> (raw)
In-Reply-To: <m0u6nmy-0000yTC@mullet>
From: alan@spri.levels.unisa.edu.au (Alan Modra)
Date: Wed, 10 Apr 1996 09:59:36 +0930 (CST)
Somewhere since gas-960129, the handling of symbols defined outside
of a segment such as "gcc2_compiled.", has changed. On elf32_i386, I
find that st_info is now zero (STT_NOTYPE), rather than one
(STT_OBJECT). This breaks insmod on linux, because it wrongly used
(sp->st_info & 0xf) == 0 to test for undefined symbols. I've fixed
insmod, but why the change? Is STT_NOTYPE correct for symbols such as
gcc2_compiled. ?
The change was made for compatibility with other ELF assemblers. They
do not set the type of a symbol to STT_OBJECT unless the assembler
source specifically directs them to using the .type directive.
Also, gcc2_compiled does not represent an object, so STT_OBJECT seems
conceptually wrong.
Ian
prev parent reply other threads:[~1996-04-09 20:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-09 17:29 gcc2_compiled Alan Modra
1996-04-09 20:55 ` 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=9604100355.AA25094@tweedledumb.cygnus.com \
--to=ian@cygnus.com \
--cc=alan@spri.levels.unisa.edu.au \
--cc=gas2@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).